Versions Compared

Key

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

This page provides information on the Z-Depth Node in V-Ray for Blender.

 

Overview

...

Section
Parameters
Column
width100%
45%

Image RemovedThe Z-Depth render element allows you to extract information about how far a point is Render Node provides information about each object's distance from the camera . This information can be later used to add post production effects like depth of field.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 Z-Depth is as a control for depth of field in the composite.

Column
width5%

 

Column
width45%

Image Added

UI Path

...

 

||Node Editor|| > Add > Render Channels > Z-Depth

 

Node

...

Section
Column
width50%

Black Distance – In

Name - the name of the render channel

Black Distance - in a Z-depth element a black distance is the distance closest to the camera. This parameter allows you to specify how far from the camera the z-depth element starts.

White Distance - in  – In a Z-depth element a white distance is the distance farthest away from the camera. This parameter allows you to specify how far from the camera the z-depth element ends.

Depth From Camera -when enabled the  – When enabled, the Black Distance and  and White Distance are  are taken from the far and near clipping plane of the camera.

Depth Clamp -  allows  – Allows you to enable or disable the the sampling of the current render channel for antialiasing.

Filtering - enables  – Enables or disables the AA filtering for the current render channel.

Column
width5%

 

Column
width45%

 Image Added



Parameters

...

 

Section
Column
width50%

 Name – The name of the render channel.

Column
width5%

 

Column
width45%

Image Added

 

 

Black Distance and White Distance

...

The Z-Depth Render Channel parameters for minimum and maximum depth, Black Distance/Depth Black and White Distance/Depth White, can be set to various values to provide different ranges of depth in the render element. In these examples, Depth Clamp is enabled.

 

Section
Column
width20%

 

Column
width40%
Image slider
Panel
borderStylenone

Image Added

Black = 368, White = 31900

Panel
borderStylenone

Image Added

Black = 1552, White = 31900

Panel
borderStylenone

Image Added

Black = 0, White = 17740

Panel
borderStylenone

Image Added

Black = 0, White = 4090

Panel
borderStylenone

Image Added

Depth from camera turned on

Column
width20%

 



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.

 

Section
Column
width10%

 

Column
width40%

Image Added
Z-Depth Render Element

 

Column
width40%

Image Added
Original Beauty Composite

 

Column
width10%

 

 

Image Added
Depth of field applied to composite
using the Z-Depth Render Element

 

 

Notes

...

Fancy Bullets
typecircle
  • The Z-Depth Render Element will always be written as a 32-bit channel for multichannel .exr files. Even when outputting a 16-bit multichannel .exr, the Z-Depth channel will be 32-bit while the other channels will be 16-bit.