POV-Ray : Newsgroups : povray.advanced-users : Random rotation don't work ? : Re: Random rotation don't work ? Server Time
29 Jul 2024 14:14:34 EDT (-0400)
  Re: Random rotation don't work ?  
From:
Date: 7 Mar 2002 01:49:58
Message: <3c870d96$1@news.povray.org>
Hi again,

> // 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)>


Sorry.
regards
SY


Post a reply to this message

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