You are here: Reference Guide > Ocula 4.0 Nodes > O_DisparityToDepth

O_DisparityToDepth

The O_DisparityToDepth node produces a z-depth map for each view of a stereo clip based on the clip’s disparity map and stereo camera setup.

A z-depth map is an image that uses the brightness of each pixel to specify the distance between the 3D scene point and the virtual camera used to capture the scene. You may need a z-depth map, for example, if you want to introduce fog and depth-of-field effects into a shot. In Nuke, the ZDefocus node (Filter > ZDefocus) requires a depth map in its input.

O_DisparityToDepth stores the final z-depth map in the depth channel. Select depth from the channel dropdown above the Viewer to display the z-depth map. You can then select the red only channel (R) and adjust the gain and gamma sliders above the Viewer to display the depth map more clearly.