POV-Ray : Newsgroups : povray.newusers : Rand and animation : Re: Rand and animation Server Time
29 Jul 2024 18:19:24 EDT (-0400)
  Re: Rand and animation  
From: Bryan Heit
Date: 13 May 2005 13:09:29
Message: <4284df49$1@news.povray.org>
Tim Nikias wrote:
> What I usually do: seed(frame_number). Note that seed wants an integer, so
> using "clock" as seed will get you the value "0" most of the time, and
> strangely enough, in that pseudo-stream, the first random number always is
> "0".
> 
> The second version (seed(x)) will always return the same first random-value,
> so no surprise there that all frames will look the same.
> 
> Rand is a pseudo-random stream, so the same seed will *always* yield the
> same stream of random-numbers.
> 
> Regards,
> Tim


Using the seed(frame_number) worked perfectly!  Thanx Tim (and everyone 
else) for your help.

Bryan


Post a reply to this message

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