POV-Ray : Newsgroups : povray.general : Random Numbers? : Re: Random Numbers? Server Time
8 Aug 2024 01:19:20 EDT (-0400)
  Re: Random Numbers?  
From: Francois Labreque
Date: 24 Mar 2001 10:08:36
Message: <3ABCB7BB.B5E6318F@videotron.ca>
Doug Moses wrote:
> 
> I am new to PovRay and looking for a way to generate random numbers. There
> is a clock function that I looked at

clock is a keyword used in animations which is related to the frame
currently being rendered, it has nothing to do with random numbers.


> but is there any other function such as
> RND, RANDOM, etc that PovRay has that can generate random numbers?

Look at the seed() and rand() functions.

> What I am
> trying to do is create a pattern on an image using "crackle" that will
> change each time I render it. The pattern stays static each time despite
> using, "Omega", "Turbulence" etc.

Turbulence (and its suboptions omega, lambda, octaves...) will affect
the way a pattern looks, i.e. different values produce different
results, but the same values will ALWAYS produce the same result.

Patterns will always be the same between renders to make sure that your
pattern does not move between frames of an animation or that the copy of
your image rendered on my IBM ES/9000 mainframe looks the same as the
one on your Amiga. 

> Is this something that can be done without
> having to setup animation?

The only ones I can think of are rather complicated.  Anyone?

-- 
Francois Labreque | The surest sign of the existence of extra-
    flabreque     | terrestrial intelligence is that they never
        @         | bothered to come down here and visit us!
  videotron.ca    |                             - Calvin


Post a reply to this message

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