Skip to content
07-848 2005

V-Ray for SketchUp, Render Elements

Z Depth

Learn how to use the Z Depth rollout in Render Elements in V-Ray for SketchUp.

On this page
  1. Overview
  2. UI paths
  3. Parameters
  4. Example: Invert Z Depth
  5. Common uses
  6. Footnotes

Use the Z Depth Render Element in V-Ray for SketchUp to control depth of field and add fog when compositing.

Overview

The Z Depth Render Element records each object's distance from the camera in the current view. It measures the distance for each pixel separately, so pixels on the same object can have different greyscale values. The closest objects or parts of objects appear white, and the furthest appear black. Pixels between these points appear in shades of grey. Lighter pixels are closer to the camera.

You most often use the Z Depth Render Element to control depth of field when compositing.

Z Depth render of a living room, with nearer objects in lighter grey and distant objects black.
Living room render with foreground furniture and background plants in focus.

UI paths

||V-Ray Asset Editor|| > Render Elements (right-click) > Z Depth
||V-Ray Asset Editor|| > Create Asset (left-click) > Render Elements > Z Depth

Parameters

Depth From Camera controls whether Z Depth uses the Camera Clipping boundaries. Enable it to use these boundaries and invert the black and white values. Disable it to set the distances manually with the Near and Far Distance options.

Near Distance sets the distance from the camera up to which objects render as white. This option is available only when Depth From Camera is disabled.

Far Distance 1 sets the distance from the camera beyond which objects render as black 2. This option is available only when Depth From Camera is disabled.

Z Depth Parameters panel with Depth From Camera unticked, Near Distance set to 0 and Far Distance set to 500.

Example: Invert Z Depth

Enable Depth From Camera to invert the black and white values in the Z Depth Render Element. If Depth From Camera is disabled, swap the Near and Far values to invert the result.

Z Depth render of a living room, with nearer objects in lighter grey and distant objects black.
Inverted Z Depth render with nearer objects in darker grey and distant objects white.

Common uses

Depth of field composite with the armchair in focus and the background and foreground pouffe blurred.

Depth of field applied to a composite using the Z Depth Render Element

Living room render with foreground furniture and background plants in focus.

Original Beauty Composite

Living room beauty composite with warm sunlight, a timber armchair and a brown leather pouffe.

Basic fog applied to a composite using the Z Depth Render Element

Footnotes

  1. The distance is calculated in inches, the default SketchUp unit.
  2. To restore the Input Number Slider's default value, right-click the slider and select Reset from the context menu.
Adapted from Chaos documentation: Z Depth. © 2026 Chaos Software EOOD

Procadsys customer support

Still need help?

Licences, renewals and billing

Our New Zealand team looks after your V-Ray licences, renewals and invoices.

Monday to Friday, 9:00 am to 4:30 pm NZ time, excluding New Zealand public holidays.

Technical problems

Installation errors, crashes and other technical problems with V-Ray are handled by Chaos support.