POV-Ray : Newsgroups : povray.general : QUESTION: Random Seed deriving from Time? : Re: QUESTION: Random Seed deriving from Time? Server Time
16 Apr 2024 09:09:51 EDT (-0400)
  Re: QUESTION: Random Seed deriving from Time?  
From: clipka
Date: 18 Feb 2018 22:03:36
Message: <5a8a3e88$1@news.povray.org>
Am 19.02.2018 um 03:45 schrieb Sven Littkowski:

> The POV-Ray help file did not mention "now", and so I started to search
> online but without knowing what exact keywords to look for. Eventually,
> I came accross a web page thatwas about POV-Ray and also featured
> "CURRENTTIMESTAMP". I believed it was more about programming then
> anything I could use in a scene, but i wanted to give a try, and that's
> how I got these variations you saw.

Strange. Maybe it was something the author passed into POV-Ray from an
external script, via the `Declare` INI-file setting.

> I use "now" but the renders still look the same, like the seed would
> remain the same. I make the renders in intervals of less than a minute.
> Thus, a seed that changes each second would be nice.

Using just `seed(now)`, the random sequence changes only once each day.
For the sequence to change every second, use `seed(now * 24*60*60)` instead.


Post a reply to this message

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