POV-Ray : Newsgroups : povray.binaries.images : seven arms : Re: seven arms (57 Kb) Server Time
31 Jul 2024 20:19:13 EDT (-0400)
  Re: seven arms (57 Kb)  
From: bgimeno
Date: 20 Aug 2009 08:08:55
Message: <4a8d3cd7$1@news.povray.org>
I would also add this detail. Although:

 sphere {<0,0,0>3
          translate x*60
          rotate x*rand(rnd_tree)*360
          rotate y*rand(rnd_tree)*360
          rotate z*rand(rnd_tree)*360
          pigment {White}
         }

should produce the same result as:

 sphere {<0,0,0>3
         translate x*60
       // rotate x*rand(rnd_tree)*360
          rotate y*rand(rnd_tree)*360
          rotate z*rand(rnd_tree)*360
          pigment {White}
         }
 the use of this first superfluous rand()  affects the values extracted by 
the 2nd and 3rd rand(). In this case therefore we obtain values that don't 
seem to follow any pattern.
Be recorded as comment on the peculiarities of the rand () function and 
nothing else.

B. Gimeno


Post a reply to this message

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