Terrain Shaping
13 nodes
On this page 13
Apply Recipe
FunctionThe world with a terrain recipe's continents painted into a new layer: Fantasy Planet Painter's recipe language, the one its Terrain recipe dialog runs, of hills, ranges, troughs, straits and smoothing steps.
ApplyRecipe -> World
world: World
recipe: Text
seed: Text
density: Integer
addDetail: TruthWorld ApplyRecipe(
World world,
string recipe,
string seed = "fantasy",
int density = 10000,
bool addDetail = true)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| recipe | Text | — | The recipe's steps, one to a line, such as Recipe Template gives. |
| seed | Text | fantasy | Which variation: the same seed always draws the same terrain. |
| density | Integer | 10000 | How many points the recipe is drawn on, 100 to 100,000: more for finer coasts. |
| addDetail | Truth | True | Whether the planet adds its procedural detail to the recipe's heights; off, they are drawn as they are. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Flip
FunctionThe world with one layer flipped east to west or north to south.
Flip(world: World, eastWest: Truth, layer: Integer) -> World
World Flip(World world, bool eastWest = true, int layer = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| eastWest | Truth | True | Flip across the central meridian; off, across the equator. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Invert
FunctionThe world with painted cells' heights mirrored about the sea: mountains become trenches and seas become land.
Invert -> World
world: World
selection: Height Selection
layer: IntegerWorld Invert(
World world,
HeightSelection selection = HeightSelection.All,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| selection | Height Selection | All | Which cells: land, water or both. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Normalize
FunctionThe world with painted cells' heights stretched to run from the sea to one summit.
Normalize -> World
world: World
summit: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld Normalize(
World world,
double summit = 5000,
HeightSelection selection = HeightSelection.Land,
bool keepCoast = true,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| summit | Number | 5000 | The highest cell's height above the sea, in metres. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| keepCoast | Truth | True | Keep land above the sea and water below it. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Power Curve
FunctionThe world with painted cells' heights bent by a power curve: above 1 the lowlands flatten and the peaks stand out, below 1 the reverse.
PowerCurve -> World
world: World
exponent: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld PowerCurve(
World world,
double exponent = 1.5,
HeightSelection selection = HeightSelection.Land,
bool keepCoast = true,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| exponent | Number | 1.5 | The curve's power. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| keepCoast | Truth | True | Keep land above the sea and water below it. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Raise
FunctionThe world with painted cells raised or lowered by some metres.
Raise -> World
world: World
metres: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld Raise(
World world,
double metres = 500,
HeightSelection selection = HeightSelection.Land,
bool keepCoast = true,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| metres | Number | 500 | How far to raise, negative to lower. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| keepCoast | Truth | True | Keep land above the sea and water below it. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Recipe Template
FunctionOne of Fantasy Planet Painter's recipe templates, to apply as it is or to edit.
RecipeTemplate(name: Text) -> Text
string RecipeTemplate(string name = "Volcano")
Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | Volcano | The template's name, as Recipe Templates lists it. |
Returns
| Recipe | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Recipe Templates
FunctionThe names of the recipe templates Fantasy Planet Painter comes with.
RecipeTemplates() -> Text Array
string[] RecipeTemplates()
Returns
| Names | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Scale Heights
FunctionThe world with painted cells' heights above or below the sea multiplied: 2 doubles mountains and deepens seas.
ScaleHeights -> World
world: World
factor: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld ScaleHeights(
World world,
double factor = 1.5,
HeightSelection selection = HeightSelection.Land,
bool keepCoast = true,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| factor | Number | 1.5 | What heights are multiplied by. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| keepCoast | Truth | True | Keep land above the sea and water below it. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Set Height
FunctionThe world with painted cells set to one height above the sea.
SetHeight -> World
world: World
height: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld SetHeight(
World world,
double height,
HeightSelection selection = HeightSelection.Land,
bool keepCoast = true,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| height | Number | — | Metres above the sea, negative below it. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| keepCoast | Truth | True | Keep land above the sea and water below it, so the coast does not move. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Shift
FunctionThe world with one layer moved across the grid, wrapping round the globe.
Shift -> World
world: World
east: Integer
north: Integer
layer: IntegerWorld Shift(World world, int east, int north = 0, int layer = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| east | Integer | — | Cells to move east, negative for west. |
| north | Integer | 0 | Cells to move north, negative for south. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Smooth
FunctionThe world with painted cells smoothed toward their neighbours.
Smooth -> World
world: World
amount: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld Smooth(
World world,
double amount = 0.5,
HeightSelection selection = HeightSelection.All,
bool keepCoast = true,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| amount | Number | 0.5 | How far toward the neighbours' mean, 0 to 1. |
| selection | Height Selection | All | Which cells: land, water or both. |
| keepCoast | Truth | True | Keep land above the sea and water below it. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter
Terrace
FunctionThe world with painted cells' heights stepped into terraces.
Terrace -> World
world: World
step: Number
selection: Height Selection
keepCoast: Truth
layer: IntegerWorld Terrace(
World world,
double step = 400,
HeightSelection selection = HeightSelection.Land,
bool keepCoast = false,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| step | Number | 400 | Each terrace's height, in metres, at least 1. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| keepCoast | Truth | False | Keep land above the sea and water below it. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Shaping
- Package
- Fantasy Planet Painter