POV-Ray : Newsgroups : povray.newusers : random elements in blob object : Re: random elements in blob object Server Time
4 Nov 2024 17:43:55 EST (-0500)
  Re: random elements in blob object  
From: Tom Melly
Date: 4 Feb 2002 09:29:28
Message: <3c5e9ac8$1@news.povray.org>
"koos" <fra### [at] hotmailcom> wrote in message
news:01c1abbb$9437bf40$667dd383@etnica...

<snip>

Well, you've had answers to your initial problem.

Here's a subtler trap with random streams....

#declare S1 = seed(32534);
#while(1=1)
    #declare S2 = seed(rand(S1))
    object{foo translate y*rand(S2)}
#end

Here, you get some variation for rand(S2), but not a lot. This is because the
seed to S2 is always in the range 0 -> 1, which returns a random stream with
very little variation.


Post a reply to this message

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