Please note that this documentation space offers information for V-Ray 3.6! For most up-to-date documentation, refer to V-Ray Next for Modo help.

This page provides information on the Z Depth Render Element. 

 

Page Contents

 

Overview


The Z Depth Render Element is a grayscale image that renders each pixel based on its distance from the render camera. 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, portions of objects furthest from the camera appear as white while those closer 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 Element is as a control for depth of field in compositing. Depth of field can be challenging to render correctly directly within Modo, which might require many tweaks and re-renders; using the Z Depth Render Element in a composite is usually much faster, and allows easier and quicker adjustments than trying to get it exactly right within the render from Modo.

 

 


 

UI Path: ||Render Elements panel|| > Basic rollout > Depth - Z Depth

 

Maximum Depth


The Z Depth Render Element parameter Maximum Depth can be set to various values to provide different ranges of depth in the render element. This parameter becomes available when Remap Pixel Values is checked on the Z Depth Render Element properties.

 

 

 

 


Maximum Depth
= 1 m

 


Maximum Depth
= 5 m



Remap Pixel Values off
 


 

 

Common Uses


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 the scene. It can also be used to create basic fog by overlaying the render element on to the composite using an Add or Screen mode, with color correction as needed.

 

 


Original Beauty Composite with no depth of field

 


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

 

 

 


Basic fog applied to composite
using Z-Depth Render Element

 


Colored fog applied to composite
using Z-Depth Render Element