Noise icon indicating copy to clipboard operation
Noise copied to clipboard

Erratic values generated

Open timogriese opened this issue 14 years ago • 0 comments

While testing the noise generator (kenperlin.PerlinNoise) further I found that values below -255 and above 255 yield erratic noise values. This looks like somewhere in the code calculations are done on byte level.

At first glance lines 18, 21, 173, 174 might be candidates for this erratic behaviour. Any idea how to fix it?

Best Regards, Pro

timogriese avatar Nov 22 '11 23:11 timogriese