Perlin noise average values
l use perlin noise to detect whether the position at x and z belong to the sumpf biome.
https://github.com/HybridDog/sumpf/blob ... n.lua#L127
To allow custom biome sizes and rarity, l need to find out how to predict the noise values occurrences. Simply using sinus doesn't work right.
p(v) is the chance the abs of a randomly picked value is smaller than v.
p(0) = 0 of course,
p(1) ≈ 1 (The values are not always inside [-1; 1].)
p(0.5) > 0.5 l assume
How can l calculate p(v)?
https://github.com/HybridDog/sumpf/blob ... n.lua#L127
To allow custom biome sizes and rarity, l need to find out how to predict the noise values occurrences. Simply using sinus doesn't work right.
p(v) is the chance the abs of a randomly picked value is smaller than v.
p(0) = 0 of course,
p(1) ≈ 1 (The values are not always inside [-1; 1].)
p(0.5) > 0.5 l assume
How can l calculate p(v)?