Houdini 21.0 Nodes Copernicus nodes

Z Composite Copernicus node

Composites two layers by depth.

On this page

This node does a depth-based composite of two images. The node places the pixel with the lowest depth over the pixel with the greater depth, which become the foreground and background respectively.

Note

An ID layer can’t be mixed so the node outputs an ID value of the lowest depth.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Convert Depth

How to interpret the input layers. Depth and Distance layers have zero to mean infinity and increase as they go away from the camera. Height layers have no special values and increase as they go towards the camera.

This is an internal conversion, the resulting combined depth is in the same type as the input.

FG Offset

Bias the foreground depth towards the camera this amount. This can be used to ensure that when the foreground and background are at the same depth, the foreground will win and avoid z-fighting.

The output depth is unaffected by this bias.

Inputs

bg

The layer used for the output size and resolution. If this layer has the lower depth, it’s instead placed over the fg layer and becomes the foreground.

bgdepth

The per-pixel depth of the background layer.

fg

The nominal foreground layer. If this layer has the greater depth, it’s instead placed behind the bg layer and becomes the background.

fgdepth

The per-pixel depth of the foreground layer.

Outputs

result

The composited layer. The closest pixel is composited in front of the farther pixel.

depth

The layer with the combined depth.

See also

Copernicus nodes