|
|
Yadgar wrote:
> #declare xpos=rand(r1)*20-10;
> #declare zpos=rand(r2)*20-10;
> #declare Terrain_Temporary=
> object { Terrain translate <-xpos, 0, -zpos> }
> #declare trvect=<0, 20, 0>;
> #declare rad=0.01+rand(r3)/100*9;
> #declare pos=trace(Terrain_Temporary, trvect, -trvect)+<0, rad, 0>;
Looking at this code, I can't see how you would get any other result: you
are tracing always from <0,20,0> to <0,-20,0>, so obviously the x and z
coordinates of the intersection must be always 0. Or perhaps I didn't have
enough coffee this morning? :)
I think moving around the terrain is a strange idea: you will be better
moving around trvect.
Regards,
--
Jaime
Post a reply to this message
|
|