3D Terrain Generator

Build islands and mountain ranges from gradient noise, then carve them with hydraulic and thermal erosion and watch the roughness exponent change.

Switch to 2D

Presets

Playback

Noise

Shape and water

Erosion

Scenery

Camera

Layers

Quality

Model check

The science

Noise. The ground is built from gradient (Perlin) noise: each lattice point gets a pseudo-random unit gradient chosen by the seed, and the value between points is a quintic-smoothed blend 6t5 - 15t4 + 10t3 of the four corner contributions. One octave is a smooth bump field of a single size; its range is |n| ≤ √2/2.

Fractal sum. Fractional Brownian motion adds octaves: h(x) = Σk gk n(λk x) / Σ gk, with persistence g (amplitude ratio) and lacunarity λ (frequency ratio). The roughness (Hurst) exponent is H = -ln g / ln λ, and the surface has fractal dimension D = 3 - H. The mean squared height increment obeys E[(h(x+s) - h(x))2] ∝ s2H, which is what the middle graph measures. Ridged noise uses (1 - |n|)2 (sharp crests), billow noise uses |n| (rounded domes); domain warping displaces the sample point by another noise field, which bends the ridges into river-like shapes.

Shaping. Contrast stretches the values about the mean, the redistribution exponent hp flattens lowlands (p > 1) or fills them in (p < 1), and the island falloff multiplies by a smooth mask that sinks the edges below sea level. Colours come from rules on elevation and slope: sand near the shore, rock where the slope is steep, grass in the middle, bare soil above the tree line and snow above the snow line, blended through textures baked in Blender.

Erosion. Hydraulic erosion drops virtual raindrops on the surface. Each droplet rolls downhill along the interpolated gradient with some inertia, picks up sediment up to a capacity c = max(-Δh, smin) v w k, deposits it when it carries more than capacity or climbs, loses speed uphill (v2 ← v2 - g Δh) and slowly evaporates. Material removed from the four cells around the droplet is exactly the material it carries, and whatever it holds when it dies is dropped, so the total height of the grid is conserved - the third check tests this. Thermal erosion moves material from a cell to each lower neighbour whose slope exceeds the talus angle tan θ, symmetrically, until slopes relax towards θ.

Simplifications, stated honestly. The erosion is a game-style particle model, not a solved shallow-water or sediment-transport equation: there is no river discharge, no rock strength layers, no glacial or tectonic processes, and time is not calibrated (droplets are not years). Sea level is a flat plane, so there are no lakes at altitude. Trees are placed by simple height and slope rules with random thinning and are not an ecological model. The vertical scale is exaggerated relative to the 240 m map, which makes slopes steeper than real terrain of the same horizontal extent.

Loading model...
Loading Blender model...
Hypsometric curve: elevation against the fraction of area above it
Structure function: log mean squared height increment against lag; dashed line is the slope 2H the noise settings predict
Slope distribution now against as generated (erosion steepens valleys and smooths slopes)
Made with 🟠 Blender · Three.js