C_DisparityToDepth
C_DisparityToDepth is a gizmo designed to convert disparity to a depth map. Depth maps can be useful in compositing when you're placing 3D objects in a scene. Getting the depth right can help achieve a more realistic look.
Inputs and Controls
Connection Type |
Connection Name |
Function |
Input
|
1 | The stereo sequence from which you want to calculate depth. |
Control (UI) |
Knob (Scripting) |
Default Value |
Function |
C_DisparityToDepth Tab |
|||
Use GPU if available |
useGPUIfAvailable |
enabled |
When enabled, rendering occurs on the Local GPU specified, if available, rather than the CPU. The output between the GPU and CPU is identical on NVIDIA GPUs, but using the GPU can significantly improve processing performance. CaraVR supports AMD GPUs on late 2013 Mac Pro 6,1, mid 2015 Mac Pro 11,5, and and late 2016 MacBook Pro 13,3, running OS X 10.9.3 'Mavericks', or later. While, in some cases the bit-wise equality between GPU and CPU holds, for some operations there are limitations to the accuracy possible with this configuration. Note: Enabling this option with no local GPU allows the script to run on the GPU whenever the script is opened on a machine that does have a GPU available. GPU processing also requires certain NVIDIA and AMD drivers. For more information on the minimum requirements, please refer to the Nuke Release Notes available in Help > Release Notes. |
Vectorize on CPU |
vectorize |
enabled |
When enabled, use SIMD instructions on the CPU where possible. |
Left View |
LetfView |
main |
Sets the view to use for the left eye when calculating depth. |
Right View |
RightView |
main |
Sets the view to use for the right eye when calculating depth. |
Eye Separation |
EyeSeparation |
0.05 |
Determines how far apart the two views are, from a viewer's perspective. If you set the Eye Separation, or interpupillary distance (IPD), too low, objects in the scene appear crushed horizontally, but raising it too high can leave holes in the stitch. The IPD is measured in the same units as the Rig Size control in the upstream C_CameraSolver properties, so adjust it accordingly. |
Z Inverse |
|
enabled |
When enabled, use ZInv depth encoding to reverse the way depth is represented in the image, providing smoother depth maps. The inversion treats smaller values in the image as greater depth, rather than the default where small values equal less depth. |
Min Encodable Depth |
MinEncodableDepth |
1 |
When Z Inverse is enabled, sets the minimum distance for depth encoding. When Z Inverse is disabled, this control has no effect. |
Separation Falloff |
SeparationFalloff |
0 |
Sets the point at which linear falloff begins. Increasing the value pushes the merge point toward the poles, a value of 90 disables pole merging entirely. |