Export
2 nodes
On this page 2
Export Height Map
FunctionWrites a 16-bit greyscale PNG of a map view's elevation, for game engines and terrain tools: black is −20,000 m and white 20,000 m on the datum, a range recorded in the file, and pixels off the planet are transparent.
Signature
ExportHeightMap -> Text
world: World
view: View
path: Text
longestEdge: Integerstring ExportHeightMap(
World world,
View view,
string path,
int longestEdge = 4096)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | A map view; the 3D view has no height map. |
| path | Text | — | Where to write the PNG. |
| longestEdge | Integer | 4096 | Pixels on the longest edge, up to 32,768. |
Returns
| Path | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Export
- Package
- Fantasy Planet Painter
Export Image
FunctionWrites a colour PNG of a world in a view: its terrain and places, and when asked the world layers it shows in the app, with their names, legend and scale bar. Past 8K, names, the legend and the scale bar grow with the image.
Signature
ExportImage -> Text
world: World
view: View
path: Text
longestEdge: Integer
worldLayers: Truthstring ExportImage(
World world,
View view,
string path,
int longestEdge = 4096,
bool worldLayers = false)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | The view. |
| path | Text | — | Where to write the PNG. |
| longestEdge | Integer | 4096 | Pixels on the longest edge, up to 32,768. |
| worldLayers | Truth | False | Draw the world layers the world shows in the app. |
Returns
| Path | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Export
- Package
- Fantasy Planet Painter