|
![](/i/fill.gif) |
"Ross" <rli### [at] everestkc net> wrote:
> how did you manage to get the sun to glow over the tree like that?
I was pleased with the sun as I was not expecting the effect to work that
well, the sun is a sphere with emitting media but I am also using megapov's
glow feature infront of the sun to enhance the effect. The fact it glow's
over the top of the tree was just an unexpected bonus..
Below is the source for the Sun effect.
#declare sunPos = <0, 500000, 0>;
#declare sunRot = <82, 10, 0>;
light_source
{
0
color rgb <5.0, 2, 0.5>*60
area_light
<20000, 0, 0> <0, 0, 20000>
10, 10
adaptive 0
jitter
circular
orient
fade_distance sunPos.y/10
fade_power 2
looks_like {
sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
interior
{ media
{ emission 1
density
{ spherical poly_wave 10 density_map
{
[0 rgb 0]
[1 rgb <1, 0.5, 0.05>]
}
}
}
}
}
}
scale 20000
translate sunPos
rotate sunRot
}
glow {
type 2
location sunPos/50
radius 5000
fade_power 0.0125
color rgb <2, 1,0.05>*5
rotate sunRot
}
glow {
type 2
location sunPos/50
radius 6000
fade_power 0.011
color rgb <3,1.5,0.1>*5
rotate sunRot
}
glow {
type 2
location sunPos/50
radius 7000
fade_power 0.01
color rgb <2, 1,0.1>*5
rotate sunRot
}
Post a reply to this message
|
![](/i/fill.gif) |