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
- Set
fileto a height map: an EXR, a TIFF or a PNG. The first channel is the height. - Set
size_xandsize_zto the terrain's footprint in metres, andheightto the metres a value of 1 stands at. - Raise or lower the whole terrain with
offset, or place it with the transform knobs. - Keep
resolutionat 256 unless the terrain needs finer detail close to camera. - To make gas flow over it, name this node in a Kiln Collider's mesh field. Leave
closedon 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
| Output | Type |
|---|---|
| out | Scene |
Parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
| tx | Float | 0.0 | Translate X — position along the world X axis, metres. |
| ty | Float | 0.0 | Translate Y — position along the world Y axis (up), metres. |
| tz | Float | 0.0 | Translate Z — position along the world Z axis, metres. The camera looks down −Z. |
| rx | Float | 0.0 | Rotate around X, degrees. |
| ry | Float | 0.0 | Rotate around Y (turntable), degrees. |
| rz | Float | 0.0 | Rotate around Z (roll), degrees. |
| sx | Float | 1.0 | Scale along X. 1 = unchanged. |
| sy | Float | 1.0 | Scale along Y. |
| sz | Float | 1.0 | Scale along Z. |
| file | Text | The height map. Its first channel is the height; 8 and 16-bit images read 0 to 1, float EXRs as they are. | |
| size_x | Float | 10.0 | Width of the terrain in metres, left to right. |
| size_z | Float | 10.0 | Depth of the terrain in metres, far edge to near edge. |
| height | Float | 1.0 | Metres for a height-map value of 1. |
| offset | Float | 0.0 | Metres added to every height: moves the whole terrain up or down. |
| resolution | Int | 256 | Most vertices along a side. The map is sampled smoothly onto this grid; a 4K map at full resolution would be 33 million triangles. |
| closed | Bool | true | Walls 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. |
| base | Float | 0.5 | How far the floor sits under the lowest point, in metres. |
| display | Choice | inherit | Not documented yet. inheritshadedwireframeshaded_wirepointsbboxhidden |
| disabled | Bool | false | Bypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back. |
| label | Text | A note shown under the node in the graph — what this node is FOR. Never affects the render or the cache. |
