I'm trying to implement a map generator mod that supports Martian crater shapes. I have referenced mapgenutil.lua::MakeRidges to achieve the basic shape.
but when I tried to add noise details, I lost the control of "noiseStrength", increment this Value, will cause my circle ridges rise sharply.
for help me express my confusion, please let me make some conventions first:
- H0: the base height of the ground at point P(x,y) (mean height without noise. after a series of attempts, I found that this value will be equivalent to the peakHeight-50 )
- N: the noise signal (in the interval [0,1])
- S: noiseStrength.
- H: final terrain height.
I naively thought:
H = H0*(1 + S * N)
But it's not actually.
anyone knows the details of "noiseStrength" and terrain height, please help me.