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. 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.
|
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. |