noise-rs icon indicating copy to clipboard operation
noise-rs copied to clipboard

Document minimum and maximum

Open Reconcyl opened this issue 5 years ago • 3 comments

Could the crate documentation be updated to specify what the exact bounds on noise output values are? Experimentally, two-dimensional OpenSimplex noise values appear to always lie in the range [-0.544, 0.544].

Related: #51

Reconcyl avatar Jan 25 '20 21:01 Reconcyl

This would be very helpful. Some quick experimentation suggests Perlin noise is nearly always between -0.5 and 0.5, but not quite actually always. If it was normalized to some standard range, like 0 to 1, this library would be much easier to use. If the limits were documented anywhere, even.

nic-hartley avatar Mar 09 '20 07:03 nic-hartley

From code comments, the range is supposed to be between -1 to 1 for most noises. I believe the current ranges are a bug. I fixed the perlin ranges here: https://github.com/Razaekel/noise-rs/pull/283

bsurmanski avatar Jan 04 '22 02:01 bsurmanski

I agree, the fact that all the noise functions seem to have random max/mins is kinda annoying.

AideTechBot avatar Dec 27 '22 04:12 AideTechBot