Perlin noise is the sum of several coherent-noise functions of ever-increasing frequencies and ever-decreasing amplitudes.
The perlin noise does not contain a completely random value at each point but rather consists of “waves” whose values gradually increase and decrease across the pattern.
The perlin noise module usually outputs values between -1 and 1.
The module’s constructor needs:
- Frequency : define the frequency of the first octave. Frequency represents the number of cycles per unit length that a generation module outputs.
- Persistence : a multiplier that determines how quickly the amplitudes diminish for each successive octave.
- Lacunarity : a multiplier that determines how quickly the frequency increases for each successive octave
- Octave count : the number of octaves control the amount of detail of the perlin noise. Adding more octaves increases the detail of the perlin noise, but with the drawback of increasing the calculation time.
Frequency = 1
Frequency = 5
Frequency = 10
Persistence = 0.25
Persistence = 0.5
Persistence = 0.9
Lacunarity = 0.5
Lacunarity = 2
Lacunarity = 5
Octave count evolution
Octave count = 2
Octave count = 6
Octave count = 12