POV-Ray : Newsgroups : povray.binaries.images : seven arms : Re: seven arms (57 Kb) Server Time
31 Jul 2024 20:24:24 EDT (-0400)
  Re: seven arms (57 Kb)  
From: clipka
Date: 19 Aug 2009 14:02:12
Message: <4a8c3e24$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.