Divooka Reference

Export

2 nodes

On this page 2

Export Height Map

Function

Writes 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: Integer
string ExportHeightMap(
    World world,
    View view,
    string path,
    int longestEdge = 4096)

Parameters

nametypedefaultdescription
worldWorld—The world.
viewView—A map view; the 3D view has no height map.
pathText—Where to write the PNG.
longestEdgeInteger4096Pixels on the longest edge, up to 32,768.

Returns

PathText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Export
Package
Fantasy Planet Painter

Export Image

Function

Writes 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: Truth
string ExportImage(
    World world,
    View view,
    string path,
    int longestEdge = 4096,
    bool worldLayers = false)

Parameters

nametypedefaultdescription
worldWorld—The world.
viewView—The view.
pathText—Where to write the PNG.
longestEdgeInteger4096Pixels on the longest edge, up to 32,768.
worldLayersTruthFalseDraw the world layers the world shows in the app.

Returns

PathText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Export
Package
Fantasy Planet Painter