POV-Ray : Newsgroups : povray.general : Random Numbers? : Re: Random Numbers? Server Time
8 Aug 2024 01:21:40 EDT (-0400)
  Re: Random Numbers?  
From: Chris Huff
Date: 24 Mar 2001 11:14:56
Message: <chrishuff-5B4040.11083424032001@news.povray.org>
In article <Xns### [at] povrayorg>, ing### [at] homenl (ingo) 
wrote:

> MegaPov has the time/date functions, it could be used for a different 
> seed for every render.

You could also save numbers to a file, every time you render the scene, 
generate a random seed value and write that to the file. That seed value 
would then be used next time the scene is rendered, and a new random 
seed value would be written to the file.
Or you could make the random seed value a function of the clock 
variable, and render an animation. I've used this technique to generate 
a bunch of different trees with different seed values with some tree 
macros I created...I put a text object in the scene so I could match 
each seed with it's result.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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