POV-Ray : Newsgroups : povray.general : Nice Real sky_sphere Starfield from Earth : Re: Nice Real sky_sphere Starfield from Earth Server Time
30 Jul 2024 04:23:28 EDT (-0400)
  Re: Nice Real sky_sphere Starfield from Earth  
From: Christian Froeschlin
Date: 29 Sep 2009 04:25:31
Message: <4ac1c47b@news.povray.org>
waggy wrote:

> Unless you or somebody else beats me to it, I'll see if I can package it all up
> for inclusion in the object library when I get more than a few minutes at a time
> to rub together (if that's alright).

No problem, if you think it's generally useful ... when you
package it up, note that the HourAngle macro still contains
a lot of unnecessary code as a result from copy and paste.

You can remove the line

   #local e= 0.016709-1.151E-9*d;

as well as the entire code block from

   // Obliquity of the ecliptic

up to

   #local RA = degrees ...

as that is only relevant for the sun, not distant stars.

Did you test it against your original star chart? The only
test I did was to see if the vernal point would rise due east
at spring equinox 6am so I hoped it was correct. But I did a
lot of trial and error with the signs: mixing three celestial
coordinate systems with POV-Ray's left-handed one caused a
bit of brain overload at times ;)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.