Divooka Reference

Heightmap Erosion Extensions

8 nodes

On this page 8

Apply Function To Height In Place

Function

This node carries no documentation.

Signature
ApplyFunctionToHeightInPlace
    heightmap: Scalar Field
    func: Func<Number Array Array, Number, Number>
void ApplyFunctionToHeightInPlace(
    ScalarField2D heightmap,
    Func<double[][], double, double> func)

Parameters

nametypedefaultdescription
heightmapScalar Field—
funcFunc<Number Array Array, Number, Number>—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Create Hydraulic Erosion Configuration

Function

This node carries no documentation.

Signature
CreateHydraulicErosionConfiguration -> ErosionConfiguration
    iterations: Integer
    rainRate: Number
    evaporationRate: Number
    minHeightDelta: Number
    reposeSlope: Number
    gravity: Number
    sedimentCapacityConstant: Number
    dissolvingRate: Number
    depositionRate: Number
    cellWidth: Number
    seed: Integer
    threadCount: Integer
    useGPU: Truth
ErosionConfiguration CreateHydraulicErosionConfiguration(
    int iterations = 76,
    double rainRate = 0.0008,
    double evaporationRate = 0.0005,
    double minHeightDelta = 0.05,
    double reposeSlope = 0.03,
    double gravity = 30,
    double sedimentCapacityConstant = 50,
    double dissolvingRate = 0.25,
    double depositionRate = 0.001,
    double cellWidth = 0.4,
    int seed = 0,
    int threadCount = -1,
    bool useGPU = false)

Parameters

nametypedefaultdescription
iterationsInteger76
rainRateNumber0.0008
evaporationRateNumber0.0005
minHeightDeltaNumber0.05
reposeSlopeNumber0.03
gravityNumber30
sedimentCapacityConstantNumber50
dissolvingRateNumber0.25
depositionRateNumber0.001
cellWidthNumber0.4
seedInteger0
threadCountInteger-1
useGPUTruthFalse

Returns

resultErosionConfiguration
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Get Hydraulic Erosion Configuration

Function

This node carries no documentation.

Signature
GetHydraulicErosionConfiguration(heightmap: Scalar Field) -> ErosionConfiguration
ErosionConfiguration GetHydraulicErosionConfiguration(ScalarField2D heightmap)

Parameters

nametypedefaultdescription
heightmapScalar Field—

Returns

resultErosionConfiguration
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Grid Hydraulic Erode In Place

Function

This node carries no documentation.

Signature
GridHydraulicErodeInPlace
    heightmap: Scalar Field
    configuration: ErosionConfiguration
void GridHydraulicErodeInPlace(
    ScalarField2D heightmap,
    ErosionConfiguration configuration)

Parameters

nametypedefaultdescription
heightmapScalar Field—
configurationErosionConfiguration—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Particle Hydraulic Erode In Place

Function

This node carries no documentation.

Signature
ParticleHydraulicErodeInPlace
    heightmap: Scalar Field
    iterations: Integer
void ParticleHydraulicErodeInPlace(
    ScalarField2D heightmap,
    int iterations)

Parameters

nametypedefaultdescription
heightmapScalar Field—
iterationsInteger—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Quick Erode In Place

Function

Erode with preset values.

Overload 1 of 3

Signature
QuickErodeInPlace
    heightmap: Scalar Field
    erosion: ScalarField2D.ErosionType
    configuration: ErosionConfiguration
void QuickErodeInPlace(
    ScalarField2D heightmap,
    ScalarField2D.ErosionType erosion,
    ErosionConfiguration configuration)

Parameters

nametypedefaultdescription
heightmapScalar Field—
erosionScalarField2D.ErosionType—
configurationErosionConfiguration—

Overload 2 of 3

Signature
QuickErodeInPlace
    heightmap: Scalar Field
    erosionType: Type
    configuration: ErosionConfiguration
void QuickErodeInPlace(
    ScalarField2D heightmap,
    Type erosionType,
    ErosionConfiguration configuration)

Parameters

nametypedefaultdescription
heightmapScalar Field—
erosionTypeType—
configurationErosionConfiguration—

Overload 3 of 3

Signature
QuickErodeInPlace
    heightmap: Scalar Field
    erosion: ErosionBase
    configuration: ErosionConfiguration
void QuickErodeInPlace(
    ScalarField2D heightmap,
    ErosionBase erosion,
    ErosionConfiguration configuration)

Parameters

nametypedefaultdescription
heightmapScalar Field—
erosionErosionBase—
configurationErosionConfiguration—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Thermal Erode In Place

Function

This node carries no documentation.

Signature
ThermalErodeInPlace
    heightmap: Scalar Field
    iterations: Integer
    heightDifferenceThreshold: Number
    erosionFactor: Number
    numberOfThreads: Integer
void ThermalErodeInPlace(
    ScalarField2D heightmap,
    int iterations,
    double heightDifferenceThreshold,
    double erosionFactor,
    int numberOfThreads = 1)

Parameters

nametypedefaultdescription
heightmapScalar Field—
iterationsInteger—
heightDifferenceThresholdNumber—
erosionFactorNumber—
numberOfThreadsInteger1
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation

Thermal Erode Normalized In Place

Function

This node carries no documentation.

Signature
ThermalErodeNormalizedInPlace
    heightmap: Scalar Field
    iterations: Integer
    normalizedTalus: Number
    erosionFactor: Number
    numberOfThreads: Integer
void ThermalErodeNormalizedInPlace(
    ScalarField2D heightmap,
    int iterations,
    double normalizedTalus,
    double erosionFactor,
    int numberOfThreads = 1)

Parameters

nametypedefaultdescription
heightmapScalar Field—
iterationsInteger—
normalizedTalusNumber—
erosionFactorNumber—
numberOfThreadsInteger1
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Heightmap Erosion Extensions
Package
Procedural Generation