POV-Ray : Newsgroups : povray.general : A quick rand() question... : Re: A quick rand() question... Server Time
31 Jul 2024 04:22:10 EDT (-0400)
  Re: A quick rand() question...  
From: Alain
Date: 23 Oct 2007 11:23:48
Message: <471e1204$1@news.povray.org>
Tim Nikias nous apporta ses lumieres en ce 2007/10/22 18:02:
> Warp wrote:
>> Tim Nikias <JUS### [at] gmxnetware> wrote:
>>> Of course, since it's MegaPOV, the random-stream might be different 
>>> again, but if/once the Intel-Based POV-Ray for Mac gets released, 
>>> will the streams be identical?
>>
>>   POV-Ray uses its own random number generator function (a linear
>> congruential generator, if you are interested; see wikipedia).
>> There's no reason why it would give different values in different
>> systems.
> 
> Hm, I seem to recall that I once rerendered an image that I made with 
> POV 3.1 and rendering it now looks different. But maybe I changed 
> something else as well, thus mixing up the stream...
> 
>>> You may argue that this question is purely scientific, when I use 
>>> random streams, I'm looking for random-input, so asking how 
>>> determined it is might be kinda stupid...
>>
>>   No. Always getting the same stream of numbers every time is very useful
>> for many purposes.
> 
> Yup, just need to make sure that you'll actually get the same numbers 
> even at a later point. ;-)
> 
> Regards,
> Tim
> 
Maybe the random algorythm have changed between 3.1 and 3.6. After all, the 
default noise generator did change between 3.5 and 3.6.

-- 
Alain
-------------------------------------------------
Politicians are like diapers, they should be changed often and for the same reason.
	Bob Monkhouse


Post a reply to this message

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