|
![](/i/fill.gif) |
Hmmm..
It seems I forgot to add the textures and an example... Silly me ?
Nah, If you look at the output file, you see it wants a texture...
Here is an example (Stolen from the original)
well... You see what it is for.
/////
#include "colors.inc"
#include "textures.inc"
#declare PdV=< -0 , 50 , -150>;
camera {
location PdV
direction <0.0 , 0.0 , 1 >
up <0 , 1 , 0>
right <4/3 , 0.0 , 0.0>
look_at < 0 , 11, 0>
}
#declare colTree=rgb<0.52,0.46,0.43>;
light_source { <-300, 1040, -520> color colTree*2}
light_source { <-1000, 1040, -1020> color rgb<1,.5,0.3>}
light_source { PdV color colTree}
#declare txtTree=
texture{
pigment{
granite
color_map{
[0 color colTree*2]
[0.5 color colTree*1]
[1 color colTree*0.5]
}
}
normal{wrinkles 2 scale 0.3}
finish{ambient 0.2}
scale <1,6,1>*0.3
}
background{White}
#include "tree01" #include "tree02"
#declare m = 30;
union {
object{ tree01 rotate <0,rand(s)*360,0> translate < m, 0, 0> }
object{ tree02 rotate <0,rand(s)*360,0> translate < -m, 0, 0> }
translate <0, -20 ,-m>
rotate <0,45,0>
}
Post a reply to this message
|
![](/i/fill.gif) |