POV-Ray : Newsgroups : povray.advanced-users : Random number generator needed ! : Re: Random number generator needed ! Server Time
30 Jul 2024 02:25:34 EDT (-0400)
  Re: Random number generator needed !  
From: Rune
Date: 21 Feb 2001 11:46:22
Message: <3a93f0de$1@news.povray.org>
"Chris Huff" wrote:
> If I understand this correctly, you may want to try separating
> your render frames from your calculation frames...

I did that a long time ago; that's not the problem.

> do a fixed number of iterations for a specific time period
> (for example, always compute 500 iterations by the time clock
> reaches 1),

Yes.

> and you will get the same result.

Yes, if the random steams are reliant on the calculation frames only and not
the render frames. And my problem is to achieve that.

I tried to use a new random stream for every calculation frame, but that
didn't work, as the Nth random number from the streams M, M+1, M+2, ...
would just change linearly. In other words, random numbers from one stream
are random compared to each other, but different streams are *not* random
compared to each other. (I think it's a common misunderstanding to think
that they are.)

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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