|
![](/i/fill.gif) |
bgimeno schrieb:
> // ------------------------------------------------------
> #while (Num_Tree<5000)
> #local rnd_tree = seed (Num_Tree);
> object {Tree
> translate x*60 // code A
> rotate <rand(rnd_tree),rand(rnd_tree),rand(rnd_tree)>*360
With the Tree object being translated to <60,0,0>, the first rotation
about the X axis effectively just rotates the object in place, without
changing its position.
Thus, you only have two random numbers affecting the placement of the
object.
> }
> #local Num_Tree = Num_Tree +1 ;
> #end
> // ------------------------------------------------------
> #while (Num_Tree<5000)
> #local rnd_tree = seed (Num_Tree);
> object {Tree
> translate y*60 // code B
> rotate <rand(rnd_tree),rand(rnd_tree),rand(rnd_tree)>*360
Here, the object starts at <0,60,0>, so first rotation about the X axis
already "messes up" the object's position.
Thus, in this case you have three random numbers affecting placement.
> }
> #local Num_Tree = Num_Tree +1 ;
> #end
> // ------------------------------------------------------
>
>
>
Post a reply to this message
|
![](/i/fill.gif) |