Skip to content

Nodes · 3D

Heightfield3D

3Dv1app

Overview

Terrain from a height map (EXR, TIFF or PNG): a mesh as wide and deep as size_x and size_z, each pixel's value standing at offset + height x value metres. The image's top row is the far edge. Closed (the default) adds walls and a floor so the terrain is a solid that a Kiln collider can fill; name the node in a Collider's mesh field and the gas flows over it.

How to

How-to

  1. Set file to a height map: an EXR, a TIFF or a PNG. The first channel is the height.
  2. Set size_x and size_z to the terrain's footprint in metres, and height to the metres a value of 1 stands at.
  3. Raise or lower the whole terrain with offset, or place it with the transform knobs.
  4. Keep resolution at 256 unless the terrain needs finer detail close to camera.
  5. To make gas flow over it, name this node in a Kiln Collider's mesh field. Leave closed on so the collider is a solid.

Orientation

The image's top row is the far edge (toward -Z) and its left column the left edge (-X), as if the map lay on the ground under a camera looking forward.

Outputs

OutputType
outScene

Parameters

ParameterTypeDefaultWhat it does
txFloat0.0Translate X — position along the world X axis, metres.
tyFloat0.0Translate Y — position along the world Y axis (up), metres.
tzFloat0.0Translate Z — position along the world Z axis, metres. The camera looks down −Z.
rxFloat0.0Rotate around X, degrees.
ryFloat0.0Rotate around Y (turntable), degrees.
rzFloat0.0Rotate around Z (roll), degrees.
sxFloat1.0Scale along X. 1 = unchanged.
syFloat1.0Scale along Y.
szFloat1.0Scale along Z.
fileTextThe height map. Its first channel is the height; 8 and 16-bit images read 0 to 1, float EXRs as they are.
size_xFloat10.0Width of the terrain in metres, left to right.
size_zFloat10.0Depth of the terrain in metres, far edge to near edge.
heightFloat1.0Metres for a height-map value of 1.
offsetFloat0.0Metres added to every height: moves the whole terrain up or down.
resolutionInt256Most vertices along a side. The map is sampled smoothly onto this grid; a 4K map at full resolution would be 33 million triangles.
closedBooltrueWalls and a floor under the surface, so the terrain is a solid. Kiln fills a collider from the inside, and an open sheet has no inside.
baseFloat0.5How far the floor sits under the lowest point, in metres.
displayChoiceinheritNot documented yet. inheritshadedwireframeshaded_wirepointsbboxhidden
disabledBoolfalseBypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back.
labelTextA note shown under the node in the graph — what this node is FOR. Never affects the render or the cache.