POV-Ray : Newsgroups : povray.general : Simple trick for getting different random numbers in each render : Re: Simple trick for getting different random numbers in each render Server Time
10 Aug 2024 20:59:28 EDT (-0400)
  Re: Simple trick for getting different random numbers in each render  
From: Charles
Date: 31 Oct 1999 09:58:04
Message: <381C5945.DAF30177@enter.net>
Novel approach.

>   Then add this at the end of your .pov file:
> 
> #fopen ofile "seed.dat" write
> #write(ofile,int(rand(Seed)*1000000))
> #fclose ofile
> 

Still think you should make stowing the next run's seed the first
thing you do once the stream is instantiated as opposed to putting
it at the end of the file. That way the whole process could be
coded as a #macro, which could be used to instantiate multiple
true random number streams on demand, making it more flexible
in the long run.


Post a reply to this message

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