Skip to content

Flow ​

Data data.flow

Where rain would run: Flow is bright along streams and rivers (the area draining through each point, on a log scale), Direction is the way water flows (0..1 = 0..360°, 0° = +X), and Basins gives each drainage basin its own value. Pits fill until they spill; water leaves at the world's edges.

Flow with default settings

Output with default settings, rendered by LibreTerrain.

Inputs ​

PortType
TerrainHeightfield

Outputs ​

PortType
FlowMask
DirectionMask
BasinsMask

Settings ​

SettingDefaultRange / optionsDescription
MethodD-infinity (smooth)D-infinity (smooth), D8 (single path)D-infinity splits water between two downhill neighbours, so flow spreads on open slopes; D8 sends it all one way, giving sharp single-cell streams.
Detail size8 m1 to 1,000 mCell size water is routed at, in metres: about the width of the smallest streams. Smaller is slower. The result is the same at any preview or build resolution.

See also ​

Aspect · Curvature · Distance · Height Mask · Occlusion · Rock Hardness · Select Range · Slope · Wetness

Code dual-licensed MIT / Apache-2.0. "LibreTerrain" and its logo belong to EllisonDigital.