Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Z-Depth Render Channel is a grayscale image that renders each pixel based on its distance from the camera in the view. 

 


Overview

...

Section
Column
width60%

The Z-Depth Render Element provides information about each object's distance from the camera in the current view. Each pixel representing the object is evaluated for distance individually; different pixels for the same object can have different grayscale values. In this render element, objects (or portions of objects) closest to the camera appear as white while those furthest away appear black. Objects between the furthest and nearest points are rendered in varying shades of gray. The lighter the gray, the closer an object pixel is to the camera.

The most common usage of the Z-Depth Render Channel is as a control for depth of field in the composite. Depth of field can be challenging to do correctly within Houdini, requiring many tweaks and re-renders; using the Z-Depth Render Channel in a composite is usually much faster, and allows easier and faster adjustment than trying to get it exactly right within the render from Houdini.

Note: Specific objects can be excluded from this Render Channel by disabling the Generate Render Elements option in the VRayObjectProperties node for the selected object(s). 

UI Path: ||out Network|| > V-Ray Render Elements node > V-Ray > Render Channel V-Ray Z-Depth (RE)

Column
width5%

 


Column
width35%

Parameters

...

Section
Column
width60%

The parameters for this render channel appear in the Parameters tab under the out Network and within the render elements node.

Name – The text added to the end of the rendered file, when saved as a separate file (e.g. myrender.Z-Depth.vrimg).

Deep Output – Specifies whether to include this render element in deep images.

Use Depth From Camera – Specifies whether to use to camera clip boundaries as the minimum and maximum Z-Depth distance. Enabling this option disables the Depth Black and Depth White parameters.

Depth Clamp – Clamps the Z-Depth colors to a linear 0-1 range.

Depth Black – Objects further than this distance from the camera render as black. This option is available only when Use Depth From Camera is disabled.

Depth White – Objects up to this distance from the camera render as white. This option is available only when Use Depth From Camera is disabled.

Filtering – Applies the image filter to this channel. Image filter settings are in the AA sub-tab of the Sampler tab of the V-Ray Renderer node.

Depth Invert – Inverts the colors of the Z-Depth render element. Objects closest to the camera render as white, while those furthest away are black.

Zero Infinity Depth – When enabled, sets infinite depth value to 0.0.

 
Column
width5%


Column
width35%

...


Invert zdepth

...

The Depth Black and Depth White values in the Z-Depth Render Element can be inverted by enabling the Depth Invert option.

...

The Z-Depth Render Element is useful for adding depth of field to the final image in post production using a compositing application without the need for re-rendering. It can also be used to create basic fog by overlaying it on the composite with Add mode or Screen mode, with color correction as needed.

Section
 
Column
width30%


Column
width40%
Image slider
startIndex1
Panel
borderStylenone

Depth of field applied to composite using Z-Depth Render Element

Panel
borderStylenone

Original Beauty Composite

Panel
borderStylenone

Basic fog applied to composite using Z-Depth Render Element

Column
width30%

 

...