POV-Ray : Newsgroups : povray.advanced-users : Random rotation don't work ? : Re: Random rotation don't work ? Server Time
29 Jul 2024 14:21:21 EDT (-0400)
  Re: Random rotation don't work ?  
From: Christopher James Huff
Date: 7 Mar 2002 11:40:10
Message: <chrishuff-519ADF.11402007032002@netplex.aussie.org>
In article <3c870d96$1@news.povray.org>,


> > // to rotate something you may use:
> > // rotate <rand(R1), rand(R1), rand(R1)>
> 
> Errr.. I forgot: rand returns a float in range of 0..1, so you should rather
> use
> 
> > // rotate <360*rand(R1), 360*rand(R1), 360*rand(R1)>

Or even better:
rotate 360*< rand(R1), rand(R1), rand(R1)>

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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