POV-Ray : Newsgroups : povray.general : Smooth random : Re: Smooth random Server Time
10 Aug 2024 23:19:19 EDT (-0400)
  Re: Smooth random  
From: Margus Ramst
Date: 10 Oct 1999 14:50:07
Message: <3800DFA8.54B90134@peak.edu.ee>
I'm not sure what you're after. The smooth rand macro is one solution.
I can also send you a Perlin noise macro I created. It takes a float as the
parameter and returns values within a certain limit. Close parameters give
statistically close values. The result is similar to turbulence - you have
control over octaves and omega - but the noise is 1D, i.e. it returns a float.
Let me know if you're interested, because I'd have to clean up the source before
posting it.

Margus

Larry Fontaine wrote:
> 
> How can I get a smooth random number, ie, it varies from the last random
> number by no more than a certain amount? (I'm making a tree macro and
> want a way to twist the limbs.)


Post a reply to this message

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