FUSION · FULL ARTICLE
ZToWorldPos
ZToWorldPos converts a technical Z channel into a World Position Pass and back again through a matching Camera3D or camera-containing scene. It is a Position tool with required Image and Scene Input ports, not a generic one-input depth filter.
Overview
ZToWorldPos belongs to Fusion's Position toolset. Its job is to translate between two technical descriptions of a visible point: Z depth describes depth relative to a camera view, while a World Position Pass stores XYZ position in scene world space.
The old simplified article missed a critical topology detail: this is not a single generic Input filter. The documented node has a required Image input, a required Scene Input carrying a 3D Camera, and a standard optional Effect Mask.
Image carries different technical data depending on Mode. Z to WorldPos expects an image stream with a valid Z channel; WorldPos to Z expects a World Position Pass.
A grayscale depth-looking RGB image is not automatically a real Z channel. Before building the conversion, verify where the source depth actually lives and whether Fusion sees it as technical Z rather than ordinary color brightness.
Scene Input accepts a Camera3D or a 3D scene containing one or more cameras. A camera is needed because the relationship between image-space depth and world-space XYZ is defined by that camera's projection and view transform.
The connected camera must correspond to the render, depth, or WPP being converted. An arbitrary Camera3D can produce formally valid numbers that are spatially wrong.
If several cameras exist in the connected scene, Camera selects the intended model. It is a source selector, not a depth-strength control and not a creative scale knob for World Position.
In Z to WorldPos mode, the tool uses Z plus the camera model to reconstruct where each visible pixel belongs in world space. Conceptually this is a back-projection from camera/depth representation into scene XYZ.
Reconstructed World Position quality is limited by source Z quality. Noisy, quantized, incomplete, or temporally unstable depth becomes noisy, incomplete, or unstable world coordinates; the converter does not recreate geometry that was never measured.
The documented tracked-footage workflow is especially useful: per-pixel Z from 3D tracking, together with the solved 3D Camera, can be converted into WPP data for Position tools such as Volume Mask and Volume Fog.
WorldPos to Z performs the reverse relationship. It evaluates a World Position Pass against the selected Camera3D and produces the corresponding camera-relative Z channel.
A World Position Pass is not a beauty image. XYZ values can be negative and can extend far beyond the normal display range because they represent scene coordinates rather than display-referred color.
World Position should preserve 32-bit floating-point precision. Normalizing or clamping XYZ into 0-1 may create an easier preview but destroys the exact coordinates needed by downstream Position tools.
WPP is often visualized by thinking of XYZ as RGB components: X maps to R, Y to G, and Z to B. That visualization is diagnostic; grading the map as ordinary color changes the spatial values.
Fusion Position tools expect a World Position Pass in World Space. Eye or Camera Space and Object or Model Space are different coordinate systems even if their colorful previews appear superficially similar.
Scene Input may receive a Camera3D directly or a larger camera-containing 3D scene. When multiple cameras are present, the Camera dropdown is how the intended render camera is selected.
Effect Mask is the standard optional mask input. It can limit the tool spatially, but it does not carry Z or World Position data and it never replaces the required camera Scene Input.
Empty WPP regions need special attention. Pixels without real geometry can end up initialized as position (0,0,0), which downstream Position tools may interpret as actual geometry at the world origin.
For 3D-render workflows, the Fusion documentation recommends a bounding sphere or box when meaningful distant position values are needed in the background instead of empty world-origin values.
For tracked live-action workflows, the same principle means foreground-only depth may be insufficient when downstream processing needs a valid spatial background. Missing depth samples do not appear automatically after conversion.
Keep technical WPP separate from a display-friendly preview branch. Normalize or tone-map only a diagnostic copy while the production branch stays full-range floating-point data.
In WorldPos to Z mode, the WPP and camera must share the same world coordinate system. Matching resolution alone does not make data from a different scene or transform valid.
Pixel correspondence matters as well. Z/WPP values belong to specific samples, so unsynchronized crop, resize, warp, or pixel-aspect changes can break the relationship between image data and camera projection.
A Z to WorldPos to Z round trip is a useful diagnostic for camera mismatch, precision loss, and damaged technical data. It should not be treated as a promise of bit-exact identity after resampling or reduced precision.
When caching or exporting, choose a format and settings that preserve the required floating-point precision and technical channels. A visually acceptable RGB preview does not prove that Z or WPP survived the file round trip correctly.
Temporal QC matters whenever Z or the camera is animated. Camera-solve jitter, depth flicker, and holes become drifting world positions and unstable downstream spatial effects.
A reliable production order is: confirm Image plus matching Camera3D, choose Mode, inspect the raw technical result in full-range/float form, then connect Position/depth-aware downstream processing, and only afterward create a display-friendly preview.
When to use it
- Build a World Position Pass from Z depth and a matching Camera3D
- Convert a World Position Pass back into Z for depth-aware processing
- Turn tracked live-action Z plus camera solve into Position-tool data
- Recover WPP when the originating 3D package did not render a World Position pass
- Diagnose camera/depth/WPP correspondence
- Prepare spatial masks and volumetric effects based on world coordinates
- Run a Z to WorldPos to Z consistency check
- Limit a technical conversion locally with Effect Mask for controlled QC
Article screenshots
Inputs & outputs
ZToWorldPos: image with Z/WPP + matching Camera3D → World Position or Z
ZToWorldPos has three real external inputs. The orange Image input is required and carries a Z channel or World Position Pass; the pink Scene Input is also required and supplies the matching Camera3D/camera-containing scene; the blue Effect Mask optionally limits the conversion spatially. Output remains a normal image stream carrying recalculated technical spatial data.
Uses the selected camera model to convert camera-relative Z into world-space XYZ or perform the reverse WorldPos-to-Z conversion.
Inputs
- Image
Required technical image stream
Receives: A 2D image carrying a real Z channel in Z to WorldPos mode or a World Position Pass in WorldPos to Z mode.
Inside the node: ZToWorldPos reads spatial data from the image and recalculates them through the connected camera model. A grayscale depth preview or normalized WPP is not a safe substitute for source technical data.
Typical sources: Loader · Renderer3D · EXR / image with Z or World Position
Do not confuse depth-looking grayscale RGB with a Z channel. Preserve World Space and 32-bit float precision for WPP without production clamping/normalization.
- Scene Input
Required camera model
Receives: A Camera3D or camera-containing 3D scene corresponding to the source render/Z/WPP.
Inside the node: The camera view/projection transform defines the relationship between camera-relative Z and world-space XYZ; Camera selects one model when several cameras are present.
Typical sources: Camera3D · Merge3D
A random or wrong shot camera produces spatially incorrect conversion even though the scene3d cable itself is valid.
- Effect Mask
Optional spatial limitation
Receives: Rectangle, Ellipse, Polygon, B-Spline, Bitmap, or another Fusion mask.
Inside the node: The standard Effect Mask limits where ZToWorldPos applies the conversion. It does not carry Z/WPP data and does not replace the camera input.
Typical sources: Rectangle · Ellipse · Polygon · B-Spline · Bitmap
Establish a correct full-frame baseline before masking so the mask cannot hide a fundamental data/camera mismatch.
Outputs and destination
Output
A 2D image stream carrying the selected result: World Position data reconstructed from Z plus camera, or Z evaluated from WPP relative to the camera. This is technical spatial data rather than display-ready beauty.
Next step: VolumeMask · VolumeFog · DepthBlur / Z-aware processing · Saver / float technical cache · Viewer diagnostic
Do not normalize the production WPP merely to make the Viewer look pleasant. Build a separate diagnostic branch and preserve the technical output in float/full-range form.
- Output
- 2D image stream carrying the selected conversion result: World Position reconstructed from Z or Z evaluated from WPP relative to the selected camera.
Processing order
- Image carries a Z channel for Z-to-WorldPos or a World Position Pass for WorldPos-to-Z.
- Scene Input supplies a Camera3D or camera-containing scene that matches the technical pass.
- Camera selects the intended model when multiple cameras exist in the scene.
- Mode chooses the coordinate-conversion direction.
- An optional Effect Mask limits where the tool acts but does not replace source data or camera information.
- Output remains an image stream carrying World Position or Z technical data for Position/depth-aware downstream work.
Z + Camera3D → World Position
EXR / Renderer3D.Image + Z → ZToWorldPos.Image · matching Camera3D → Scene Input → World Position → VolumeMask / VolumeFog
Image and camera arrive as different data types. ZToWorldPos combines them to reconstruct each pixel's world-space position.
ZToWorldPos is a two-domain converter with two required sources: Image carries Z/WPP while Scene Input carries the matching camera. Effect Mask only limits coverage; Output remains a technical image stream.
Parameters
ZToWorldPos · Inspector reference
Read ZToWorldPos in four layers: source data → matching camera → conversion direction → precision/QC. The Inspector is short—only Mode and Camera—but the data contract is richer: Image and Scene Input are required, WPP needs World Space/32-bit float, and Effect Mask remains a separate optional spatial control.
- 1
- Image: Z or World Position
- 2
- Scene Input: matching Camera3D
- 3
- Mode + Camera
- 4
- World Position / Z technical output
- 5
- Float/full-range QC → downstream
Controls · Mode · Conversion direction
Mode switches between Z-to-World Position and World Position-to-Z. This is not a display mode; the incoming technical data must match the selected direction.
- Controls / Mode: Z to WorldPos / WorldPos to Z
Controls · Mode > Controls / Mode: Z to WorldPos / WorldPos to ZChooses the direction of the technical-data conversion. Z to WorldPos combines source Z with the matching camera to reconstruct world-space XYZ. WorldPos to Z evaluates WPP through the selected camera to produce camera-relative Z.
Check / distinguish: State what data actually exists in Image before changing anything else. A wrong Mode changes the meaning of the output, not merely its appearance.
- Z to WorldPos
Controls > Mode > Z to WorldPosThis mode uses the Z channel plus the matching camera to back-project each pixel into world-space XYZ.
Check / distinguish: Verify the Z channel before the node and compare several known spatial points after conversion.
- WorldPos to Z
Controls > Mode > WorldPos to ZThe reverse mode evaluates the World Position Pass relative to the selected camera and produces corresponding camera-relative Z.
Check / distinguish: Check near/mid/far ordering and the matching camera rather than display brightness.
- Mode is data semantics
Controls > ModeMode does not merely change preview appearance; it defines what technical data Image must carry and what Output means.
Check / distinguish: Label the source branch as Z or WPP and verify Mode matches its contents.
Controls · Camera · Matching camera model
Camera selects a model from the required Scene Input. That camera's projection/view transform participates in the conversion.
- Controls / Camera
Controls · Camera > Controls / CameraSelects the camera from the connected Scene Input when more than one is available. The selected camera provides the projection/view model used by the conversion and must correspond to the source render, Z, or WPP.
Check / distinguish: If the result drifts spatially, verify camera identity and coordinate space before trying to compensate downstream.
- Scene Input is required
Flow > Scene InputZToWorldPos requires a 3D scene input containing a Camera3D; without a camera model the Z↔world-position relationship is undefined.
Check / distinguish: Verify the physical scene3d cable separately from the orange Image cable.
- Camera can be direct or inside a scene
Flow > Scene InputScene Input can receive a Camera3D directly or a scene branch containing one or more cameras.
Check / distinguish: For a multi-camera scene, verify the dropdown exposes and selects the intended camera.
- Camera must match the pass
Camera correspondenceThe camera must be the one corresponding to the source Z/WPP/render. Another formally valid Camera3D produces spatially wrong data.
Check / distinguish: Temporarily substitute a camera; the expected visible change confirms the camera model participates in conversion.
- Camera selector is not strength
Controls > CameraThe dropdown selects a camera model; it is not depth strength, WPP scale, or a creative-look control.
Check / distinguish: Fix mismatches at the source/camera level rather than grading after the node.
Data contract · Z/WPP, World Space, and float
Most failures live outside the Inspector, in source data: Z channel, World Position Pass, precision, and coordinate space.
- Real Z channel, not grayscale
Image input > Z workflowA black-and-white depth-looking image does not guarantee the presence of the technical Z channel expected by a Z-to-WorldPos workflow.
Check / distinguish: Inspect channel/AUX inventory before ZToWorldPos.
- WPP is spatial data
Image input > World PositionWorld Position stores pixel XYZ positions in scene space and should not be judged like beauty RGB.
Check / distinguish: Check known world points/axes and downstream spatial behavior rather than aesthetic color.
- World Space is required
World Position Pass > coordinate spaceFusion Position tools expect World Space. Eye/Camera Space and Object/Model Space are different coordinate systems even if the preview looks similar.
Check / distinguish: Confirm the render-pass coordinate space before conversion.
- 32-bit float precision
World Position Pass > precisionWorld coordinates can be negative and span a large range, so WPP should preserve 32-bit floating-point precision.
Check / distinguish: Verify the file/render format and absence of integer clamping.
- Normalization is diagnostic only
WPP preview branchNormalization to 0-1 helps viewing but changes the coordinates. Keep the production WPP branch raw/float.
Check / distinguish: Build a separate normalized preview branch and compare source metadata.
- Z quality limits reconstructed WPP
Z → WorldPosIf Z is noisy, incomplete, or flickering, world positions inherit those errors. The converter does not reconstruct missing geometry.
Check / distinguish: Inspect raw Z and playback before tuning downstream Position effects.
- Tracked-footage workflow
Tracked Z + Camera3DPer-pixel Z from 3D tracking plus a camera solve can be converted into WPP for Position tools on live-action footage.
Check / distinguish: Check camera-solve and Z temporal consistency on a stationary scene point.
- Pixel correspondence matters
Technical pass alignmentZ/WPP belongs to specific pixels. An unsynchronized resize/warp between the pass and image breaks camera-data correspondence.
Check / distinguish: Verify resolution, crop, pixel aspect, and upstream spatial transforms.
Effect Mask · Optional spatial limitation
Effect Mask limits conversion coverage but never replaces required Image and Scene Input.
- Effect Mask is optional
Flow > Effect MaskThe blue Effect Mask is a standard optional input. It limits spatial coverage and is not a source of Z/WPP data.
Check / distinguish: A/B the mask only after a known-good full-frame conversion.
- Mask never replaces the camera
Effect Mask vs Scene InputMask and camera have different data types/roles. Scene Input remains required even for a localized conversion.
Check / distinguish: Verify three independent cables: image, scene3d, optional mask.
QC · Technical-result QC
WPP/Z must be checked as spatial data: full-range/float, camera correspondence, background coverage, and playback.
- Empty pixels and world origin
WPP backgroundEmpty pixels can contain false position (0,0,0) and be interpreted as geometry at the world origin.
Check / distinguish: Inspect the background separately from foreground geometry.
- Bounding geometry for background positions
3D render sourceFor WPP-based Position effects, the manual recommends bounding sphere/box geometry when meaningful distant positions are needed instead of an empty (0,0,0) background.
Check / distinguish: Compare downstream VolumeFog/VolumeMask before and after adding bounding geometry to the source render.
- Output remains image data
Flow > OutputThe result remains a 2D image stream carrying technical spatial data; it is not raw scene3d output.
Check / distinguish: Connect Output to image/Position/depth-aware tools, not to 3D scene sockets as geometry.
- Round trip is a diagnostic
Z → WPP → ZA round trip helps reveal camera mismatch and precision loss, but resampling/source precision do not guarantee bit-exact identity.
Check / distinguish: Compare structure/error rather than demanding identical values.
- Cache/export can destroy spatial data
Saver / file round-tripAn RGB preview may survive export visually while float WPP/Z data is clamped or lost.
Check / distinguish: After reloading the cache, re-check channel inventory and numeric range.
- Playback is part of Position QC
Viewer > playbackAnimated camera solves, depth flicker, and holes become drifting/flickering world positions and spatial effects.
Check / distinguish: Inspect stationary geometry over playback rather than only one still.
Before adjusting the node
- The captured Controls panel shows exactly two authored controls: Mode = Z to WorldPos / WorldPos to Z and Camera = Default. Settings is a standard tab and should not inflate the node-specific control inventory.
- The Flow contract matters more than the small Inspector: Image and Scene Input are officially required, while Effect Mask is a separate optional third input.
- Z-to-WorldPos requires a real Z channel; WorldPos-to-Z requires a World Position Pass in World Space with sufficient floating-point precision.
- The camera must match the source render/depth/WPP. With multiple cameras, the selector chooses one model; it is not a strength control.
- Inspect WPP through full-range/float diagnostics. A normalized RGB preview is fine on a separate branch but must not become production spatial data.
- False background World Position (0,0,0), camera/depth jitter, and precision loss often become more obvious downstream, so final QC includes background coverage and playback.
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
Build World Position from Z and a matching Camera3D
Lock down the correct data contract: an image carrying Z plus a separate scene3d camera produces World Position technical output.
Starting conditions
DaVinci Resolve 21.x target · Free/Studio where the node is available · Target-build live verification pending
1920 × 1080 · 24 fps · 120 frames · Fusion page; image streams carrying Z or World Position technical data plus a matching scene3d camera
- Image carrying Z or World Position data
- Matching Camera3D / camera-containing scene
- 32-bit float preservation for World Position workflows
Source material
- SRC
A render with genuine auxiliary Z and the same Camera3D used to create it. The inverse path needs float32 World Position in a known coordinate system; ordinary colored RGB is not equivalent.
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
SRC— EXR / IMAGE + Z · LoaderCAM— MATCHING CAMERA · Camera3DZTW— Z → WORLD POSITION · ZToWorldPos
| Source | Destination | Data |
|---|---|---|
EXR / IMAGE + Z (SRC)Output | Z → WORLD POSITION (ZTW)Image | image |
MATCHING CAMERA (CAM)Scene | Z → WORLD POSITION (ZTW)SceneInput | scene3d |
Graph output: Z → WORLD POSITION (ZTW)
Parameter values
- Z → WORLD POSITION (ZTW) / Controls / Mode
"Z to WorldPos"Use the source Z channel and camera projection to reconstruct world-space position.
- Z → WORLD POSITION (ZTW) / Controls / Camera
"Default"Use the connected matching camera; select a named camera only when the incoming scene contains several.
Reproduce the example
- Feed an EXR/image carrying a real Z channel into Image rather than a grayscale depth preview.
ZToWorldPos reconstructs coordinates from technical depth; RGB brightness by itself is not Z.
Check: Channel/AUX inspection confirms Z before the node and the cable is an image connection.
- Connect the matching Camera3D to Scene Input and leave Camera = Default when it is the only camera.
The camera projection/transform defines the mapping from camera-relative depth to world-space XYZ.
Check: The camera cable is scene3d; a deliberately wrong test camera should visibly corrupt the spatial result.
- Set Mode = Z to WorldPos and inspect the technical output with float/full-range viewing.
World Position contains signed/large XYZ values and is not expected to look like display-referred RGB.
Check: The production branch is not clamped/normalized and spatial structure agrees with the geometry/camera.
Expected result
- Z → WORLD POSITION (ZTW) · frame 72
Output carries World Position data reconstructed from source Z relative to the matching camera and remains suitable for Position-aware downstream processing with float precision preserved.
Alpha: Alpha remains part of the image stream and does not substitute for Z/WPP; inspect it separately when source transparency matters.
When the result differs
- World Position drifts or has the wrong scale/orientation.
Cause: Camera3D does not match the source Z/render, or the depth source was damaged/resampled.
Correction: Verify camera identity, Z channel, world-space convention, and pixel correspondence before any normalization.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion Flow/mask basics used by the RectangleMask Effect Mask exercise.
- Blackmagic Design — Fusion current manual
Loader/image-stream and auxiliary-channel context used by the practice graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Fusion 3D
Camera3D and scene3d camera-stream behavior used by the Scene Input examples.
- Blackmagic Design — Fusion 9 Tool Reference: Z to World [ZtW]
Position Tools > Z to World: required Image and SceneInput, optional EffectMask, Mode and Camera controls, Z-to-WPP and WPP-to-Z conversion.
- Blackmagic Design — Fusion 9 Manual: World Position Pass
World Position Pass concept, 32-bit float precision, World Space requirement, matching camera Scene Input, and the empty-pixel (0,0,0) background caveat.
Convert World Position back to Z relative to the camera
Verify the reverse mode on a 32-bit World Space WPP without substituting a normalized preview map.
Starting conditions
DaVinci Resolve 21.x target · Free/Studio where the node is available · Target-build live verification pending
1920 × 1080 · 24 fps · 120 frames · Fusion page; image streams carrying Z or World Position technical data plus a matching scene3d camera
- Image carrying Z or World Position data
- Matching Camera3D / camera-containing scene
- 32-bit float preservation for World Position workflows
Source material
- WPP
A render with genuine auxiliary Z and the same Camera3D used to create it. The inverse path needs float32 World Position in a known coordinate system; ordinary colored RGB is not equivalent.
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
WPP— 32F WORLD POSITION · LoaderCAM— MATCHING CAMERA · Camera3DZTW— WORLD POSITION → Z · ZToWorldPos
| Source | Destination | Data |
|---|---|---|
32F WORLD POSITION (WPP)Output | WORLD POSITION → Z (ZTW)Image | image |
MATCHING CAMERA (CAM)Scene | WORLD POSITION → Z (ZTW)SceneInput | scene3d |
Graph output: WORLD POSITION → Z (ZTW)
Parameter values
- WORLD POSITION → Z (ZTW) / Controls / Mode
"WorldPos to Z"Project world-space position back into camera-relative Z.
- WORLD POSITION → Z (ZTW) / Controls / Camera
"Default"Evaluate the WPP against the matching connected camera.
Reproduce the example
- Feed the production WPP in 32-bit float; do not use a normalized preview copy.
World coordinates can be negative and far outside 0-1, so clamping destroys the geometry.
Check: Source metadata/processing path confirms float precision and World Space semantics.
- Connect the Camera3D that corresponds to the WPP render/view.
Z is evaluated relative to the camera view; a different camera produces different depth for the same XYZ.
Check: Scene Input is connected and Camera selects the expected camera model.
- Select WorldPos to Z and inspect near/mid/far ordering in a technical Z view.
Depth structure matters more than preview appearance because these are technical data.
Check: Near/mid/far surfaces agree with the camera and do not collapse around the world origin/background.
Expected result
- WORLD POSITION → Z (ZTW) · frame 72
ZToWorldPos produces Z consistent with the source world-space positions and selected Camera3D without clamping the WPP first.
Alpha: Alpha is checked separately from World Position/Z and is not used as a depth-data substitute.
When the result differs
- Depth looks flat or jumps around zero.
Cause: The WPP was normalized/clamped, uses the wrong coordinate space, or its background contains false (0,0,0) positions.
Correction: Restore the raw 32F World Space WPP and verify background coverage plus the matching camera.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion Flow/mask basics used by the RectangleMask Effect Mask exercise.
- Blackmagic Design — Fusion current manual
Loader/image-stream and auxiliary-channel context used by the practice graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Fusion 3D
Camera3D and scene3d camera-stream behavior used by the Scene Input examples.
- Blackmagic Design — Fusion 9 Tool Reference: Z to World [ZtW]
Position Tools > Z to World: required Image and SceneInput, optional EffectMask, Mode and Camera controls, Z-to-WPP and WPP-to-Z conversion.
- Blackmagic Design — Fusion 9 Manual: World Position Pass
World Position Pass concept, 32-bit float precision, World Space requirement, matching camera Scene Input, and the empty-pixel (0,0,0) background caveat.
Validate the optional Effect Mask without replacing the data contract
Show that the mask is a third spatial-control cable while Image and Scene Input remain the required technical-data and camera sources.
Starting conditions
DaVinci Resolve 21.x target · Free/Studio where the node is available · Target-build live verification pending
1920 × 1080 · 24 fps · 120 frames · Fusion page; image streams carrying Z or World Position technical data plus a matching scene3d camera
- Image carrying Z or World Position data
- Matching Camera3D / camera-containing scene
- 32-bit float preservation for World Position workflows
Source material
- SRC
A render with genuine auxiliary Z and the same Camera3D used to create it. The inverse path needs float32 World Position in a known coordinate system; ordinary colored RGB is not equivalent.
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
SRC— IMAGE + Z · LoaderCAM— MATCHING CAMERA · Camera3DMASK— TEST MASK · RectangleMaskZTW— MASKED Z → WPP · ZToWorldPos
| Source | Destination | Data |
|---|---|---|
IMAGE + Z (SRC)Output | MASKED Z → WPP (ZTW)Image | image |
MATCHING CAMERA (CAM)Scene | MASKED Z → WPP (ZTW)SceneInput | scene3d |
TEST MASK (MASK)Mask | MASKED Z → WPP (ZTW)EffectMask | mask |
Graph output: MASKED Z → WPP (ZTW)
Parameter values
- MASKED Z → WPP (ZTW) / Controls / Mode
"Z to WorldPos"Use the same known-good conversion as the unmasked baseline.
- MASKED Z → WPP (ZTW) / Controls / Camera
"Default"Keep the matching camera constant while testing only the mask behavior.
Reproduce the example
- First build Image + Scene Input and confirm a correct unmasked Z-to-WorldPos conversion.
The mask should not hide a fundamental camera/Z mismatch.
Check: The raw full-frame conversion already passes QC before Rectangle is connected.
- Connect Rectangle.Mask to ZToWorldPos Effect Mask.
Effect Mask is a separate optional mask port; it limits the tool and does not carry Z/camera data.
Check: The connection type is mask while Image and SceneInput remain independently connected.
- A/B the mask on/off and inspect the conversion boundary in a technical view.
The mask is useful for local processing/QC but must not change the camera model or become source depth.
Check: Behavior changes spatially with mask coverage while the data/camera contract remains unchanged.
Expected result
- MASKED Z → WPP (ZTW) · frame 72
Effect Mask limits ZToWorldPos like a standard Fusion mask while required Image and Scene Input remain independent and continue to define the source data/camera.
Alpha: Do not treat source-image alpha as an implicit Effect Mask replacement without explicitly verifying the intended behavior.
When the result differs
- After the mask test it is unclear whether the problem is in the data or mask boundary.
Cause: The mask was connected before establishing a known-good full-frame baseline.
Correction: Disconnect c3, validate the raw conversion, then restore the mask and change only its coverage.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion Flow/mask basics used by the RectangleMask Effect Mask exercise.
- Blackmagic Design — Fusion current manual
Loader/image-stream and auxiliary-channel context used by the practice graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Fusion 3D
Camera3D and scene3d camera-stream behavior used by the Scene Input examples.
- Blackmagic Design — Fusion 9 Tool Reference: Z to World [ZtW]
Position Tools > Z to World: required Image and SceneInput, optional EffectMask, Mode and Camera controls, Z-to-WPP and WPP-to-Z conversion.
- Blackmagic Design — Fusion 9 Manual: World Position Pass
World Position Pass concept, 32-bit float precision, World Space requirement, matching camera Scene Input, and the empty-pixel (0,0,0) background caveat.
Other outlines from the article
Renderer3D Z to World Position
A rendered Z channel and the same Camera3D reconstruct WPP for downstream Position processing.
- Renderer3D / EXR + Z
- ZToWorldPos + Camera3D
- World Position
- VolumeMask / VolumeFog
Tracked footage to WPP
Per-pixel Z and a tracked camera convert live-action footage into spatial data for Position tools.
- Footage + tracked Z
- Tracked Camera3D
- ZToWorldPos
- World-space processing
World Position back to Z
A 32-bit World Position Pass is evaluated through the matching camera to recover depth.
- World Position Pass
- ZToWorldPos + Camera3D
- Z channel
- Depth-aware processing
Scene with multiple cameras
Camera selects the intended model inside a camera-containing scene so the conversion matches the requested render view.
- WPP / Z
- 3D scene with cameras
- ZToWorldPos (shot camera)
- Technical output
Masked technical test
Effect Mask limits conversion to a test region without replacing source Z/WPP or camera data.
- Image + technical data
- ZToWorldPos
- Effect Mask
- Masked conversion QC
Round-trip diagnostic
Converting in both directions can expose camera mismatch, precision loss, and damaged technical data.
- Z
- ZToWorldPos: Z to WPP
- ZToWorldPos: WPP to Z
- Compare
Mistakes
- Treating ZToWorldPos as a generic Image-to-Output filter and omitting required Scene Input
- Feeding grayscale depth-looking RGB instead of a real Z channel
- Connecting an arbitrary Camera3D that does not correspond to the source render/depth
- Treating Camera as a depth-strength control rather than a camera-model selector
- Confusing World Space WPP with Eye/Camera Space or Object/Model Space position data
- Storing WPP in low-precision integer form or clamping coordinates into 0-1
- Using a normalized WPP preview as production spatial data
- Judging WPP by whether its RGB visualization looks attractive
- Trying to fix a wrong camera or coordinate space with color grading after ZToWorldPos
- Ignoring empty background pixels that falsely contain world position (0,0,0)
- Expecting the converter to recreate missing depth samples or hidden geometry
- Using Effect Mask as if it supplied Z/WPP or camera information
- Resizing or warping the technical pass separately and ignoring pixel correspondence
- Exporting through a format that loses floating-point precision or technical channels
- Checking one still frame and missing camera/depth jitter during playback
- Assuming a round trip must be bit-exact after resampling or precision changes
Tips
- Label technical branches explicitly: Z, raw WPP 32F, and normalized WPP preview are different data products.
- Keep the matching Camera3D near the source technical pass and route it as a separate scene3d branch.
- Use 32-bit float and full-range diagnostics for WPP; negative and large XYZ values are normal.
- Create a separate normalized branch when a human-readable WPP preview is needed.
- Verify World Space explicitly because similar-looking position maps can use different coordinate systems.
- With multiple cameras, name them by shot/view and re-check Camera after scene changes.
- For Z to WPP, fix holes and temporal instability in Z before downstream Position effects amplify them.
- Use bounding geometry in CG source renders when empty background positions collapse to the world origin.
- VolumeMask or VolumeFog can be practical downstream checks because camera/position mismatches become obvious quickly.
- Compare known world points near the origin and farther away to reveal scale or coordinate-space errors.
- Connect Effect Mask only after establishing a correct full-frame baseline.
- Use round trips as diagnostics, not as a requirement for absolute numeric identity.
- Reload technical caches and inspect precision/channel metadata instead of trusting thumbnails or beauty RGB.
- With animated cameras, track a stationary scene point through time to reveal camera-solve or depth inconsistency.
- Keep coordinate conversion and creative grading on separate branches whenever possible.
- If downstream expects Z, preserve the technical representation instead of converting it into a prettier RGB map unnecessarily.
Workflow order
- Decide whether the task is Z to World Position or World Position to Z.
- Verify that Image really contains the required technical channel/pass rather than only a similar-looking RGB image.
- For Z to WorldPos, confirm a valid Z channel and inspect temporal stability.
- For WorldPos to Z, confirm the source WPP is World Space data and not a normalized production substitute.
- Preserve 32-bit float precision for World Position; keep any normalized display copy on a separate branch.
- Add ZToWorldPos and connect the source image to the required Image input.
- Connect the matching Camera3D or camera-containing scene to the required Scene Input.
- If the scene contains multiple cameras, choose the correct one with Camera.
- Set Mode to match the actual source data contract.
- Leave Effect Mask disconnected for the first baseline and validate a full-frame raw conversion.
- Inspect the technical result in a float/full-range diagnostic view rather than judging a normal 0-1 beauty display.
- Check foreground, midground, background, and regions near the world origin.
- If background WPP collapses to false (0,0,0), fix source position coverage or bounding geometry rather than Camera settings.
- If coordinates disagree with the scene, verify camera identity, World Space, resolution, crop, and upstream transforms.
- Only after the raw result is correct, connect Effect Mask if localized processing is required.
- Before VolumeMask, VolumeFog, or depth effects, make sure downstream reads the technical branch rather than a normalized preview copy.
- For QC, build a Z to WorldPos to Z or WorldPos to Z to WorldPos round trip and compare structure without demanding bit-exact equality.
- Review playback when depth or camera data is animated.
- After cache/export, reload the file and re-check precision and technical channel availability.
