|
![](/i/fill.gif) |
"Vahur Krouverk" <vah### [at] aetec ee> 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
|
![](/i/fill.gif) |