POV-Ray : Newsgroups : povray.animations : using sunpos.inc to create sunset : Re: using sunpos.inc to create sunset Server Time
28 Jul 2024 08:22:26 EDT (-0400)
  Re: using sunpos.inc to create sunset  
From: davidafisher
Date: 31 Oct 2002 12:15:05
Message: <web.3dc163d2fea7cd5967ebf1b60@news.povray.org>
I tired out this routine with the light source set as

light_source {
              <0,0,0>      //0*x light's position starts at the origin
              color White  // light's color
              translate SunPos(Year, Month, Day, Hour, Minute, Lstm, LAT,
LONG);
}

and placing a sun in the sky by using skysphere as:

sky_sphere {
            pigment {gradient y
            color_map {[0.0 radians(0.03333) color Yellow   //for the sun
disk                                        color Yellow]
                       [radians(0.03333) (1-cos(radians(Al)))/2 color Blue
                                                                color Blue]
                       [(1-cos(radians(90-Al)))/2 color rgb<0.0,0.0,0.6156>]
                      }
            scale 2
            translate -1
           }
    //clouds
           pigment { etc etc.......

It works fine except as soon as the center of the light source hits the
horizon the whole light source and sun disk disappear!

What do I need to do to continue to see the parts of the sun that remain
above the horizon until it completely disappears (or appears for sunrise)?

david


Post a reply to this message

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