|
![](/i/fill.gif) |
I'm animating sunset and sunrise using SunPos as a 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 (given by Al, - Altitude)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 should completely disappears (or appear for
sunrise)?
David
Post a reply to this message
|
![](/i/fill.gif) |