POV-Ray : Newsgroups : povray.general : problem: repeating rand patterns using seed in animation : Re: problem: repeating rand patterns using seed in animation Server Time
30 Jul 2024 18:12:00 EDT (-0400)
  Re: problem: repeating rand patterns using seed in animation  
From: Nicolas George
Date: 26 Jan 2009 04:03:52
Message: <497d7c78$1@news.povray.org>
"Kenneth"  wrote in message
<web.497d0d60b528db0df50167bc0@news.povray.org>:
> But isn't that what happens when needing just one real rand value per
> frame? Given Chris B's #while loop, each new animation frame discards all
> the previous frames' rand values, in order to come up with a fresh new
> one. (That's what I meant by 'wasting values.') So by frame 100, the
> previous 99 generated values have been discarded, as a necessity.

They have not been wasted, they have been used in the previous frames.

There is something that was wasted, though: CPU time: in frame 100, CPU time
is used to compute the random values #1 ... #99 in order to get to the #100
although they have already been computed for frame 99.


Post a reply to this message

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