Sign in to follow this  

[CLOSED]Sun, moon position: RA dec to XYZ

This topic is 3592 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I want to develop a realistic looking earth-viewed sky from a 3D plane (earth). I can have (RA, dec) coordinates for the sun and for the moon at a certain date and I want to position them in the skydome accordingly. I can convert those coords from spherical to cartesian using something like: sunPosition = new Vector(dist * Math.cos(-AR)), dist * Math.cos(-DC) * Math.sin(-AR), dist * Math.sin(-DC) * Math.sin(-AR)) This is like saying the earth is going around the sun, as the sun appears circling in the sky being top on june and bottom on december, growing east and falling west. But what if I want to put it in the right place by the right hour of the day? I need to consider earth rotation on its axis, I guess... Has anyone dealt with this before? Thanks for any suggestions. [Edited by - Adriano on February 12, 2008 6:30:34 AM]

Share this post


Link to post
Share on other sites
As reported in this gamedev post:

http://www.gamedev.net/community/forums/topic.asp?topic_id=100346&PageSize=25&WhichPage=2

This was the solution to my problem:

http://graphics.ucsd.edu/~henrik/papers/nightsky/nightsky.pdf

Share this post


Link to post
Share on other sites

This topic is 3592 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

Sign in to follow this