FUSION · FULL ARTICLE
ZToDisparity
ZToDisparity is a Studio stereo converter: it reads Z AUX from left/right image streams, uses stereo-camera geometry or Artistic mapping, and adds X/Y Disparity AUX while preserving the eye images.
Overview
ZToDisparity performs the conceptual inverse of DisparityToZ: it starts from existing Z AUX and calculates stereo disparity, the X/Y image-space offset describing correspondence between left and right views.
Technical Z AUX must be distinguished from an ordinary grayscale depth-looking image. The tool expects an image stream carrying a Z channel; a pretty black-and-white image by itself is not equivalent to Z AUX.
ZToDisparity remains an image processor. It does not accept a raw Merge3D scene in place of an image with Z; render the scene through Renderer3D with Z enabled or load an EXR/source that already carries Z.
In None/unstacked topology the node exposes physical Left Input and Right Input paths. They carry separate eye images from one stereo pair and each output can receive corresponding Disparity AUX.
In Horiz, Vert, and Layers modes both eyes are already packed inside one representation. The primary Left Input carries the full packed stream, a separate Right Input is unnecessary, and the packed result continues through the primary Left Output.
Stack Mode is primarily a topology and routing control. It does not set stereo strength or repair bad Z; a wrong mode makes the tool interpret the structure of the input incorrectly.
Swap Eyes changes left/right interpretation. It corrects actual eye order; it is not a generic Z inversion, a disparity inversion switch, or a depth-strength control.
External Camera Mode bases the conversion on stereo camera geometry. For physically meaningful disparity, the camera must correspond to the scene or footage rather than being an arbitrary Camera3D.
Stereo Camera is conditional: it is required by External mapping. Artistic mode can map Z into controllable disparity without an accurate camera rig, but the result should not be treated as physically measured stereo geometry.
The Stereo Camera source can be a Camera3D with valid stereo geometry or a camera-containing 3D scene stream. Camera selects the intended camera model when multiple cameras are present.
In External mode, disparity scale depends on camera projection and stereo separation. The same Z field can therefore produce a different image-space offset under different valid camera geometry.
Artistic mode is useful when visual depth is needed without reliable camera calibration. It creates a creative mapping between Z and disparity rather than reconstructing capture geometry.
Convergence Point in Artistic mode defines the Z plane of zero disparity. Objects on opposite sides of that plane move in front of or behind the screen plane according to the eye convention.
Background Disparity defines the far-background or infinity disparity used by the Artistic mapping. The corresponding opposite-eye offset uses the matching opposite direction in a consistent stereo pair.
Output Disparity To RG does not enable disparity calculation. Technical Disparity AUX is created independently; the checkbox only copies disparity components into ordinary color channels for viewing or RGB processing.
The diagnostic color copy represents disparity as {x, y, 0, 1}: horizontal disparity is written to R, vertical disparity to G, B is zero, and alpha is one.
The RG representation uses float32 because disparity can be negative and extend well outside the normal 0-1 display range. A clipped normal Viewer can therefore look strange without the underlying data being wrong.
For production stereo pipelines it is often better to keep Output Disparity To RG disabled so the eye RGB remains untouched while downstream stereo-aware tools read hidden Disparity AUX directly.
Refine Disparity runs after the base Z-to-disparity conversion. It uses RGB structure to make disparity edges follow visible object boundaries more closely.
Refinement cannot repair fundamental input errors such as missing Z, a mismatched stereo camera, reversed eyes, or a wrong Stack Mode. Fix those causes before enabling Refine Disparity.
Enable activates the refine stage, while HiQ Only can restrict the refinement to High Quality processing. Compare interactive preview with the actual High Quality state during QC.
Strength controls the amount of RGB-guided correction. Excessive values can imprint texture, grain, skin detail, or lighting edges into disparity as false geometry.
Radius sets the spatial scale of refinement. A radius that is too large can smear narrow depth transitions and create halos around silhouettes.
A CG or EXR pipeline is a natural ZToDisparity use case: a render already carries accurate Z, and disparity can be derived using the same stereo Camera3D that defines the scene.
ZToDisparity does not synthesize newly exposed surfaces behind occlusions. Disparity describes motion of known pixels but cannot know what should appear when a new eye view reveals hidden content.
A downstream warp or new-eye synthesis can therefore require occlusion repair, inpainting, or an additional CG render, especially with large foreground disparities.
A Z-to-Disparity-to-Z round trip is useful for diagnostics but is not guaranteed to be lossless. Precision, camera assumptions, mapping, clipping, and refinement can introduce differences.
Far surfaces deserve particular care because very small disparity changes at large Z can correspond to large depth differences, making round-trip error appear amplified.
Alpha remains part of the eye image and is not automatically repurposed as disparity. AUX data and the RG preview are separate representations; do not use alpha as a substitute for Z or a second eye.
When caching or exporting, verify that the chosen format actually preserves Disparity AUX. An RGB render can look correct while the technical channel has silently disappeared.
Final validation should include playback, not only a still frame: noisy Z, motion blur, reflections, and occlusion boundaries can become temporal disparity instability that is particularly visible in stereo.
When to use it
- Convert CG or EXR Z AUX into Disparity AUX for a stereo pipeline
- Generate camera-consistent disparity from Renderer3D Z and the matching stereo Camera3D
- Create artistic stereo mapping from depth when accurate camera calibration is unavailable
- Inspect generated disparity through the RG diagnostic representation
- Run Z to Disparity to Z consistency diagnostics
- Prepare disparity for stereo-aware processing or view synthesis
- Work with separate, Horiz, Vert, and Layers stereo representations
Article screenshots
Inputs & outputs
ZToDisparity: stereo image + Z AUX + optional Stereo Camera → the same eye image(s) + new Disparity AUX
ZToDisparity has dynamic stereo topology. In None/unstacked state it uses physical Left/Right image paths; with Horiz/Vert/Layers the packed pair travels through one primary Left cable. External Camera Mode adds a separate magenta Stereo Camera input. The output stays an image stream while disparity lives in the auxiliary channel.
Reads existing Z AUX, translates camera-space depth into image-space stereo offset through External camera geometry or Artistic mapping, and attaches new X/Y Disparity AUX to the eye image(s) without automatically replacing RGB with a technical map.
Inputs
- Left Input
Primary stereo path / left eye or full packed pair
Receives: A left-eye image carrying Z AUX in None/unstacked topology or a single Horiz/Vert/Layers packed stereo stream that also contains Z data.
Inside the node: This stream is the primary carrier for conversion. In separate state its disparity is calculated alongside the Right path; in packed state both views already live inside one representation.
Typical sources: Loader · Renderer3D · EXR / Loader with Z
A visible grayscale depth map is not a substitute for technical Z AUX. A raw 3D scene is not an image input either; render it to an image stream with Z first.
- Right Input
Right-eye path in None / unstacked topology
Receives: The right-eye image carrying corresponding Z AUX from the same stereo pair.
Inside the node: Used when the eyes travel as separate streams. In Horiz/Vert/Layers packed topology the right view is already inside the Left path, so the separate cable is hidden/unnecessary.
Typical sources: Loader · Renderer3D · EXR / Loader with Z
Right Input is not a second creative layer. Do not duplicate the same packed stack into it.
- Stereo Camera
Stereo geometry for External Camera Mode
Receives: A stereo Camera3D or camera-containing 3D scene whose geometry corresponds to the source Z and eye pair.
Inside the node: External mode uses camera projection and stereo separation/right-camera relationships for Z-to-disparity conversion. Artistic mode does not require this cable.
Typical sources: Camera3D · Merge3D
An arbitrary Camera3D does not make disparity physically correct. The camera model must correspond to the actual render/shot.
Outputs and destination
Left / Right Outputs
The eye image(s) keep RGBA and gain new X/Y Disparity AUX. None/unstacked topology exposes Left and Right outputs; packed modes continue through the primary Left Output. Output Disparity To RG only makes an additional X/Y copy in color channels.
Next step: StereoAlign · DisparityToZ · Saver / EXR with AUX · Viewer diagnostic · another stereo-aware node
Do not treat Output Disparity To RG as a required separate disparity output. Production stereo workflows usually need the AUX channel itself; disable the diagnostic copy when RGB must remain the eye image.
- Left Output
- The left eye or full packed stream with new Disparity AUX; Output Disparity To RG can additionally expose the data in color channels.
- Right Output
- The right eye with new Disparity AUX in None/unstacked topology; packed modes normally do not use a separate right output.
Processing order
- The upstream image must already carry valid Z AUX, for example from Renderer3D/EXR or another depth-aware source.
- Stack Mode defines separate/packed routing: None uses Left/Right paths while Horiz/Vert/Layers use the primary Left path.
- External mode receives a stereo Camera3D through the dedicated Stereo Camera input; Artistic mode can work without a camera cable.
- The converter combines Z with camera/artistic mapping to calculate horizontal/vertical disparity.
- Left/Right eye RGB is preserved and new Disparity data is written into AUX channels.
- Output Disparity To RG can copy X/Y into float32 R/G as a diagnostic representation.
- Refine Disparity runs after conversion and can align disparity edges with RGB edges, at the risk of texture leakage.
- Downstream stereo-aware nodes can read Disparity AUX directly; a visible RG map is only needed when the workflow explicitly requires one.
Separate stereo with External Camera3D
Left EXR + Z → ZToDisparity.Left Input · Right EXR + Z → Right Input · Camera3D → Stereo Camera → Left/Right image(s) + Disparity AUX
The two eye streams remain normal images, the camera stream defines the conversion model, and X/Y disparity is attached as auxiliary data.
ZToDisparity is not a grayscale filter. It is a stereo AUX converter: image paths are preserved, Z AUX is read, camera/artistic mapping creates Disparity AUX, and the RG preview remains optional.
Parameters
ZToDisparity · Inspector reference
Read ZToDisparity in four layers: stereo topology → camera mapping → raw Disparity AUX → optional refinement. The key fact is that the node does not replace eye RGB with a technical map; it reads hidden Z AUX and adds hidden X/Y Disparity AUX, while Output Disparity To RG is only a diagnostic copy.
- Input
- Eye image(s) + Z AUX
- Topology
- None / Horiz / Vert / Layers
- Mapping
- External Camera3D / Artistic anchors
- Disparity
- New hidden X/Y AUX
- Refine
- Optional RGB-guided cleanup
- Output
- Eye image(s) + Disparity AUX · optional RG copy
Controls · Output · Disparity AUX and RG preview
Output Disparity To RG copies already-calculated X/Y into float32 R/G. Disparity AUX exists independently of the checkbox.
- Controls / Output Disparity To RG
Controls · Output > Controls / Output Disparity To RGCopies calculated X/Y disparity into R/G color channels for diagnostics without disabling Disparity AUX. The preview is {x, y, 0, 1} and uses float32 because technical values can be negative or exceed 0-1.
Check / distinguish: Use RG as a temporary diagnostic or processing representation. For production stereo work, preserve eye RGB and pass Disparity AUX whenever possible.
- Studio stereo converter
Tool roleZToDisparity belongs to the stereo conversion workflow: it converts Z AUX into Disparity AUX while preserving the eye image streams.
Check / distinguish: Inspect downstream AUX inventory, not only Viewer RGB.
- Z AUX is required
Input contractThe node expects a technical Z channel inside the image stream. Depth-looking grayscale RGB is not equivalent to Z AUX.
Check / distinguish: Compare channel metadata/aux view before and after connection.
- Image stream, not raw scene3d
Flow > Left/Right InputLeft/Right accept image streams. Merge3D/Shape3D must first become an image through Renderer3D with the required Z output.
Check / distinguish: Trace Scene3D → Renderer3D → ZToDisparity, not Scene3D → ZToDisparity.
- Output Disparity To RG is a copy
Controls > Output Disparity To RGThe checkbox does not enable the disparity solve itself: X/Y AUX is created independently and RG only provides a visible copy for diagnostics/ordinary RGB tools.
Check / distinguish: A/B the checkbox and confirm an AUX-aware downstream tool still sees disparity.
- RG layout is X/Y/0/1
Controls > Output Disparity To RGThe diagnostic representation copies horizontal disparity into R, vertical disparity into G, with B=0 and A=1.
Check / distinguish: Inspect R/G separately on a test frame with known direction.
- RG preview is float32
Controls > Output Disparity To RGDisparity can be negative and exceed display range, so the diagnostic color representation requires float precision.
Check / distinguish: Do not judge validity from a clipped 0–1 Viewer without full-range viewing/normalization.
- Disparity AUX survives without RG preview
Output contractA production branch can preserve original eye RGB while still carrying Disparity AUX. A visible RG map is not required.
Check / distinguish: Disable the preview before stereo-aware downstream processing and verify disparity remains available.
- No occlusion synthesis
Downstream view synthesisDisparity describes offsets of existing pixels but does not create hidden-surface content revealed by warp/new-eye synthesis.
Check / distinguish: Plan occlusion repair/inpainting or a separate render.
- Round trip is not identity
Z → Disparity → ZA round trip is useful for QC, but precision, mapping assumptions, refinement, and far-depth conditioning can produce differences.
Check / distinguish: Compare error quantitatively/visually rather than demanding bit-exact equality.
- Preserve AUX channels intentionally
EXR / cache workflowAn RGB-only cache/export can lose Disparity AUX while the visible image still looks correct.
Check / distinguish: Inspect channel inventory after a file round trip.
- Playback is part of disparity QC
Viewer > playbackTemporal noise in source Z, motion blur, reflections, and occlusion edges become temporal disparity instability.
Check / distinguish: Inspect the stereo branch in motion, not only on a still frame.
Controls · Refine Disparity · Edge-aware refinement
Enable turns on refinement guided by RGB structure; conditional HiQ Only/Strength/Radius belong to post-conversion cleanup, not the base Z-to-disparity geometry.
- Controls / Refine Disparity / Enable
Controls · Refine Disparity > Controls / Refine Disparity / EnableEnables RGB-guided refinement of the already-calculated disparity. Conditional HiQ Only, Strength, and Radius control execution, intensity, and spatial scale of the post-conversion refine stage.
Check / distinguish: Validate the raw result with Enable off first; then use the smallest Strength/Radius that fixes a real edge problem without texture leakage.
- Refine follows conversion
Controls > Refine DisparityRefinement is post-conversion cleanup guided by RGB structure. It does not repair missing Z, a wrong camera, eye order, or Stack Mode.
Check / distinguish: Compare the raw result with Enable off first.
- HiQ Only is conditional
Controls > Refine Disparity > HiQ OnlyHiQ Only belongs to the conditional refine state and can restrict refinement to High Quality processing.
Check / distinguish: With HiQ Only, repeat QC in an actual High Quality state.
- Strength controls RGB guidance
Controls > Refine Disparity > StrengthStrength controls how strongly disparity is corrected from RGB structure; excessive values can transfer texture into the technical field.
Check / distinguish: Change Strength separately from Radius and inspect both a silhouette and a textured surface.
- Texture leakage
Refine failure modeSkin/fabric/grain/highlight detail should not become false disparity variation merely because RGB edge contrast is high.
Check / distinguish: A/B raw and refined disparity on fine texture.
- Radius sets spatial scale
Controls > Refine Disparity > RadiusRadius sets the refinement neighborhood. A large radius can smear narrow Z transitions and create halos.
Check / distinguish: Increase Radius only when the problematic edge truly needs a wider neighborhood.
Controls · Stereo · Topology and eye order
Stack Mode defines separate/packed representation while Swap Eyes changes view order. These are routing controls, not disparity-strength controls.
- Controls / Stack Mode: None / Horiz / Vert / Layers
Controls · Stereo > Controls / Stack Mode: None / Horiz / Vert / LayersSelects separate or packed stereo topology. None uses physical Left/Right paths. Horiz, Vert, and Layers contain both eyes in one representation carried through the primary Left path.
Check / distinguish: Do not feed the same packed stack into both Left and Right Input; that duplicates data already present inside the packed stream.
- Controls / Swap Eyes
Controls · Stereo > Controls / Swap EyesChanges left/right interpretation of the stereo pair. Use it only when the eyes are actually reversed. It is an ordering correction, not a Z inversion or disparity-strength control.
Check / distinguish: Confirm source eye order and Stack Mode before changing camera mapping.
- None means separate eyes
Controls > Stack Mode > NoneNone corresponds to unstacked/separate-eye topology: Left and Right travel on separate physical image paths.
Check / distinguish: Do not interpret None as stereo disabled.
- Packed means one primary cable
Controls > Stack Mode > Horiz / Vert / LayersIn packed modes both eyes live inside one image representation and travel through the Left path.
Check / distinguish: Do not duplicate the same stack into Right Input.
- Right output is conditional
Flow > Right OutputNone topology exposes a separate Right Output. In packed representation a second physical output is normally unnecessary because both eyes remain inside one stream.
Check / distinguish: Inspect Flow topology after switching Stack Mode.
- Swap Eyes is ordering only
Controls > Swap EyesSwap Eyes changes left/right interpretation. It is not a generic Z invert or disparity-strength control.
Check / distinguish: Confirm source eye order before enabling it.
Camera · Camera model and depth mapping
External uses a stereo Camera3D for camera-consistent disparity; Artistic builds creative mapping through Convergence Point and Background Disparity. Camera chooses a model from the connected camera/scene stream.
- Camera / Camera Mode: External / Artistic
Camera > Camera / Camera Mode: External / ArtisticChooses camera-bound External mapping or creative Artistic mapping. External uses stereo camera geometry through Stereo Camera. Artistic works without the camera cable and exposes creative controls such as Convergence Point and Background Disparity.
Check / distinguish: Use External for CG, matchmove, or calibrated stereo. Label Artistic output as relative/creative disparity rather than measured geometry.
- Camera / Camera
Camera > Camera / CameraChooses a specific camera model from the connected camera or scene stream in External mode. Default or a named camera must correspond to the source Z and stereo setup. The selector is not a depth-strength parameter.
Check / distinguish: When a scene contains multiple cameras, match the selected camera to shot/render metadata instead of choosing by appearance.
- External reveals Stereo Camera
Camera > ExternalExternal mapping uses the separate Stereo Camera input plus camera projection/separation for Z-to-disparity conversion.
Check / distinguish: The camera cable must be scene3d and correspond to the source render.
- Stereo Camera geometry matters
Flow > Stereo CameraEye separation/right-camera relationships and projection directly affect the calculated pixel offset.
Check / distinguish: Change rig parameters only from real calibration/render metadata.
- Camera selector chooses a model
Camera > CameraWith multiple cameras, the selector chooses a specific model from the scene stream. It is not an artistic strength knob.
Check / distinguish: The camera name should match shot/render metadata.
- Artistic mode is non-physical
Camera > ArtisticArtistic mapping is useful without an accurate camera, but disparity becomes creative/relative rather than a camera-calibrated measurement.
Check / distinguish: Label the branch as artistic in production notes.
- Convergence Point is zero disparity
Camera > Artistic > Convergence PointConvergence Point defines the Z plane where horizontal disparity becomes zero; it is the stereo screen-plane reference.
Check / distinguish: Choose a meaningful plane and inspect objects closer/farther than it.
- Background Disparity sets the far anchor
Camera > Artistic > Background DisparityBackground Disparity defines the stereo offset for the distant background/infinity in artistic mapping.
Check / distinguish: Reduce the magnitude if distant stereo becomes uncomfortable.
- CG Z is a natural source
Renderer3D / EXR workflowA render carrying correct Z plus the matching stereo Camera3D lets disparity be derived from the same geometric model.
Check / distinguish: Keep the render metadata linked to the camera rig.
Before adjusting the node
- The captured Controls panel shows Output Disparity To RG, Refine Disparity, Stack Mode None/Horiz/Vert/Layers, and Swap Eyes; Camera shows External/Artistic and Camera = Default. This is a captured UI state, not a universal preset.
- Before tuning the Inspector, verify the input: Z must exist as an AUX channel inside the image stream. A grayscale depth pass and a raw scene3d stream are different data types/workflows.
- None means unstacked/separate-eye routing with Left/Right inputs/outputs. Horiz/Vert/Layers are packed representations that travel through the primary Left path on one cable.
- External mode requires a camera model that matches the Z/render/eye pair; an arbitrary Camera3D does not make disparity physically correct.
- Output Disparity To RG is for diagnostics/ordinary RGB tools. Disabling it must not remove downstream Disparity AUX.
- Enable Refine only after the raw conversion is correct; then inspect texture leakage and always check playback/High Quality state, especially with HiQ Only.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Convert separate-eye Z to disparity with a stereo Camera3D
Build the correct topology: Left/Right images carrying Z AUX plus a separate stereo Camera3D → Left/Right images carrying new Disparity AUX.
Starting conditions
DaVinci Resolve 21.x target · Studio · Target-build live verification pending
1920 × 1080 · 24 fps · 120 frames · Fusion page; stereo image streams carrying Z/Disparity AUX channels
- Input Z AUX data
- Matching stereo Camera3D for External mode where used
Source material
- L
Left-eye source. A synchronized stereo pair with identical dimensions and known Left/Right order. A packed source must actually contain both eyes. If the lesson requires Disparity or Z, genuine channels/layers must be present.
In DaVinci Resolve load a compatible EXR through Loader and verify the required layers/channels. Import PNG and ordinary video through Media Pool/MediaIn if adapting the graph.
- R
Right-eye source. A synchronized stereo pair with identical dimensions and known Left/Right order. A packed source must actually contain both eyes. If the lesson requires Disparity or Z, genuine channels/layers must be present.
In DaVinci Resolve load a compatible EXR through Loader and verify the required layers/channels. Import PNG and ordinary video through Media Pool/MediaIn if adapting the graph.
Nodes and connections
L— LEFT EXR + Z AUX · LoaderR— RIGHT EXR + Z AUX · LoaderC— STEREO CAMERA · Camera3DZ2D— Z → DISPARITY · ZToDisparity
| Source | Destination | Data |
|---|---|---|
LEFT EXR + Z AUX (L)Output | Z → DISPARITY (Z2D)LeftInput | image |
RIGHT EXR + Z AUX (R)Output | Z → DISPARITY (Z2D)RightInput | image |
STEREO CAMERA (C)Scene | Z → DISPARITY (Z2D)StereoCamera | scene3d |
Graph output: Z → DISPARITY (Z2D)
Parameter values
- Z → DISPARITY (Z2D) / Controls / Stack Mode
"None"Keep left and right eyes as separate physical image paths.
- Z → DISPARITY (Z2D) / Camera / Camera Mode
"External"Use the connected stereo camera geometry for the Z-to-disparity conversion.
- Z → DISPARITY (Z2D) / Controls / Output Disparity To RG
falsePreserve eye RGB and keep disparity in the AUX channel.
- Z → DISPARITY (Z2D) / Controls > Refine Disparity / Enable
falseVerify the raw conversion before RGB-guided refinement.
Reproduce the example
- Connect LEFT EXR to Left Input, RIGHT EXR to Right Input, and keep Stack Mode = None.
None means separate/unstacked representation: both eyes exist as separate physical streams.
Check: Left and Right are not crossed, no packed stream is duplicated, and both sources genuinely carry Z AUX.
- Connect Camera3D to Stereo Camera and select External Camera Mode.
External conversion uses stereo camera geometry to translate camera-space Z into image-space disparity.
Check: The camera cable is scene3d, and a meaningful stereo-separation change predictably changes disparity.
- Leave Output Disparity To RG and Refine disabled and inspect the raw Disparity AUX downstream.
This preserves the eye RGB and prevents Z/camera errors from being hidden by preview/refinement stages.
Check: RGB is not replaced by a diagnostic map, while AUX-aware inspection confirms X/Y disparity on both eye outputs.
Expected result
- Z → DISPARITY (Z2D) · frame 72
Separate Left/Right eye images are preserved, camera-consistent disparity appears as AUX data, and beauty RGB is not replaced by a technical preview.
Alpha: Alpha remains part of the eye images; ZToDisparity does not use alpha as a depth/disparity container.
When the result differs
- Disparity has the wrong scale or sign.
Cause: The stereo camera, eye order, or source Z do not correspond.
Correction: Verify Camera3D geometry, Left/Right order, Stack Mode, and Z AUX before refinement.
References
- Blackmagic Design — Fusion current manual
Loader image-stream role and AUX-capable Fusion image pipeline context used by the practice graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Fusion 3D
Camera3D stereo camera model and scene3d camera stream used by External Camera Mode.
- Blackmagic Design — Fusion 21 feature comparison
Current Fusion 21 feature matrix lists DisparityToZ and ZToDisparity as supported stereo tools for conversion between disparity and Z depth.
- Blackmagic Design — Fusion 9 Tool Reference: Z To Disparity [Z2D]
Stereo Nodes > Z To Disparity: Left/Right image paths, Stereo Camera input, Z-to-Disparity AUX conversion, Output Disparity To RGB, Refine Disparity, Stack/Swap and External/Artistic camera controls.
Convert packed Horiz Z to artistic disparity over one cable
Lock down packed topology and Artistic mapping without inventing a Right Input or Stereo Camera cable.
Starting conditions
DaVinci Resolve 21.x target · Studio · Target-build live verification pending
1920 × 1080 · 24 fps · 120 frames · Fusion page; stereo image streams carrying Z/Disparity AUX channels
- Input Z AUX data
- Matching stereo Camera3D for External mode where used
Source material
- STACK
A synchronized stereo pair with identical dimensions and known Left/Right order. A packed source must actually contain both eyes. If the lesson requires Disparity or Z, genuine channels/layers must be present.
In DaVinci Resolve load a compatible EXR through Loader and verify the required layers/channels. Import PNG and ordinary video through Media Pool/MediaIn if adapting the graph.
Nodes and connections
STACK— HORIZONTAL STEREO + Z AUX · LoaderZ2D— ARTISTIC DISPARITY · ZToDisparity
| Source | Destination | Data |
|---|---|---|
HORIZONTAL STEREO + Z AUX (STACK)Output | ARTISTIC DISPARITY (Z2D)LeftInput | image |
Graph output: ARTISTIC DISPARITY (Z2D)
Parameter values
- ARTISTIC DISPARITY (Z2D) / Controls / Stack Mode
"Horiz"Treat the incoming source as a side-by-side stereo representation carried on one path.
- ARTISTIC DISPARITY (Z2D) / Camera / Camera Mode
"Artistic"Use artistic Z-to-disparity mapping without an external stereo camera.
- ARTISTIC DISPARITY (Z2D) / Camera > Artistic / Convergence Point
-1.5Reference-scale editorial value only; choose the actual zero-disparity Z plane for the shot.
- ARTISTIC DISPARITY (Z2D) / Camera > Artistic / Background Disparity
64Reference-scale editorial value only; tune the far-background disparity for the intended stereo effect.
- ARTISTIC DISPARITY (Z2D) / Controls / Swap Eyes
falseKeep source eye order unchanged unless it is proven reversed.
Reproduce the example
- Feed the horizontal stereo stream through one cable into Left Input and set Stack Mode = Horiz.
Both eyes already live inside the packed representation; a second Right cable adds no data.
Check: The graph contains one image cable and no RightInput connection.
- Switch Camera Mode to Artistic and place Convergence Point at the desired zero-disparity Z plane.
Artistic mode builds a creative mapping from Z without a physical camera rig.
Check: Stereo depth reads coherently, but the branch is not mislabeled as camera-calibrated disparity.
- Tune Background Disparity for the far background and use Swap Eyes only as an order correction.
The background anchor defines distant stereo offset, while Swap Eyes does not replace correct mapping geometry.
Check: The far background has the intended disparity and foreground/background do not reverse because of an accidental eye swap.
Expected result
- ARTISTIC DISPARITY (Z2D) · frame 72
Packed stereo remains a single image stream, gains creative Disparity AUX, and requires no fictitious camera/right-eye cables.
Alpha: Packing and artistic mapping do not use alpha as the second eye or as the disparity channel.
When the result differs
- Stereo looks excessive or unnatural.
Cause: Convergence Point/Background Disparity do not match the Z range or creative intent.
Correction: Reposition the zero-disparity plane first, then reduce distant Background Disparity and re-check eye order.
References
- Blackmagic Design — Fusion current manual
Loader image-stream role and AUX-capable Fusion image pipeline context used by the practice graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Fusion 3D
Camera3D stereo camera model and scene3d camera stream used by External Camera Mode.
- Blackmagic Design — Fusion 21 feature comparison
Current Fusion 21 feature matrix lists DisparityToZ and ZToDisparity as supported stereo tools for conversion between disparity and Z depth.
- Blackmagic Design — Fusion 9 Tool Reference: Z To Disparity [Z2D]
Stereo Nodes > Z To Disparity: Left/Right image paths, Stereo Camera input, Z-to-Disparity AUX conversion, Output Disparity To RGB, Refine Disparity, Stack/Swap and External/Artistic camera controls.
QC RG preview and Refine Disparity without texture leakage
Separate technical AUX data, the diagnostic RGB copy, and optional refinement so a pretty RG preview does not substitute for correct data.
Starting conditions
DaVinci Resolve 21.x target · Studio · Target-build live verification pending
1920 × 1080 · 24 fps · 120 frames · Fusion page; stereo image streams carrying Z/Disparity AUX channels
- Input Z AUX data
- Matching stereo Camera3D for External mode where used
Source material
- EXR
A synchronized stereo pair with identical dimensions and known Left/Right order. A packed source must actually contain both eyes. If the lesson requires Disparity or Z, genuine channels/layers must be present.
In DaVinci Resolve load a compatible EXR through Loader and verify the required layers/channels. Import PNG and ordinary video through Media Pool/MediaIn if adapting the graph.
Nodes and connections
EXR— LAYERED STEREO + Z AUX · LoaderC— STEREO CAMERA · Camera3DZ2D— DISPARITY QC · ZToDisparity
| Source | Destination | Data |
|---|---|---|
LAYERED STEREO + Z AUX (EXR)Output | DISPARITY QC (Z2D)LeftInput | image |
STEREO CAMERA (C)Scene | DISPARITY QC (Z2D)StereoCamera | scene3d |
Graph output: DISPARITY QC (Z2D)
Parameter values
- DISPARITY QC (Z2D) / Controls / Stack Mode
"Layers"Treat the incoming EXR as a packed/layered stereo representation.
- DISPARITY QC (Z2D) / Camera / Camera Mode
"External"Use the matching stereo camera geometry.
- DISPARITY QC (Z2D) / Controls / Output Disparity To RG
trueTemporarily copy X/Y disparity into R/G for diagnostic viewing.
- DISPARITY QC (Z2D) / Controls > Refine Disparity / Enable
trueEnable edge-aware refinement only after the raw conversion is understood.
- DISPARITY QC (Z2D) / Controls > Refine Disparity / HiQ Only
trueRestrict the refinement stage to High Quality where the target build supports that conditional control.
- DISPARITY QC (Z2D) / Controls > Refine Disparity / Strength
0.001Documented reference-scale baseline; A/B against the shot rather than treating it as a preset.
- DISPARITY QC (Z2D) / Controls > Refine Disparity / Radius
0.01Documented reference-scale radius baseline; useful values depend on edge scale and resolution.
Reproduce the example
- Verify raw AUX first, then temporarily enable Output Disparity To RG and use float/full-range viewing.
Disparity can be negative and exceed 0–1; a clipped Viewer does not prove the data is wrong.
Check: R shows X, G shows Y, B is near zero, and technical Disparity AUX exists independently of the RGB copy.
- Enable Refine Disparity and A/B Strength/Radius on silhouettes and fine RGB texture.
RGB-guided refinement can clean an edge but, when excessive, transfers texture into disparity as false relief.
Check: The edge is more stable without fabric/noise/skin detail being imprinted into the disparity field.
- With HiQ Only, repeat QC in an actual High Quality state and during playback, then disable the RG preview for the production branch.
Interactive preview may not execute the same refine path, and temporal Z noise becomes temporal disparity noise.
Check: High Quality output and playback are stable; after disabling the preview, eye RGB returns while Disparity AUX remains.
Expected result
- DISPARITY QC (Z2D) · frame 72
Disparity AUX is correct independently of the RG preview, refinement improves the intended edges without obvious texture leakage, and the production branch preserves eye RGB.
Alpha: The diagnostic RG copy creates a technical color representation; it is not a reason to use alpha as disparity storage.
When the result differs
- After refinement, texture details appear as false offsets.
Cause: Strength/Radius coupled disparity too strongly to RGB structure.
Correction: Reduce Strength, then Radius, and compare with raw conversion; keep only the minimum refinement that genuinely fixes the edge.
References
- Blackmagic Design — Fusion current manual
Loader image-stream role and AUX-capable Fusion image pipeline context used by the practice graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Fusion 3D
Camera3D stereo camera model and scene3d camera stream used by External Camera Mode.
- Blackmagic Design — Fusion 21 feature comparison
Current Fusion 21 feature matrix lists DisparityToZ and ZToDisparity as supported stereo tools for conversion between disparity and Z depth.
- Blackmagic Design — Fusion 9 Tool Reference: Z To Disparity [Z2D]
Stereo Nodes > Z To Disparity: Left/Right image paths, Stereo Camera input, Z-to-Disparity AUX conversion, Output Disparity To RGB, Refine Disparity, Stack/Swap and External/Artistic camera controls.
Other outlines from the article
CG stereo from Z and Camera3D
Renderer3D or EXR supplies eye images with Z AUX, and the matching stereo Camera3D produces camera-consistent disparity.
- Renderer3D / EXR + Z AUX
- ZToDisparity + External Camera3D
- Image(s) + Disparity AUX
- Stereo Processing
Separate left/right topology
Two eye streams travel through Left/Right ports in Stack Mode None and remain physically separate at the outputs.
- Left EXR + Z
- Right EXR + Z
- ZToDisparity (None)
- Left/Right + Disparity AUX
Packed side-by-side
A Horiz stream contains both eyes and travels through one primary cable without a separate Right Input.
- Horizontal stereo + Z
- ZToDisparity (Horiz)
- Packed stereo + Disparity AUX
Artistic stereo without a camera
Artistic mode builds controllable relative disparity from Z when an accurate stereo camera is unavailable.
- Image + Z AUX
- ZToDisparity (Artistic)
- Creative Disparity AUX
RG diagnostic
Output Disparity To RG temporarily exposes X/Y disparity in R/G for QC and is then disabled before production processing.
- Image + Z AUX
- ZToDisparity
- RG Preview
- A/B with AUX
Round-trip QC
Generated disparity can be converted back through DisparityToZ and compared with source Z while accounting for precision and mapping assumptions.
- Z AUX
- ZToDisparity
- Disparity AUX
- DisparityToZ
- Compare Z
Mistakes
- Feeding a grayscale depth-looking image and assuming it is technical Z AUX
- Connecting Merge3D or another scene3d stream directly to the image Left Input
- Using a single generic Input/Output mental model and ignoring Left/Right stereo topology
- Feeding the same packed Horiz/Vert/Layers stream into both Left and Right Input
- Treating Stack Mode as stereo strength rather than representation and routing
- Using Swap Eyes as a generic Z inversion instead of correcting actual eye order
- Connecting an arbitrary Camera3D in External mode that does not match the render or footage
- Expecting physically accurate disparity from Artistic mode without camera calibration
- Treating Camera selection as a depth-strength control
- Assuming Output Disparity To RG is required to create Disparity AUX
- Leaving the RG diagnostic enabled where downstream processing expects original eye RGB
- Viewing float disparity through a normal 0-1 display and treating clipping as proof of a conversion error
- Enabling Refine Disparity before validating Z, topology, eye order, and camera geometry
- Raising Strength until RGB texture is imprinted into disparity
- Using a Radius so large that narrow depth transitions and silhouettes are smeared
- Expecting disparity to reconstruct surfaces hidden behind occlusions
- Assuming a Z-to-Disparity-to-Z round trip is guaranteed lossless
- Exporting an RGB-only format and assuming Disparity AUX survived
- Checking one still frame and missing temporal disparity noise
Tips
- Inspect channel inventory before the node: Z must exist as AUX rather than only as a visible pass.
- For CG, use the same stereo Camera3D that defined the render or Z field.
- Start with Stack Mode and topology because an error there invalidates later camera tuning.
- With None, keep Left to Left and Right to Right without crossing the paths.
- In packed modes, think of one cable as a container carrying both eyes rather than a single-eye source.
- Test raw disparity with Refine disabled so conversion errors remain distinct from cosmetic cleanup.
- Use Output Disparity To RG as a temporary data oscilloscope, not the default production output.
- Use float-aware full-range viewing for the RG diagnostic and do not expect a 0-1 range.
- If disparity orientation looks wrong, verify eye order before changing camera parameters.
- In External mode, change camera geometry only from real rig or render data rather than by eye.
- In Artistic mode, document Convergence Point and Background Disparity as creative anchors.
- A/B Strength separately from Radius so halos and texture leakage have a clear cause.
- With HiQ Only, compare interactive preview with the actual High Quality result.
- Inspect silhouettes, hair, transparency, reflections, and motion blur because disparity failures appear there first.
- Large foreground disparities usually need an explicit occlusion-repair strategy downstream.
- Use a DisparityToZ round trip as a consistency check, not proof of physical accuracy.
- For EXR caches, verify that X/Y Disparity channels were actually written and read back.
- Review playback because temporal consistency matters more than a perfect single RG frame.
- Keep eye RGB conceptually separate from the diagnostic RG representation to avoid shipping a technical preview as beauty.
Workflow order
- Identify the Z source: Renderer3D, EXR/Loader, or another image stream carrying real Z AUX.
- Do not connect raw Merge3D directly to Left Input; render the scene to an image with Z first.
- Use channel-aware inspection to confirm that Z AUX actually exists rather than being only grayscale RGB.
- Identify the stereo representation: separate Left/Right, Horiz, Vert, or Layers.
- For separate eyes, set Stack Mode to None and connect Left to Left Input and Right to Right Input.
- For packed material, choose the matching Horiz/Vert/Layers mode and use one primary Left Input cable.
- Keep Swap Eyes disabled until the source order is proven to be reversed.
- Choose Camera Mode External when camera-consistent disparity is required.
- Connect the matching stereo Camera3D or camera scene to Stereo Camera.
- If the scene contains multiple cameras, select the intended one with Camera.
- Leave Refine Disparity disabled at first so the raw Z-to-disparity conversion can be judged directly.
- Keep Output Disparity To RG off and verify that eye RGB is preserved while downstream tools can see Disparity AUX.
- Temporarily enable Output Disparity To RG to inspect the X/Y field with a float/full-range view.
- Check X/Y direction and eye order; use Swap Eyes only when the pair is genuinely reversed.
- When no accurate camera exists, switch to Artistic and place Convergence Point at the intended zero-disparity Z plane.
- Set Background Disparity for the desired distant or infinity stereo offset and treat the result as creative mapping.
- Enable Refine Disparity only after topology and camera mapping are already correct.
- A/B Strength at a fixed Radius on silhouettes and textured surfaces, then adjust Radius only if needed.
- With HiQ Only, repeat QC in an actual High Quality processing state rather than relying on interactive preview.
- Review playback for temporal jitter, occlusion edges, reflections, motion blur, and distant surfaces.
- Disable the diagnostic RG copy before the production branch when the original eye RGB must be preserved.
- After cache or export, verify Disparity AUX channel inventory rather than checking only the visible RGB result.
