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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.