Closed makryl closed 3 years ago
Well that's not great!
Unfortunately, I'm not maintaining fast-simplex-noise-js
anymore. I've instead moved over to work on open-simplex-noise-js
and fractal-noise-js
, which essentially split up the functionality of this library, and add some improvements.
Having said that, I'll gladly accept pull requests here for a fix. I would just rather concentrate on the more recent libraries.
Thanks for answer! I will switch to these libraries and check if they have same bug :)
Just checked new libraries, and looks that there is no bug
var size = 200;
var noise = new OpenSimplexNoise(Date.now());
var field = FractalNoise.makeSphereSurface(size, (x, y, z) => noise.noise3D(x, y, z));
for (var y = 0; y < size; y++) {
for (var x = 0; x < size; x++) {
var value = field[x][y];
if (value < -1 || value > 1) {
console.log(value);
}
}
}
All values in range. Thanx!
Hello! Thank you for great library!
I'v noticed that spherical noise sometimes goes out of range.
Run this code, and you will see some values out of range -1;1