|
![](/i/fill.gif) |
"folkert" <fol### [at] vanheusden com> wrote:
> // distance: 150.000.000km, diameter 1.932.000km
> light_source { <0, 15000000000000, 0> color White
> area_light <193200000000, 0, 0>, <0, 0, 193200000000>, 5, 5
> adaptive 1 jitter
> looks_like {
> sphere { <0, 15000000000000 + 193200000000 / 2, 0>,
> 193200000000/2 pigment { color rgb<0.85,1.0,0.85> } }
> }
> }
Please read this FAQ:
http://wiki.povray.org/content/Knowledgebase:Misconceptions#Topic_6
Bring your light source in much closer, and scale down the diameter of the Sun
accordingly. If you use the parallel keyword, then it won't make a difference
how far away the light_source is for illumination (although it might affect the
looks_like if it isn't sufficiently far away). Try this:
____________________________________________________________________________
//Declare variables so you won't have mysterious numbers all over your code:
#declare V_SUN = <the Sun's location>; //Not necessarily overhead.
#declare dSun = vlength (V_SUN) * (1390000/150000000);
light_source
{ V_SUN, color White
area_light dSun * x, dSun * z, 5, 5 adaptive 1 jitter
circular orient //Using this, the Sun doesn't have to be overhead.
parallel point_at 0
looks_like
{ sphere
{ 0, dSun //Location is relative to the light_source, not the origin.
pigment { color rgb <0.85, 1.0, 0.85> }
//Give the Sun a glowing appearance:
finish { diffuse 0 ambient 1 } //POV-Ray 3.6.
//or
finish { diffuse 0 ambient 0 emission 1 } //POV-Ray 3.7.
}
}
}
____________________________________________________________________________
According to my source, the Sun's diameter is 1,390,000 km. Also note that the
distance from the Earth to the Sun varies slightly over the course of a year.
Why is your Sun's looks_like light green?
Post a reply to this message
|
![](/i/fill.gif) |