O_DisparityToDepth
The O_DisparityToDepth plug-in produces a z-depth map for each view of a stereo clip based on the clip’s disparity field 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 ZBlur node (Filter > ZBlur) requires a depth map in its input.
O_DisparityToDepth stores the final z-depth map in the depth channels, so you might not see any image data appear when you first calculate the depth map. To see the output inside Nuke, select the depth channels from the channel controls in the top left corner of the Viewer.
Inputs and Controls
Connection Type |
Connection Name |
Function |
Input |
Camera |
A pretracked Nuke stereo camera that describes the camera setup used to shoot the Source images. This can be a camera you have tracked with the CameraTracker node or imported to Nuke from a third-party camera tracking application. |
Disparity |
This is a stereo pair of images. Note: There should be a disparity field in the disparity channels. |
Control (UI) |
Knob (Scripting) |
Default Value |
Function |
O_DisparityToDepth Tab |
|||
Views to Use |
viewPair |
Dependent on Source |
Sets the two views you want to use to generate the z-depth map. These views will be mapped for the left and right eye. |