Procedural Terrain
The Procedural Terrain toolbox makes landscapes from heightmaps: grids of elevations. It generates terrain from noise (Perlin, ridged multifractal and more), shapes it, wears it with hydraulic and thermal erosion, fills lakes and seas, colors and textures it by height, slope and wetness, places trees, shrubs and rocks by rules, and renders it. It can also fetch real terrain of the United States from USGS lidar. Results leave as images, GeoTIFF heightmaps or meshes.
Use it for game levels, film backgrounds, maps and terrain studies.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the Procedural Generation workload, or add the Procedural Generation reference with Add reference (
Ctrl+Shift+L). The Procedural Generation reference holds Procedural Terrain, Procedural Planet Maps, 3D Rendering and the mesh part of 3D Modeling. - Maturity: Usable · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Procedural Terrain, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ Procedural Terrains (24 examples) · node reference
New to graphs? Start with Your first program.
Main ideas
A heightmap is a Scalar Field. Most nodes take and return a 2D field of heights in meters.
Sizes are in meters. Filters such as blur take their sizes in meters, so the same settings give the same result at any resolution.
From shape to surface. First make the land's shape, then derive its materials and water from it: where rock falls, sediment collects and water stands.
Example: erode a mountain
Open Procedural Terrains > Hydraulic Erosion (Ctrl+Shift+E). It is a Flows graph of four nodes:
- Generate Ridged Multifractal Terrain makes a mountain range from noise. Its inputs set the size, Feature Size, Min Elevation and Max Elevation, octaves and Seed.
- Create Hydraulic Erosion Configuration sets how water wears the land: Iterations, Rain Rate, Evaporation Rate, sediment capacity and more, and Use GPU.
- Quick Erode takes the heightmap and the configuration and returns the eroded heightmap.
- Preview shows it.
Run it with F5. The ridges get gullies and the valleys fill with sediment. Raise Iterations for deeper erosion.
To use your own heightmap: From Grayscale Image turns a grayscale image into a heightmap (use a 16-bit image for full precision); the example Heightmap from Image shows how. Fetch Real Terrain (USGS 3DEP) downloads real terrain around a latitude and longitude.
Example: from heightmap to image and mesh
Open Procedural Terrains > Procedural Terrain. Generate Perlin Noise Terrain makes a heightmap that feeds three branches: To Contour Map draws contour lines as an image, which Save writes to a file; and Convert Terrain to Grid Mesh with Resample turns the terrain into a mesh for 3D programs.
More examples to open
| Example | What it shows |
|---|---|
| Terrain Coloring, Terrain Texturing | Color and texture by height and slope |
| Terrain Layers, Natural Terrain Stack | Material layers by masks and by erosion |
| Terrain Population | Trees, shrubs and rocks placed by rules |
| Terrain Query | Height and slope read at points |
| Shadow Map, Terrain Visibility Map | Sun shadows and what can be seen from a point |
| Real Terrain, White Sands, Maroon Bells | Real places from USGS lidar |
Tips and limits
- Fetch Real Terrain needs the internet and covers the United States only, where USGS has lidar.
- Save Heightmap writes GeoTIFF, which GDAL, QGIS, World Machine and Gaea read.
- GPU erosion. Hydraulic erosion can run on the GPU; turn Use GPU off where no GPU is available.
- Rendering a landscape uses Radeon ProRender and takes minutes, faster on a GPU.
Goes well with: Fantasy Planet Painter for whole planets, Procedural Materials for surfaces.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Heightmap Operations | Add, Add In Place, Apply Curve, Apply Masks and 59 more |
| Terrain Erosion Settings | Make Terrain Erosion Settings, Clone, Area Exponent, Base Level and 32 more |
| Scalar Field | Physical Scale, Make Scalar Field, Add, Apply and 57 more |
| Terrain Water Settings | Make Terrain Water Settings, Bed Depth Metres, Bed Slope Metres, Channel Catchment Square Kilometres and 30 more |
| Cell Based Terrain | Add To Attribute, Apply Mask, Blend Attributes, Calculate Slope and 29 more |
| Heightmap Visualization Routines | Apply Color Ramp, Apply Shaded Color Ramp, Bake Shadow Map, Bake Visibility Map and 16 more |
| Terrain Erosion Result | Debris, Debris Mask, Deposited Volume, Deposition and 27 more |
| Terrain Layering | Add Terrain Layers, Aspect Mask, Bake Layer Stack, Blur Mask and 24 more |
| Cell Based Terrain Query Engine | Color Palette With Slope, Custom Color Example, Custom Color Example2, Default Color Palette and 15 more |
| SimplyHydrologyErosionResult | Get Cascade Map, Get Color Map, Get Color Map With Trees, Get Deposition Map and 14 more |
| Landscape | Description, Population, Style, Sun Altitude and 5 more |
| Heightmap Pipeline (Procedural) | Apply Mask, Blend, Blend Masked, Build and 11 more |
| Terrain Erosion | Usage Debris, Usage Deposition, Usage Discharge, Usage Flow Direction and 10 more |
| Terrain Water Result | Bed, Depth, Flat Water Count, Height Above Drainage and 10 more |
| Heightmap Selectors | Heightmap Data Usage Token Ambient Occlusion, Heightmap Data Usage Token Aspect Degrees, Heightmap Data Usage Token Convexity, Heightmap Data Usage Token Curvature and 10 more |
| Terrain Surfaces | Terrain Analysis Maps, Badlands Terrain Palette, Bake Terrain Surface, Terrain Palette and 10 more |
| Heightmap Texture Sampler | Apply Tiled Texture, Quick Texture, Composite, Create Tiled Texture and 9 more |
| Heightmap Erosion Extensions | Apply Function To Height In Place, Create Hydraulic Erosion Configuration, Get Hydraulic Erosion Configuration, Grid Hydraulic Erode In Place and 4 more |
| Heightmap Generator | Configure Heightmap Noise Settings, From Grayscale Image, From Pixel Image, Generate Domain Warped Terrain and 4 more |
| Heightmap Amplification | Heightmap Data Usage Token Detail Amplitude, Add Fractal Detail, Add Strata, Calculate Detail Amplitude and 4 more |
| Landscapes | Assemble Landscape, Erosion Analysis Maps, Landscape Palette, Landscape Species and 4 more |
| Heightmap Filters | Distort, Distort By Noise, Expand, Flip and 3 more |
| Heightmap Erosion Operations | Apply Function To Height, Grid Hydraulic Erode, Particle Hydraulic Erode, Quick Erode and 2 more |
| Terrain Erosion Masks | Blur, Exponential Mask, Linear Mask, Logarithmic Mask and 2 more |
| Rules Based Heightmap Colorer | Make Rules Based Heightmap Colorer, Process |
| Baked Terrain Surface | Albedo, Height, Maps, Normal and 1 more |
| Terrain Population | Get Instances, Seed, Get Species, Summary and 1 more |
| Heightmap Files | Export Obj, Load Heightmap, Save As Obj Mesh, Save Heightmap and 1 more |
| Terrain Water | Fill, Height Above Nearest Drainage |
| Heightmap Splatmaps | Calculate Material Id, Normalize Weights, Pack Weights |
| Interactive Heightmap Viewers | Make Interactive Heightmap Viewers, Show Heightmap Mesh Viewer, Show Heightmap Voxel Viewer |
| Heightmap Effects | Apply Shapes Fractal Breakup, Generate Heightmap From Shapes |
| Terrain Renders | Render Landscape, Render Terrain |
| Populations | Populate Terrain, Population Species |
| Heightmap Mesher | Convert Terrain to Grid Mesh with Resample, Convert Terrain to Triangle Mesh (Optimized) |
| Cell Based Terrain Heightmap Interop | To Cell Based Terrain, To Heightmap |
| Cell-based Terrain Query Engine Factory | Initialize From Cell Based Terrain, Initialize From Heightmap |
| Terrain Rivers | Trace Rivers |
| Simple Hydrology | Apply |
| Real Terrain | Fetch Real Terrain (USGS 3DEP) |
See also
- Procedural Terrain node reference
- Procedural Terrain Generation
- Toolboxes - every other toolbox.