|
|
Hi,
I want to place tree rows along the z axis. Trees should be rotated
randomly, but each tree pair (trees that are located in Pos and 0-Pos)
should have same amount of rotation.
Currently following code doesn't do that; All of the trees are rotated with
equal values. My guess is that for some reason RdmC isn't updated when it's
called by RA.
Question: Why this xxxxxxx code doesn't work?
Sorry if I offended anyone. I guess i'm a little bit tired. I'm writing this
at 3.21 AM and should be at work by 8.00.
Hmm, maybe I should join POVoholics Anonymous :) :) Anyway here's the code:
#include "rand.inc"
#while(A<Loop)
#declare RP=VRand_In_Box(<-1,4.9,-5>,<1,5,-5> , RdmA);
#declare Pos=trace(Lightside, <RP.x,100,RP.z>,<0,-1,0>,Norm);
#declare RA=RdmC;
object{ TREE scale 0.12 rotate y*360*RA translate Pos}
object{ TREE2 scale 0.12 rotate y*360*RA translate <Pos.x, Pos.y, 0-Pos.z>}
#declare A=A+1;
#end
Thanks
Janne
Post a reply to this message
|
|