Nodes · Fathom
DepthToPicture
Fathomv1core
Overview
Writes depth as a picture you can see and key. Depth in Forged is metres with the sky at infinity, which reads as a white sheet once routed into rgba; this node maps it to 0-1 (near-far, or 1/z) into any layer. Route it into alpha for a depth matte or a fog. The depth layer underneath stays metres for every depth tool.
Inputs
| Input | What it takes |
|---|---|
| in | the image this node works on |
Outputs
| Output | Type |
|---|---|
| out | Image |
Parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
| mode | Choice | near-far | near-far: 1 at the near distance, 0 at the far one, linear in between. 1/z: one over the distance in metres (1 at one metre, 0.5 at two), near and far unused. near-far1/z |
| near | Float | 1.0 | near-far mode: the distance, in metres, that becomes 1 (white). Anything nearer is 1 too. |
| far | Float | 100.0 | near-far mode: the distance, in metres, that becomes 0 (black). Anything farther is 0 too. |
| invert | Bool | false | Far bright instead of near bright (1 minus the value, clamped to 0-1). |
| sky | Float | 0.0 | The value written where there is no surface: the sky, at infinite depth, and any pixel with no depth. |
| out_layer | Text | rgba | The layer the picture goes to: rgba (every channel), or a layer of your own, such as zmatte, which appears in the channel list downstream. The depth layer itself is never overwritten. |
| 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. | |
| hide_input | Bool | false | Draw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap). |
