POV-Ray : Newsgroups : povray.beta-test : Time : Re: Time [please, no feature requests] Server Time
30 Jul 2024 04:22:25 EDT (-0400)
  Re: Time [please, no feature requests]  
From: Christopher James Huff
Date: 13 Jan 2002 14:43:50
Message: <chrishuff-BF7AA5.14443513012002@netplex.aussie.org>
In article <3c41dde0@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Although it is a genuine feature request, it can be implemented in about
> one line of C code. Just reserve a special value (eg. -1) and if this value
> is used, then the seed is read from the C time() function (ie. if you do
> #declare S=seed(-1); then you get a seed from that function).

A separate date() or time() function would be more flexible, though. 
It's been done for MegaPOV, I actually thought POV 3.5 included them...

A related patch I've been thinking of writing would allow you to use 
"rand()" to get random numbers from an internal time-seeded stream.

You could just use one of the usual workarounds for now...for example, 
write a new seed to a file and read it in for the next render.

-- 
 -- 
Christopher James Huff <chr### [at] maccom>


Post a reply to this message

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