-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
When I try to get noise using the 2D function, I get an out of range exception.
Here's my usage:
float max = 0.0f;
float min = 0.0f;
float sum = 0.0f;
float frequency = scale;
float amplitude = 1.0f;
float x = xin;
float y = yin;
for (int i = 0; i < octaves; i++)
{
x = x * frequency;
y = y * frequency;
float v = (float)noiseGenerator.Noise2(x, y);
sum += v * amplitude;
max += amplitude;
min -= amplitude;
frequency *= lacunarity;
amplitude *= persistance;
}
return (sum - min) / (max - min);
In particular when "scale" is at sizes at around 20 or so or higher.
e: The issue also occurs if I attempt to use Classic Simplex Noise.
Metadata
Metadata
Assignees
Labels
No labels