Jump to content
The simFlight Network Forums

Position of the sun in the sky


Recommended Posts

Hi Pete,

I'd like to read the position of the sun from FS into my program - ie, its heading and its angle from the horizon.

I've looked in the offset table in the documenation and I can't see anything.

I'm assuming that FS has to calculate this to put the sun in the right place and do the sun glare effect when you fly towards it.

What are the chances that FSUIPC can give this info?

Thanks,

Paul

Link to comment
Share on other sites

I'd like to read the position of the sun from FS into my program - ie, its heading and its angle from the horizon.

I've looked in the offset table in the documenation and I can't see anything.

I'm assuming that FS has to calculate this to put the sun in the right place and do the sun glare effect when you fly towards it.

What are the chances that FSUIPC can give this info?

None at all for the current versions I'm afraid. I'm guessing that it's buried deep in the graphics someplace. However, if it is correctly following the rules of place and date/time, surely all you need to do is follow the same ephemeris rules and calculate it? Or have look-up tables.

It's probably too late by now for FSX too, but be sure to make a suggestion to Microsoft by writing to tell_fs@microsoft.com. Just ask for programmatic access to Sun (and Moon, and Stars?) positions, giving your reasons.

Regards,

Pete

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.