Skip to content

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

InputWhat it takes
inthe image this node works on

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
modeChoicenear-farnear-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
nearFloat1.0near-far mode: the distance, in metres, that becomes 1 (white). Anything nearer is 1 too.
farFloat100.0near-far mode: the distance, in metres, that becomes 0 (black). Anything farther is 0 too.
invertBoolfalseFar bright instead of near bright (1 minus the value, clamped to 0-1).
skyFloat0.0The value written where there is no surface: the sky, at infinite depth, and any pixel with no depth.
out_layerTextrgbaThe 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.
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.
hide_inputBoolfalseDraw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap).