Divooka Reference

Procedural Terrain

Usable

Heightmaps: generation, erosion, filtering, coloring, texturing and object placement

Guide on the Methodox Wiki

527 nodes in 40 categories

Ships with
Divooka ExploreDivooka Compute
Support tier
Tier 2 (proposed)
Package
Procedural Generation
Procedural Generation

Heightmap terrain, noise, erosion, planet maps and texturing, with the 3D meshes and scenes to put them on.

Heightmap Operations

AddAdd In PlaceApply CurveApply MasksApplies a series of HeightmapMasks to the Heightmap using a specified modification function.BlendBlend Height MaskCreates a modified copy of a heightmap by applying a grayscale height mask using the specified blend mode.Blend MaskedCalculate Flow Accumulation MapCalculates routed rainfall accumulation across the terrain.Calculate Height ChangeCalculate Height Change NormalizedCalculates pixel-space gradient magnitude and normalizes the result to 0-1.Calculate Normal Based SteepnessCalculates normal-derived steepness.Calculate NormalsCalculate Physical Height ChangeCalculate Physical Height Change NormalizedCalculates world-space gradient magnitude and normalizes the result to 0-1.Calculate Slope Angle DegreesCalculates slope angle in degrees.Calculate Slope Angle RadiansCalculates slope angle in radians.Calculate Slope MapCalculates a derived slope/steepness map from a heightmap.Calculate Topographic Wetness Index MapCalculates raw Topographic Wetness Index from routed flow accumulation and terrain slope.Calculate Wetness MaskCreates an artist-friendly 0-1 wetness mask from Topographic Wetness Index percentiles.ClampClamp In PlaceCloneCombine MasksCombines multiple Heightmap masks (value range 0-1) into a single union mask.ContrastAdjusts height contrast relative to the current elevation range.Contrast In PlaceAdjusts height contrast relative to the current elevation range.Create Forest MaskCreates a forest suitability mask.Create Local Relief MaskCreates a terrain flatness mask from local relief.Create Radial MaskCreate Snow MaskCreates a snow coverage mask from elevation, slope retention, and settling.Create Water MaskCreates a combined water mask from routed rivers and filled-depression lakes.Create Water PlaneSimply mask out a water plane based on specified Water Level.CropCrops the source scalar field to the specified rectangular region.Curve AdjustmentApplies a normalized level adjustment transfer curve while preserving the current elevation range.Curve Adjustment In PlaceApplies a normalized level adjustment transfer curve while preserving the current elevation range.DivideDivide In PlaceEqualizeRedistributes values by percentile rank while preserving the current elevation range.Equalize In PlaceRedistributes values by percentile rank while preserving the current elevation range.Fill In PlaceFilter By HeightFilters the heightmap based on a minimum or maximum height rule with an optional fade.Filter By SlopeFilters the heightmap based on slope range with an optional fade.Filter By ValueSubtract by 1Invert by subtracting from 1.Invert RangeMake DrainageModifies terrain in place so non-outlet cells can drain toward an outlet.Make Drainage In PlaceModifies terrain in place so non-outlet cells can drain toward an outlet.Make TerraceCreates a terraced copy while preserving the source elevation range.Make Terrace In PlaceApplies terrace shaping in place while preserving the current elevation range.MultiplyMultiply In PlaceNegateNegates all values.NormalizeNormalize In PlaceRescale entire height field to fit in height range.PowerReplace In PlaceReplace data from flattened array.ResizeResizes the source scalar field to the specified dimensions.SmoothUseful on low-resolution imports.SubdivideCreates a more densely subdivided scalar field while preserving its overall physical dimensions.Subdivide In PlaceSubdivides the target scalar field in place while preserving its overall physical dimensions.SubtractSubtract In PlaceTerraceThresholdCreates a binary mask by converting values below the threshold to 0 and values at or above the threshold to 1.

Terrain Erosion Settings

Make Terrain Erosion SettingsCloneA copy that can be changed without affecting this instance.Area ExponentDrainage area exponent m.Base LevelSea level, in metres.Bedrock Talus Angle DegreesSteepest stable angle of soft bedrock, in degrees.Borders Are OutletsWhether the map border drains off the map.Channel MemoryHow quickly the remembered discharge follows each pass (0..1).Coarse Grid CellsThe fluvial stage runs most of its time on a coarser grid whose longer side has this many cells, then refines at full resolution.Deposition CoefficientDimensionless deposition coefficient G.Deposit SlopeGradient (m/m) of the surface sediment builds when it fills a lake or closed basin, rising away from the outlet like a delta or alluvial plain.Droplet CapacitySediment capacity factor: how much a droplet can carry per unit of speed, slope and water.Droplet DensityDroplets spawned per square metre in each pass.Droplet DepositFraction of excess sediment dropped per step.Droplet Evaporation Per MetreWater lost per metre travelled, as a fraction.Droplet Max TravelLongest distance a droplet may run from the tile it starts in, in metres.Droplet PassesNumber of droplet passes.Droplet PickupFraction of spare capacity picked up per step.Droplet RadiusRadius of the erosion brush, in metres.Droplet StrengthOverall strength of droplet erosion and deposition, as a multiplier.Duration KiloyearsSimulated geological time of the fluvial stage, in thousands of years.Enable DropletsRun the droplet stage, which adds rills, gullies and small deposits on top of the fluvial landscape.Enable FluvialRun the fluvial stream-power stage, which carves the drainage network: dendritic valleys, sharp ridges, alluvial fans and filled lakes.Enable TalusRun the talus stage, which slumps slopes steeper than the angle of repose into scree and debris aprons.ErodibilityErodibility K of the stream-power law, in m^(1-2m)/yr.Fine StepsHow many full-resolution fluvial steps follow the coarse pass.Hillslope DiffusivityHillslope creep diffusivity, in m²/yr.Max ThreadsMaximum number of threads; 0 uses every core.Runoff Metres Per YearRunoff per unit area, in metres per year, used to turn drainage area into discharge for the water depth map.Sediment Erodibility MultiplierHow much more easily deposited sediment is eroded than bedrock, as a multiplier of the erodibility.SeedRandom seed of the droplet stage.Slope ExponentSlope exponent n.Talus Angle DegreesAngle of repose of loose material (deposits and debris), in degrees.Talus IterationsUpper bound on talus iterations.Talus RateFraction of the excess moved per talus iteration (0..1).Time Step KiloyearsFluvial time step, in thousands of years.Uplift Millimetres Per YearTectonic uplift rate, in mm/yr, multiplied by the optional uplift map.

Scalar Field

Physical ScaleMeters per unit cell.Make Scalar FieldInitializes a new instance of the Heightmap class with the specified dimensions.AddAdds another heightmap to this heightmap, element-wise.ApplyApplies a custom transformation function to each height value in the heightmap.CloneClones the heightmap, creating a deep copy.Create TemplateCreates a heightmap with same dimensions and attributes but initialized with fresh empty data.CropCrops the heightmap to the specified rectangular region.Erode BrushSimple erosionFlatten BrushFlattens the terrain within a brush area to a target height.ColumnsGets the width of the heightmap (number of columns).DataRow-major: height (y), width (x).Get ElevationsIs NormalizedGets whether all values in this scalar field are valid normalized values in the inclusive 0..1 range.Is SquareOccassionally useful due to output engine requirements - some usage scenarios require square maps.ItemGets or sets the height value at the specified (x, y) coordinate.RowsGets the height of the heightmap (number of rows).UsageAn indicator what this heightmap is used for.Get World DepthGet World WidthGet Angle DegreeCalculates the slope angle in degrees based on the gradient at a given point.Get Average HeightGets the average height value of the heightmap.Get ColorGet Data As ArraysGets a copy of data.Get Data As Arrays LDGets a copy of data in floats.Get Float ValueThis is very slow!Get GradientGets the gradient (partial derivatives) at the specified (x, y) coordinate.Get Gradient MagnitudeGet Gray ByteGet Height ChangeGet Max HeightGets the maximum height value in the heightmap.Get Min HeightGets the minimum height value in the heightmap.Get NormalGets the normal vector at the specified (x, y) coordinate.Get Physical Height ChangeGet ValueGets the height value at the specified (x, y) coordinate.Get ZInterpolate HeightInterpolates the height value at the specified (x, y) coordinate using bilinear interpolation.Noise BrushNormalize In Place With ClampNormalizes every value in _heightData in place so the result is between 0.0 and 1.0 (as specified by Max Value).Raise Lower BrushRaises or lowers the terrain within a brush area.ResizeResizes the heightmap to the specified dimensions using nearest neighbor scaling.Rotate CCWRotates the heightmap data 90 degrees counterclockwise.Rotate CWRotates the heightmap data 90 degrees clockwise.Sample Bilinear ClampedBilinearly samples the field using grid coordinates and clamps samples at the outer border.Sample World Bilinear ClampedBilinearly samples the field using physical world coordinates.Scale HeightsScales the heightmap vertically by the specified factor.Set ValueSets the height value at the specified (x, y) coordinate.SmoothSmooths the heightmap using a simple averaging filter.Smooth BrushApplies a smoothing operation within a brush area.SubdivideSubdivides each heightmap cell into a finer grid while preserving the overall physical dimensions.SummarizeReturns a technical summary of the heightmap, one parameter per line.To Flatten ArrayFlattened array.To Flatten Array LDFlattened array.To Pixel ImageModify as Color DataCreate Derived MapFrom ArraysGenerate Biome TextureGenerate Biome Texture GradientGet Slope Map Usage TokenReturns the canonical usage/term string for a slope map type.To Grayscale Pixel ImageValidate Physical Scale

Terrain Water Settings

Make Terrain Water SettingsBed Depth MetresThe bed the result gives under water is at least this far below the water surface, deepening from the shore over TerrainWaterSettings.BedSlopeMetres; where the ground is already deeper it is kept.Bed Slope MetresDistance from the shore over which the synthetic bed reaches about two thirds of TerrainWaterSettings.BedDepthMetres, metres.Channel Catchment Square KilometresCatchment at which a channel starts, km², for the height above nearest drainage (HAND, Rennó et al.Detect Flat WaterFind water the survey recorded.Fill DepressionsFill closed depressions with water up to the height at which they spill (priority-flood, Barnes et al.Flat Tolerance MetresHow far a cell may lie from the level of the flat region it joins, metres.Flat Water Lift MetresHow far the water surface of flat water sits above the flattened ground, metres, so the water's geometry does not coincide with the terrain's.Flat Water Minimum EnclosureThe share of a flat region's rim that must rise above it for it to count as water: a lake or a river lies below its banks, a mesa top or a terrace lies above what surrounds it.Flood Stage MetresFlood every valley floor to this height above its channel, metres, as HAND flood mapping does with a river stage: the water surface is the channel's height plus the stage, and every cell draining to that channel lower than it is under water.Lake Catchment RatioCatchment a lake needs per square metre of its surface to stay full, the ratio of evaporation from open water to runoff from its catchment: about 2 to 10 in wet mountains, 20 to 100 in semi-arid country, several hundred in a desert.Lake Fill FractionHow full each lake is, as a fraction of its depth from its lowest point to its spill height: 1 is brim-full, as a lake with an outlet stream is; less leaves the lower stand of a closed basin in a dry climate.Maximum River Climb MetresThe highest a reach may climb above the local valley floor to join two crossings, metres.Minimum Flat Water Area Square MetresThe smallest flat region taken as water, m².Minimum Lake Area Square MetresA depression holds a lake only if its water covers at least this much ground, m².Minimum Lake Depth MetresA depression holds a lake only if it is at least this deep below its spill height, metres.Minimum Notch Depth MetresWith automatic river ends, the least depth of a border notch below its sides for the river to cross the border through it, metres.River Depth MetresWater depth over the river's thalweg, metres.River Entry UWhere the river enters, as a fraction of the map's width (columns) and depth (rows), 0..1. NaN, here or in the exit, finds the crossings in the border instead: every notch at least TerrainWaterSettings.MinimumNotchDepthMetres deep whose floor lies within TerrainWaterSettings.RiverFallMetres of the lowest one.River Entry VRiver Exit UWhere the river leaves, as a fraction of the map's width and depth, 0..1. With the entry given, the river runs between the two whatever lies between them.River Exit VRiver Fall MetresHow far the river falls across the map, metres: border notches whose floor lies higher than this above the lowest notch are side valleys, not the river.River Maximum Half Width MetresHow far the river spreads from its thalweg over ground below its surface, metres.River Surface Smoothing MetresHow far the river's surface is averaged over its own water, metres, 0 for not at all.Sea From Border OnlyOnly ground below sea level that connects to the map's border is sea; inland ground below it, as in a polder or the Dead Sea's basin, stays dry unless a lake fills it.Sea LevelSea level, metres.Shore Softness MetresThe water mask falls from 1 to 0 over this distance across the shoreline, metres.Through RiverA river crossing the map, fed from off it: the cheapest paths along the valley floor between the places it crosses the map's border, filled to TerrainWaterSettings.RiverDepthMetres.Valley Floor Height MetresHeight above drainage at which the valley-floor mask has fallen to 0, metres.Valley Radius MetresRadius of the window whose lowest point is the local valley floor, metres.Valley Tolerance MetresHeight above the local valley floor that multiplies the path's cost by e, metres.Wet Bank Distance MetresThe wet-bank mask is 0 this far from the water, metres.Wet Bank Height MetresThe wet-bank mask is 0 this high above the nearby water surface, metres: the height splash, seepage and floods keep wet.

Cell Based Terrain

Heightmap Visualization Routines

Terrain Erosion Result

DebrisMaterial laid down by slumping (scree and debris aprons below steep slopes), metres of height.Debris Mask0..1 debris (talus) mask: 1 − exp(−debris / 1 m).Deposited VolumeVolume laid down by water and slumping, m³.DepositionMaterial laid down by water (fluvial deposits, filled lakes, droplet deposits), metres of height.Deposition Mask0..1 deposition mask: 1 − exp(−deposit / 2 m).DischargePrecipitation-weighted drainage area, m²: how much land drains through each cell.Droplet TimeTime spent in the droplet stage.Eroded VolumeVolume removed, m³.Exported VolumeVolume carried off the map through outlets, m³.Flow Direction XX component (columns, east) of the unit downhill flow direction.Flow Direction YY component (rows, down the image) of the unit downhill flow direction.Flow Mask0..1 flow mask: logarithmic in drainage area, 0 at 1,000 m² and 1 at 10 km².Fluvial TimeTime spent in the fluvial stage.HardnessThe rock hardness the erosion used (0 soft ..Height DeltaFinal minus initial height, metres; negative where material was removed.Height Delta Mask0..1 height change: 0.5 unchanged, 0 at 10 m or more removed, 1 at 10 m or more added.HeightmapThe eroded heightmap, metres.Mass Balance ErrorVolume unaccounted for (net change + exported − uplifted), m³; near zero when mass is conserved.Net Volume ChangeChange of the terrain's total volume, m³.Output TimeTime spent deriving the output maps.Sediment FluxSediment flux carried out of each cell, m³/yr.Sediment Mask0..1 sediment mask: logarithmic in flux, 0 at 0.001 m³/yr and 1 at 10 m³/yr.Talus IterationsTalus iterations run.Talus TimeTime spent in the talus stage.Uplifted VolumeVolume added by uplift, m³.Water DepthStanding water depth, metres: lake depth below the spill height plus channel depth from hydraulic geometry (0.3·Q^0.4 with Q in m³/s).Water Mask0..1 water mask: water depth, linear from 2 cm (0) to 1 m (1), so shallow channels show as well as lakes.WearTotal material removed by all stages, metres of height.Wear Mask0..1 wear mask: 1 − exp(−wear / 5 m).WetnessTopographic wetness index ln(a / tan β), dimensionless, with a the specific catchment area (m) and β the local slope.Wetness Mask0..1 wetness mask: wetness index, linear from 6 (0) to 14 (1).

Terrain Layering

Add Terrain LayersA stack with more layers laid over the top of it: a natural stack with a layer of one's own, a saved stack with another.Aspect MaskSlopes facing a compass direction: the shaded northern faces snow lingers on, or the sunny southern ones that dry first.Bake Layer StackBakes a layer stack into colour, normal, roughness and height maps, as Bake Terrain Surface does a palette.Blur MaskSoftens a mask's edges.Combine MasksTwo masks as one: where both are, either, one less the other, or the greater or lesser of them.Convexity MaskConvex ground - ridge and mesa tops, spurs - or concave ground - hollows, valley floors, the feet of walls - at a feature size.Curvature MaskThe terrain's curvature at a feature size: 0.5 flat, toward 1 on ridges and rims, toward 0 in gullies and at the feet of slopes.Field MaskA field as a mask, stretched over the terrain: a painted mask, an erosion's map, any heightmap-shaped data.Full MaskEverywhere.Height MaskGround between two elevations, fading in and out over a distance on either side.Input MaskA map the stack is baked with, by name: debris, deposition, wear, water or wetBanks from Terrain Analysis Maps, or a name a Field Mask was given.Invert MaskOne less the mask: where it was, now where it was not.Terrain LayerOne layer of a terrain's surface: a material, where it goes, and how it meets the layers below.Terrain Layer StackLayers over a terrain, the first at the bottom: a surface ready to bake.Load Layer StackLays a saved layer stack over a terrain.Mask Brightness ContrastBrightens a mask and sets its contrast about its middle.Mask LevelsStretches a mask so that a low value becomes 0 and a high one 1, holding the rest to 0..1: the Levels of every mask stack.Mask PowerRaises a mask to a power: above 1 narrows it to its strongest parts, below 1 spreads it.Mask ThresholdA soft cut-off: 0 below one value, 1 above another, smooth between.Natural Terrain StackThe layer stack Bake Terrain Surface lays a palette with in its natural style - ground, its variation, exposed tops, sediment, fallen rock, cliffs, wet banks, the shore and snow, each by the land's shape - for layers of one's own to be added to before it is baked.Near Input MaskGround within a distance of where a map the stack is baked with is set: a beach along the water, a bank beside it.Near Slope MaskGround within a distance of where the slope lies between two angles: the foot of a cliff, the reach of rock fallen from it.Noise MaskFractal noise laid over the ground in metres, 0..1: the large patches that keep one material from reading as one colour across a kilometre.Save Layer StackSaves a layer stack as a small JSON document - every layer, its mask and settings, and each material by its library id or folder - to lay over any terrain later with Load Layer Stack.Slope MaskGround whose slope lies between two angles, fading over a few degrees on either side: flats, gentle slopes, cliffs.Underlying Curvature MaskThe curvature of the materials laid by the layers below this one, 0.5 flat: the edges of stones, the cracks between them.Underlying Height MaskThe height of the materials laid by the layers below this one, 0..1: Mixer's underlying mix, for a layer that fills the gaps between stones or sits on their tops.Wetness MaskWhere water draining over the terrain would gather: the topographic wetness index, high along valley floors and in hollows.

Cell Based Terrain Query Engine

SimplyHydrologyErosionResult

Landscape

Heightmap Pipeline (Procedural)

Terrain Erosion

Terrain Water Result

Heightmap Selectors

Heightmap Data Usage Token Ambient OcclusionUsage of an ambient occlusion (sky visibility) field.Heightmap Data Usage Token Aspect DegreesUsage of an aspect field, in compass degrees.Heightmap Data Usage Token ConvexityUsage of a raw convexity field, in metres above the local mean.Heightmap Data Usage Token CurvatureUsage of a raw curvature field, in 1/metre.Heightmap Data Usage Token DistanceUsage of a distance field, in metres.Calculate Ambient OcclusionMeasures how much of the sky each cell sees, by marching the horizon in several directions: 1 in the open, darker in valleys, gorges and at the foot of cliffs.Calculate Aspect DegreesGives the compass direction each slope faces (its downhill direction), in degrees clockwise from north.Calculate ConvexityMeasures how far each cell stands above (positive) or below (negative) the Gaussian-weighted mean height around it, in metres.Calculate CurvatureMeasures the surface curvature of a heightmap in 1/metre, positive on convex ground and negative on concave ground.Calculate DistanceMeasures the exact straight-line distance in metres from every cell to the nearest cell of a mask.Select AspectSelects slopes facing a compass direction: a 0..1 mask, for north-facing snow, sun-facing dry grass, moss on shaded sides.Select ConvexitySelects ridges or gullies by convexity: a 0..1 mask that lights crests and darkens channels (Signed), or keeps one side only.Select CurvatureSelects convex or concave ground by its curvature: a 0..1 mask.Select Distance BandSelects a band of ground at a distance range from a mask: shore strips beside water, riverbank sediment, verges along roads, scree aprons below rock.

Terrain Surfaces

Terrain Analysis MapsMaps from analysis that the natural style lays a palette by, each 0..1 over the terrain: where erosion left debris (fallen rock), where it laid sediment, where it wore the surface, where water stands and where the ground beside it is damp.Badlands Terrain PaletteBadlands: prairie on the tablelands and the gentle ground, bare buff clay on the rises, banded walls of clay and soft sandstone where the land falls away, the same clay washed down their feet, and cracked clay on the flats of the drainages.Bake Terrain SurfaceLays a palette over a terrain and bakes it into colour, normal, roughness and height maps.Terrain PaletteA palette: one material for each role a landscape's surface has.Default Terrain PaletteA temperate mountain palette from the library: sparse grass with patches of grassy ground, bare rock on the tops, a rock face, fallen rock, gravel in the hollows, moss where it is wet, a sandy shore and snow, each tinted to sit with the others.Desert Terrain PaletteCanyon country from the library: gravelly sand with patches of denser sand, pale bleached tops, a pink-brown sandstone face, grey-brown fallen rock, sand in the hollows, green where water stands and river stones at its edge.Dune Terrain PaletteGypsum dunes, as at White Sands: near-white sand on the dunes, a pale crust cracked into plates on the flats between them, and scrub where water gathers.Lava Terrain PaletteFresh lava, as on Kīlauea: grey-black basalt, smooth flows and rough rubble, a little grass and fern where it has had time to weather.Library MaterialA material from Divooka's library (Poly Haven's CC0 sets): one of DivookaTextureAssets.AvailableMaterials, at its true size.Load Texture SetA material from a folder of maps named as Poly Haven names them: {id}_diff_{resolution}, _nor_gl_, _rough_, _disp_ and _ao_, as PNG or JPEG.Natural Texturing SettingsSettings for the natural style of Bake Terrain Surface and for Natural Terrain Stack: where each role of a palette is laid, in metres and degrees.Rainforest Terrain PaletteTemperate rainforest: leaf litter and forest floor under the trees, moss on the rocks and the rises, mossy grey rock faces, river gravel and stones along the water.Swamp Terrain PaletteSwamp: mud under fallen leaves, grass on the drier rises, bare wet mud and silt where the water comes and goes.Terrain MaterialA material from images: any of colour, normal (OpenGL convention, green up), roughness, height and ambient occlusion.

Heightmap Texture Sampler

Heightmap Erosion Extensions

Heightmap Generator

Heightmap Amplification

Landscapes

Heightmap Filters

Heightmap Erosion Operations

Terrain Erosion Masks

Rules Based Heightmap Colorer

Baked Terrain Surface

Terrain Population

Heightmap Files

Terrain Water

Heightmap Splatmaps

Interactive Heightmap Viewers

Heightmap Effects

Terrain Renders

Populations

Heightmap Mesher

Cell Based Terrain Heightmap Interop

Cell-based Terrain Query Engine Factory

Terrain Rivers

Simple Hydrology

Real Terrain