Divooka Reference

Terrain Rivers

1 node

On this page 1

Trace Rivers

Function

A 0..1 river mask: 1 on water, falling to 0 over Edge Softness Metres at the banks.

Signature
TraceRivers -> Scalar Field
    heightmap: Scalar Field
    minimumCatchmentSquareKilometres: Number
    widthAtOneSquareKilometreMetres: Number
    minimumWidthMetres: Number
    edgeSoftnessMetres: Number
    mainStemOnly: Truth
    standingWaterMetres: Number
    maximumGradient: Number
ScalarField2D TraceRivers(
    ScalarField2D heightmap,
    double minimumCatchmentSquareKilometres = 0.5,
    double widthAtOneSquareKilometreMetres = 12,
    double minimumWidthMetres = 0,
    double edgeSoftnessMetres = 3,
    bool mainStemOnly = false,
    double standingWaterMetres = 0,
    double maximumGradient = 0)

Parameters

nametypedefaultdescription
heightmapScalar Field—The terrain, metres; usually the eroded heightmap.
minimumCatchmentSquareKilometresNumber0.5Catchment at which a channel counts as a river; smaller values bring in tributaries. With Main Stem Only, where the traced stem ends upstream.
widthAtOneSquareKilometreMetresNumber12River width where its catchment is one square kilometre; width grows with the square root of catchment, as hydraulic geometry has it.
minimumWidthMetresNumber0The narrowest a river is drawn. A map cut out of a landscape that a large river crosses sees only the small part of its catchment that lies on the map, so the catchment alone would draw it far too thin; this is its real width.
edgeSoftnessMetresNumber3Width of the fall-off at each bank.
mainStemOnlyTruthFalseOnly the main river: from the outlet that drains the most, upstream along the donor that drains the most at every step, to where its catchment falls below Minimum Catchment Square Kilometres.
standingWaterMetresNumber0Spreads the water from the traced river over the connected ground lying within this height of it, above or below, - the flat water surface a survey records where the river runs wide. 0 draws the traced path alone.
maximumGradientNumber0With Main Stem Only, where the stem stops climbing: rise over run (0.02 is 2 m per 100 m) averaged over the last 200 m, from 400 m above the mouth. A large river is nearly level, and on a map cut out of a landscape most of its catchment lies off the map, so upstream the largest donor can be a side canyon climbing out of the gorge; this ends the river where that climb begins. 0 does not limit it.

Returns

resultScalar Field
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Rivers
Package
Procedural Generation