Terrain node

hf_export

Export the heightfield for Unreal Engine Landscape import: a 16-bit greyscale PNG (and .r16 raw) where black = lowest and white = highest point, plus 8-bit PNG masks for landscape layers. Pixel column = X, row = Z (image top = -Z). Returns the input unchanged, adding detail attributes: unreal_scale_xy / unreal_scale_z (Landscape Scale in the import dialog), unreal_location_z (cm, actor Z so heights match world), unreal_resolution, heightmap_files, height_min, height_max. Unreal formula used: Z scale = height range (cm) / 512.

Inputs

Parameters 5

filestring
Default ""

Output heightmap path ending in .png (16-bit greyscale). A .r16 raw file (little-endian uint16) is written next to it. Empty = do not write, only compute the Unreal import settings (detail attributes).

unreal_sizemenu
Default autoOptions keep auto 127 253 505 1009 2017 4033 8129

Resample to an Unreal-recommended landscape resolution (auto = nearest recommended size). 'keep' writes the native resolution.

write_r16toggle
Default on

Also write <name>.r16 raw heightmap.

masksstring
Default *

Comma-separated mask layers to export as 8-bit PNG weightmaps (<name>_<layer>.png). '*' = all non-height layers, empty = none.

unit_scalefloat
Default 1Range 0.000001 to …

World units per metre in Tessera (1 = metres).

Use it

Add it from the node menu (right-click empty graph space or Tab, then type hf_export), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"hf_export","name":"my_hf_export","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.