POV-Ray : Newsgroups : povray.general : I dont believe I did that! : Re: I dont believe I did that! Server Time
9 Aug 2024 15:24:56 EDT (-0400)
  Re: I dont believe I did that!  
From: Nathan Kopp
Date: 19 Aug 2000 01:27:04
Message: <399e1aa8$1@news.povray.org>
"Vahur Krouverk" <vah### [at] aetecee> wrote...
> Chris Huff wrote:
> >
> >
> > How is DNoise() different from Noise()? This is something I have never
> > figured out. I had just assumed both had the same problem.
> >
> As much as I understand, Noise and DNoise should be fairly same
> (DNoise's first component has same value as Noise's return value for
> same evaluation point), so I think that this fix should be applied there
> as well.

The algorithm that produces the fractal pattern for DNoise and Noise is very
similar.  DNoise produces a vector of noise, while Noise produces a single
output.

The algorithm itself basically produces an output in the range of
approximately [-1,1].  This is what DNoise wants for each component, so it
doesn't change anything.  However, Noise needs to change it to [0,1] for use
in a pattern.  However, in the official conversion, the change is incorrect,
and it over-saturates the top end.  MegaPov just fixes the conversion.

The old version simply adds 0.5, while the new version (for all practical
purposes) adds 1 and then divides by two.

-Nathan


Post a reply to this message

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