Landscapes
8 nodes
On this page 8
Assemble Landscape
FunctionA landscape from parts made by other nodes: a terrain, its baked surface and its water.
AssembleLandscape -> Landscape
terrain: Scalar Field
surface: Baked Terrain Surface
water: Scalar Field
waterLook: Water Look KindLandscape AssembleLandscape(
ScalarField2D terrain,
BakedTerrainSurface surface,
ScalarField2D water,
WaterLookKind waterLook = WaterLookKind.Clear)Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | Heights in metres as they are to be drawn. |
| surface | Baked Terrain Surface | — | Bake Terrain Surface's or Bake Layer Stack's result for this terrain. |
| water | Scalar Field | — | The water's surface in metres, NaN on dry ground. |
| waterLook | Water Look Kind | Clear | How the water looks. |
Returns
| Landscape | Landscape |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Erosion Analysis Maps
FunctionThe maps an erosion and a water fill leave that the natural style lays a palette by - fallen rock, sediment, wear, water and wet banks - each made a 0..1 mask as the terrain studio made them.
ErosionAnalysisMaps -> Terrain Analysis Maps
erosion: Terrain Erosion Result
water: Terrain Water ResultTerrainAnalysisMaps ErosionAnalysisMaps(
TerrainErosionResult erosion,
TerrainWaterResult water)Parameters
| name | type | default | description |
|---|---|---|---|
| erosion | Terrain Erosion Result | — | Erode Terrain's result. |
| water | Terrain Water Result | — | Terrain Water's Fill result. |
Returns
| Analysis | Terrain Analysis Maps |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Landscape Palette
FunctionA style's materials.
LandscapePalette(style: Landscape Style) -> Terrain Palette
TerrainPalette LandscapePalette(LandscapeStyle style = LandscapeStyle.Alpine)
Parameters
| name | type | default | description |
|---|---|---|---|
| style | Landscape Style | Alpine | The kind of landscape. |
Returns
| Palette | Terrain Palette |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Landscape Species
FunctionA style's species - what Make Landscape places - to change and place with Populate Landscape or Populate Terrain.
LandscapeSpecies -> Population Species Array
style: Landscape Style
terrain: Scalar FieldPopulationSpecies[] LandscapeSpecies(
LandscapeStyle style,
ScalarField2D terrain)Parameters
| name | type | default | description |
|---|---|---|---|
| style | Landscape Style | — | The kind of landscape. |
| terrain | Scalar Field | — | The terrain they are for: the treeline and snow line follow its relief. |
Returns
| Species | Population Species Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Landscape Water
FunctionWater filled as a style's climate keeps it: each hollow to the height at which it would spill, where it drains enough of the land around it to stay full - three hundred times its own area in a desert, five in the mountains - and the flat water a survey records. A terrain from noise has closed hollows everywhere, and filled without a climate every one of them is a lake.
LandscapeWater -> Terrain Water Result
terrain: Scalar Field
style: Landscape Style
riverThrough: TruthTerrainWaterResult LandscapeWater(
ScalarField2D terrain,
LandscapeStyle style = LandscapeStyle.Alpine,
bool riverThrough = false)Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | Heights in metres, with their metres per cell. |
| style | Landscape Style | Alpine | The kind of landscape, whose climate decides how much water stays. |
| riverThrough | Truth | False | Run a river in and out through the terrain's two deepest notches in its border, along the valley floor between them. |
Returns
| Water | Terrain Water Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Make Landscape
FunctionA finished landscape from a heightfield in one step: worn by erosion, filled with water, dressed in a style's materials and baked, ready for Render Landscape or the mesh viewer.
MakeLandscape -> Landscape
terrain: Scalar Field
style: Landscape Style
bakeSize: Integer
erosion: Truth
water: Truth
riverThrough: Truth
waterLook: Water Look Kind
population: TruthLandscape MakeLandscape(
ScalarField2D terrain,
LandscapeStyle style = LandscapeStyle.Alpine,
int bakeSize = 2048,
bool erosion = true,
bool water = true,
bool riverThrough = false,
WaterLookKind waterLook = WaterLookKind.Automatic,
bool population = true)Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | Heights in metres, with their metres per cell: from Fetch Real Terrain, Load Heightmap or a generator. |
| style | Landscape Style | Alpine | The kind of landscape. |
| bakeSize | Integer | 2048 | Pixels across the surface maps. |
| erosion | Truth | True | Wear the terrain by water and gravity first: its maps lay the fallen rock and the sediment. Dunes and lava are never eroded: wind made the one, and the other is too young. |
| water | Truth | True | Fill the lakes the land holds. |
| riverThrough | Truth | False | Run a river in and out through the terrain's two deepest notches in its border, along the valley floor between them, as a river crosses a map cut from a larger land. |
| waterLook | Water Look Kind | Automatic | How the water looks; Automatic takes the style's. |
| population | Truth | True | Place the style's trees, shrubs and rocks: forest below the treeline, scrub on the desert flats, rock fallen below the walls. |
Returns
| Landscape | Landscape |
Remarks
A 3 km terrain at a metre a cell takes a minute or two: most of it erosion and the bake. Turn erosion off for a terrain already eroded, and bake smaller to try things out.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Populate Landscape
FunctionThe same landscape with things placed on it: the species given, or its style's when none are - forest below the treeline, scrub on the desert flats, rock fallen below the walls. Whatever it had before is replaced.
PopulateLandscape -> Landscape
landscape: Landscape
species: Population Species Array
seed: IntegerLandscape PopulateLandscape(
Landscape landscape,
PopulationSpecies[] species,
int seed = 1337)Parameters
| name | type | default | description |
|---|---|---|---|
| landscape | Landscape | — | The landscape. |
| species | Population Species Array | — | What to place, the first placed first; the style's own when left out. |
| seed | Integer | 1337 | Where the random draws start: another seed, another wood. |
Returns
| Landscape | Landscape |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation
Set Landscape Sun
FunctionThe same landscape lit by another sun.
SetSun -> Landscape
landscape: Landscape
bearing: Number
altitude: NumberLandscape SetSun(
Landscape landscape,
double bearing = 247,
double altitude = 28)Parameters
| name | type | default | description |
|---|---|---|---|
| landscape | Landscape | — | The landscape. |
| bearing | Number | 247 | The sun's compass bearing, degrees clockwise from north. |
| altitude | Number | 28 | The sun's height above the horizon, degrees. |
Returns
| Landscape | Landscape |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Landscapes
- Package
- Procedural Generation