Reference
Noise Type Reference
TerraForm Noise Type Reference
1. Noise Algorithms
1.1 Diamond-Square Algorithm
Function:
diamond_square(shape, min_height, max_height, roughness, random_seed=None)
Description:
Generates terrain using the diamond-square fractal algorithm.
Parameters:
shape: Tuple of (height, width) for the output terrain
min_height: Minimum height value
max_height: Maximum height value
roughness: Controls the roughness of the terrain (0.0 to 1.0)
random_seed: Seed for random number generation (optional)
Returns:
2D NumPy array of noise values
1.2 Base Noise
Function:
base_noise(shape, exponent, seed=None)
Description:
Generates basic noise using Fourier synthesis.
Parameters:
shape: Tuple of (height, width) for the output terrain
exponent: Controls the frequency distribution
seed: Random seed (optional)
Returns:
2D NumPy array of noise values
1.3 Base Fractal Noise
Function:
base_fractal_noise(shape, exponent, octaves, lacunarity, persistence, amplitude, seed=None)
Description:
Generates fractal noise by combining multiple octaves of base noise.
Parameters:
shape: Tuple of (height, width) for the output terrain
exponent: Controls the frequency distribution
octaves: Number of noise layers to combine
lacunarity: Controls frequency increase per octave
persistence: Controls amplitude decrease per octave
amplitude: Initial amplitude
seed: Random seed (optional)
Returns:
2D NumPy array of fractal noise values
1.4 Fractal Voronoi Noise
Function:
fractal_voronoi_noise(shape, frequency, octaves, lacunarity, persistence, seed=None)
Description:
Generates noise based on Voronoi diagrams with fractal characteristics.
Parameters:
shape: Tuple of (height, width) for the output terrain
frequency: Initial frequency of Voronoi cells
octaves: Number of Voronoi layers to combine
lacunarity: Controls frequency increase per octave
persistence: Controls amplitude decrease per octave
seed: Random seed (optional)
Returns:
2D NumPy array of Voronoi noise values