FUSION · FULL ARTICLE
dMerge
dMerge [dMg] combines real Deep Image samples from one Background and multiple dynamic Foreground inputs. Its output remains Deep; depth-aware occlusion is evaluated after DeepToImage.
Overview
A Deep Image is not simply flat RGBA with one Z-buffer/AUX channel. A true Deep EXR may store multiple color, alpha and depth samples per pixel. dMerge operates on that multi-sample structure.
Blackmagic identifies the Deep Image Compositing Toolset as Studio Version Only. Check the Resolve edition and version as well as the presence of actual Deep source data.
There is one orange Background input for the base deep stream. The Foreground input is white and dynamic: adding another Deep connection creates an additional incoming Foreground socket, similarly to Merge3D.
dMerge works with Deep image inputs. For spatial selection, use a documented Deep workflow; an ordinary 2D Merge mask is not interchangeable with Deep samples.
Every source feeding this node must supply Deep Image data. Add an ordinary 2D MediaIn through Image to Deep instead of plugging flat RGBA directly into a deep Foreground.
Image to Deep gives a flat element a Deep representation at a specified depth. This allows 2D graphics into a deep scene, but cannot reconstruct hidden multi-sample geometry from an ordinary photo.
dMerge combines Z samples; it does not invent missing depth information or repair mismatched cameras, Z-axis conventions, near/far ranges or scene scale.
“Foreground” describes an input connection, not an instruction to “always paint on top.” Depth samples and their compositing interpretation govern the occlusion once flattened, not merely cable order.
dMerge has no creative Merge tab with Apply Mode/Size/Center and no Controls tab with a Blend slider. The captured Inspector shows Settings because the work is combining deep data, not mixing two flat RGBA layers.
The real dmerge-settings.png screenshot in the supplied project confirms Hide Incoming Connections, the Layers group, three dropdowns, Comments and three Render Scripts sections. Dynamic ports cannot be verified from this Inspector capture and are sourced separately.
Layers / Process Layers selects the named image layer(s) to be processed. The screenshot shows Default Layer, a reasonable starting state for streams without deliberate multilayer packaging.
Layers / Background Layer selects which named image layer to request from the Background input. Auto requests the current Process Layers choice and falls back to the default layer if it is missing.
Layers / Foreground Layer similarly selects the named image layer supplied by Foreground inputs. It routes image layers; it is not a depth/Z offset or a command to force an object in front of the camera.
Blackmagic describes Auto, Match and explicit layer selection for multilayer Input Layer controls. Match fails if a required layer is absent rather than falling back. Verify the exact dMerge dropdown contents on the target Resolve build.
If a Deep EXR contains several named image layers, keep two diagnoses separate: first verify which named layer the input requests, then inspect the actual Z samples belonging to that layer.
Hide Incoming Connections helps organize node graphs: with it enabled, incoming links can be assigned via Inspector fields and their lines remain hidden until the tool is selected. It is a Flow-display mechanism, not input bypass.
Comments documents source origins, camera, depth conventions and the expected flattening point. Its text does not alter the image, but it makes handoff and debugging significantly easier.
Frame Render Script, Start Render Scripts and End Render Scripts are common Fusion scripting facilities. They may run custom pipeline code but are not dMerge algorithms. Leave them unused in ordinary compositing.
The output of dMerge is still a Deep Image. Feed it to DeepToImage for a normal 2D preview. That is the explicit boundary between Z samples and flat RGBA.
DeepToImage offers Volumetric Composition for overlapping semi-transparent volume samples. This belongs to flattening, not dMerge itself; when testing fog, smoke or glass, keep track of which stage actually changes the outcome.
Do not feed dMerge.Output directly to normal 2D Merge, Blur or MediaOut and expect Deep samples to survive. Flatten through DeepToImage intentionally, then use ordinary 2D nodes.
If Deep passes differ in dimensions, pixel aspect ratio or camera solve, geometry may not line up in the same pixels. Match the source geometry first, then judge dMerge.
Separate “which surface is in front in Z” from transparency: per-sample alpha and Z ordering both matter to the final result. Reordering foreground connections is not a substitute for correct Deep alpha and sample placement.
Keep Deep passes in compatible linear color/alpha conventions. Converting or changing premultiplication on only one stream can create flattening fringes even when dMerge itself is wired correctly.
For a baseline test, use two known Deep EXRs with a clear object intersection. Compare DeepToImage after dMerge with ordinary 2D Merge of separately flattened inputs: partial overlaps should demonstrate why Deep ordering matters.
To test the dynamic Foreground design, connect a third Deep source to the same dMerge. You should still have a single dMerge instead of a chain of flat two-input Merges; the node grows its own Foreground inputs.
Evidence boundary: the screenshot verifies visible Settings labels and defaults; the documentation establishes the topology and semantics. Actual `.comp` port identifiers, dynamic add/remove UI and rendered results still require live Resolve verification.
When to use it
- Deep compositing of CG objects while retaining multiple samples per pixel.
- Combining several Deep EXRs before any premature RGBA flattening.
- Integrating fog, smoke and volumetric passes into depth-aware scenes.
- Adding a flat 2D element through Image to Deep with explicit depth.
- Combining three or more sources through dynamic Foreground inputs on one node.
- Preparing the combined Deep result for the final DeepToImage conversion.
Article screenshots
Inputs & outputs
dMerge combines per-pixel Z samples, not flat RGBA pictures
One orange Background and repeatable white Foreground sockets accept real Deep Images. The output remains Deep until DeepToImage. Settings Layers chooses named image layers, not individual per-pixel Z samples.
Combines deep-sample streams while preserving depth structure for later flattening.
Inputs
- Background
Base Deep stream
Receives: The single orange Deep Image input with Z samples.
Inside the node: Supplies the base sample stream to be merged.
Typical sources: Deep EXR Loader · Renderer3D Deep · dHoldout · earlier dMerge
A single-Z flat RGBA channel is not equivalent to a true Deep Image stream.
- Foreground (repeatable)
Additional Deep streams
Receives: One or more white Deep inputs that can grow dynamically as connections are added.
Inside the node: Samples from each extra Deep source join the depth-aware combined stream.
Typical sources: Deep EXR · Image to Deep · dTransform · dMerge
The manual does not list a blue Effect Mask here. Do not confuse this with ordinary 2D Merge.
Outputs and destination
Output
Combined Deep Image with per-pixel depth samples, not yet flattened to RGBA.
Next step: DeepToImage.Input · dHoldout · dTransform · another dMerge
Use DeepToImage before MediaOut and ordinary 2D operations.
- Output
- A Deep Image containing the combined sample streams. Flatten to ordinary 2D RGBA through DeepToImage only when depth-aware operations are finished.
Processing order
- Deep EXR/Deep Renderer3D produces a multi-sample Deep stream rather than flat RGBA+Z.
- Connect Deep Scene A into the one orange Background.
- Connect Deep Object B into the first white Foreground.
- Connect Deep Fog C with another cable: dMerge grows another white Foreground.
- For ordinary 2D RGB(A) sources, first use Image to Deep with an assigned Z.
- Settings > Process Layers selects a named output image layer, not sample depth.
- Background Layer/Foreground Layer route named input layers, normally Auto.
- If occlusion fails, inspect source Z/alpha/camera convention first.
- dMerge.Output is still Deep Image, not an ordinary picture.
- DeepToImage.Input accepts this Deep stream and generates a 2D image.
- Ordinary Merge/Glow/MediaOut are valid after DeepToImage.
- Run a live Studio 21 render/port serialization check separately; this reference is static.
Three Deep passes in one dMerge
Deep A → Background · Deep B → Foreground #1 · Deep C → Foreground #2 → dMerge.Output → DeepToImage → MediaOut
White Foreground sockets are dynamic. #1/#2 are teaching labels, not verified .comp port IDs.
One orange Background + multiple white Foregrounds → Deep Output. Named Inspector Layers are not Z samples. Flatten at the end.
Parameters
dMerge · Deep Inspector without an invented Blend
dMerge exposes common Deep Image and named-layer settings. The important decisions are stream types and the DeepToImage boundary rather than creative sliders. Use the real Settings capture and keep layer routing distinct from sample depth.
- Sources
- True Deep EXR/render sources
- Background
- One orange Deep input
- Foreground +
- Multiple white Deep inputs
- Layer routing
- Process/Background/Foreground Layer
- dMerge
- Combined Z samples
- DeepToImage
- Depth-aware flattening
- 2D output
- RGBA for normal MediaOut
Flow UI · Hide Incoming Connections
Line hiding affects Flow display, not Deep processing.
- Settings / Hide Incoming Connections
Flow UI > Settings / Hide Incoming ConnectionsConnection-line management through Inspector input fields; visual Flow organization only. Enable it, assign an input through the Inspector field; the line reappears when the node is selected. Data and compositing are unchanged.
Check / distinguish: Select dMerge and inspect the inputs when a connection seems missing.
- Hide ≠ disconnect
Settings > Hide Incoming ConnectionsA hidden incoming line remains a live connection.
Check / distinguish: Select the node to diagnose a hidden cable.
- Inputs in Inspector
Settings > Hide Incoming ConnectionsHiding links involves assigning incoming sources through Inspector fields.
Check / distinguish: Switch it off if visible Flow lines are needed.
Named image layers · Process · Background · Foreground
These three menus route named layers; they do not reposition objects in Z.
- Layers / Process Layers
Named image layers > Layers / Process LayersSelects which named image layers are processed. Default Layer is shown in the capture. It is neither a Z interval nor a list of per-pixel Deep samples; it selects named image layers.
Check / distinguish: Start with Default Layer until the multilayer EXR layout is confirmed.
- Layers / Background Layer
Named image layers > Layers / Background LayerMaps the named image layer requested from Background. Auto requests the Process Layers choice and falls back to the default layer when it is absent. It does not change Background Z or subject alpha.
Check / distinguish: When the background disappears, verify the selected named layer before changing depth.
- Layers / Foreground Layer
Named image layers > Layers / Foreground LayerMaps named layers for dynamic Foreground connections. Auto follows Process Layers with its normal fallback. Choosing another named layer does not move the CG object in depth; source Deep/Z or dTransform is responsible.
Check / distinguish: Keep Auto unless deliberate multilayer routing is required.
- Default Layer evidence
Settings > Layers > Process LayersThe screenshot shows Default Layer; it is a baseline, not a Z preset.
Check / distinguish: Begin with Default Layer and inspect named layers separately.
- Auto selection evidence
Settings > Layers > Background/Foreground LayerThe screenshot shows Auto for both input-layer selectors.
Check / distinguish: Use Auto for ordinary single-layer sources.
- Auto fallback
Multilayer Input Layer > AutoAuto requests Process Layers and falls back to the default layer if absent.
Check / distinguish: Compare a present and absent named layer.
- Match is strict
Multilayer Input Layer > MatchMatch does not fall back when a named layer is absent according to the multilayer guide.
Check / distinguish: Verify the actual menu in the target build.
- Explicit layer routing
Multilayer Input LayerExplicit named-layer selection is not a depth distance control.
Check / distinguish: Match the layer to actual EXR contents.
- No depth-offset sliders
Inspector boundaryBackground Layer/Foreground Layer do not apply a Z offset.
Check / distinguish: Use source Z or dTransform for depth placement.
Documentation · Comments
Notes for maintaining complicated composites.
- Settings / Comments
Documentation > Settings / CommentsPer-node notes, not image processing. Record EXR identities, camera origin, Z units and planned DeepToImage location. Text helps a reviewer but never changes Deep compositing.
Check / distinguish: A useful note template is BG=..., FG=..., Z units=..., flatten=....
- Document Z units
Settings > CommentsRecord camera, EXR, Z units and the flatten boundary.
Check / distinguish: Make sure another artist can understand the note.
Render scripts · Frame · Start · End
Scripting hooks, not Deep sample merging algorithms.
- Settings / Frame Render Script
Render scripts > Settings / Frame Render ScriptFusion code evaluated during frame rendering. The captured Inspector shows an empty field. This is a pipeline scripting hook, not a native deep-compositing control.
Check / distinguish: Do not add scripts without separate security and reproducibility review.
- Settings / Start Render Scripts
Render scripts > Settings / Start Render ScriptsOptional scripts at the beginning of rendering. Collapsible section for specialized studio orchestration. No inherent Z-related effect unless a custom script is supplied.
Check / distinguish: Leave this unused for regular deep compositing.
- Settings / End Render Scripts
Render scripts > Settings / End Render ScriptsOptional scripts when rendering ends. Collapsible section for logging or downstream tasks; not part of Deep sample merging.
Check / distinguish: Do not use scripts as a substitute for checking final alpha and occlusion.
- Script hooks not effects
Settings > Render ScriptsFrame/Start/End are customization hooks, not Deep effects.
Check / distinguish: Leave all three blank for the tutorial.
- Never auto-execute copied scripts
Pipeline securityScripts from third-party comps may run arbitrary code; review them first.
Check / distinguish: Review the code outside production.
Deep boundaries · Deep sockets · flatten
Practical reference for dynamic Foreground, Studio licensing and the 2D/Deep boundary.
- Studio-only availability
EnvironmentBlackmagic marks the Deep Image toolset as Studio-only.
Check / distinguish: Check your Resolve edition and the dMerge entry under Deep Image.
- True Deep vs RGBA+Z
Source data typeDeep multi-sample images differ from flat RGBA with a single Z channel.
Check / distinguish: Inspect actual Deep EXR samples, not only the Viewer.
- Background is orange
Node Editor > BackgroundThe single base Deep input, not a flat RGBA stream.
Check / distinguish: Ensure the base EXR feeds the orange cable.
- Foreground is white
Node Editor > ForegroundEach additional Deep source uses a white dynamic Foreground.
Check / distinguish: Connect a third Deep pass and inspect the newly created input.
- Not a fixed two-input Merge
Node Editor topologyUnlike 2D Merge, dMerge accepts multiple Foreground connections.
Check / distinguish: Do not require a chain of flat two-input Merges.
- No listed Effect Mask
Node Editor socketsThe Resolve 21 dMerge entry lists Background and Foreground only.
Check / distinguish: Do not wire a Polygon to an invented blue Effect Mask.
- Output stays Deep
Output > DeepToImageThe stream remains Deep after dMerge rather than flat RGBA.
Check / distinguish: Feed Output to DeepToImage.Input.
- Use Image to Deep
2D Source → ImageToDeepA flat 2D asset needs depth assigned through Image to Deep first.
Check / distinguish: Check the inserted graphic depth before dMerge.Foreground.
- Depth is not cable priority
OcclusionCable order does not force a foreground over everything; each Deep sample has its own Z.
Check / distinguish: Check a known occlusion after DeepToImage.
- Multilayer vs depth stack
Data modelNamed image layers and per-pixel depth samples are different concepts.
Check / distinguish: When debugging, record both independently.
- Flatten only at the end
DeepToImageDeepToImage converts the combined Deep structure into an ordinary image.
Check / distinguish: After flattening, use ordinary Merge/MediaOut.
- Volumetric Composition downstream
DeepToImage > ControlsVolumetric overlap handling belongs to DeepToImage, not dMerge.
Check / distinguish: Compare fog/smoke overlap with dMerge unchanged.
- Target-build limit
Live verificationVisible labels are confirmed by the screenshot; actual .comp port IDs are unverified.
Check / distinguish: Export a real .comp and perform a Resolve 21 render test.
Before adjusting the node
- The saved Inspector capture shows Settings. Effect-specific Controls and Blend are not established by that image.
- First distinguish true Deep sample stacks from flat RGBA+Z.
- There is one Background plus repeatable white Foregrounds, not three fixed sockets.
- Process Layers and input Layer menus address named layers rather than Z samples.
- Auto/Match are documented multilayer choices; exact target-build dropdown options still need live verification.
- dMerge.Output remains Deep; normal 2D processing starts after DeepToImage.
- A flat MediaIn requires Image to Deep before a deep Foreground connection.
- Inspector capture is verified; no live Resolve 21 render or serialized port IDs were tested.
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
Two genuine Deep streams: correct dMerge topology
Combine a Deep background and Deep foreground without premature 2D flattening and inspect Z-aware occlusion.
Starting conditions
DaVinci Resolve / Fusion Target: DaVinci Resolve 21 / 21.1 · DaVinci Resolve Studio; Deep Image Compositing Toolset marked Studio-only in Blackmagic documentation · Cross-platform, static lesson; no running Resolve build attached
1920 × 1080 · 24 fps · 96 frames · Compatible scene-linear Deep samples with aligned camera/depth conventions; DeepToImage at final viewing boundary
- DaVinci Resolve Studio 21+
- dMerge
- DeepToImage
- Real Deep Image sources or Image to Deep
- Matched Z conventions and image dimensions
Source material
- scene-deep
Background Deep EXR with known Z samples (for example a CG environment).
Any genuine multisample Deep Image.
- object-deep
Aligned Deep EXR of a CG object crossing the background in depth.
Any second true Deep EXR sharing Z units/camera.
Nodes and connections
DM— dMerge · dMergeDTI— DeepToImage · DeepToImage
| Source | Destination | Data |
|---|---|---|
dMerge (DM)Output | DeepToImage (DTI)Input | deep |
External inputs
scene-deep— dMerge (DM) /Background· deepobject-deep— dMerge (DM) /Foreground1· deep
Graph output: DeepToImage (DTI)
Parameter values
- dMerge (DM) / Settings / Process Layers
"Default Layer"Baseline named-layer processing; it is not a Z-depth slider or a Deep sample selector.
- dMerge (DM) / Settings / Background Layer
"Auto"Read the available matching named image layer from Background with its default-layer fallback.
- dMerge (DM) / Settings / Foreground Layer
"Auto"Read the available matching named image layer from Foreground without changing its Z position.
- dMerge (DM) / Settings / Hide Incoming Connections
falseLeave input cables visible for diagnosis of repeatable Foreground ports.
Reproduce the example
- Insert dMerge; connect Scene Deep to orange Background and Object Deep to white Foreground. Do not supply two ordinary MediaIns directly.
Both inputs read multisample Deep data; the white Foreground is not an ordinary flat image input.
Check: Flow shows two deep inputs and no invented Effect Mask.
- Set Default Layer and Auto/Auto in Settings; compare exact labels with the original Inspector capture.
Layer selectors control neither Z nor opacity; first establish predictable named-layer routing.
Check: There are no fictitious Blend/Center/Apply Mode controls.
- Connect dMerge.Output (Deep) to DeepToImage.Input and evaluate the result only downstream of this node.
DeepToImage is the boundary where the combined deep samples become ordinary RGBA.
Check: Intersecting surfaces occlude according to known depths.
Expected result
- DeepToImage (DTI) · frame 48
After DeepToImage the two sources form a single scene; dMerge.Output retained Deep until flatten.
Alpha: Inspect glass/edge alpha in the final 2D preview, not in a substituted flat depth pass.
When the result differs
- The object disappears or overlaps incorrectly.
Cause: Wrong Z scale/axis, misaligned camera or a flat RGBA input.
Correction: Verify true Deep EXR data and the camera convention, then flatten each source separately for diagnosis.
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / dMerge [dMg]
Deep Image Nodes > dMerge [dMg]: one Background Deep input, repeatable Foreground Deep inputs, depth-sample composition and output remaining Deep
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / Deep to Image
Deep Image Nodes > Deep to Image [DTI]: Deep input to ordinary 2D image via depth-aware flatten
Three Deep passes: add a dynamic white Foreground
Merge Deep environment, CG object and Deep volume in one node instead of chaining incorrect flat 2D Merges.
Starting conditions
DaVinci Resolve / Fusion Target: DaVinci Resolve 21 / 21.1 · DaVinci Resolve Studio; Deep Image Compositing Toolset marked Studio-only in Blackmagic documentation · Cross-platform, static lesson; no running Resolve build attached
1920 × 1080 · 24 fps · 96 frames · Compatible scene-linear Deep samples with aligned camera/depth conventions; DeepToImage at final viewing boundary
- DaVinci Resolve Studio 21+
- dMerge
- DeepToImage
- Real Deep Image sources or Image to Deep
- Matched Z conventions and image dimensions
Source material
- environment-deep
Multisample deep CG environment.
Environment Deep EXR.
- prop-deep
A Deep hero object.
A second compatible Deep render.
- smoke-deep
Deep fog/smoke with multiple alpha/Z samples.
A third compatible Deep EXR with translucent regions.
Nodes and connections
DM— dMerge · dMergeDTI— DeepToImage · DeepToImage
| Source | Destination | Data |
|---|---|---|
dMerge (DM)Output | DeepToImage (DTI)Input | deep |
External inputs
environment-deep— dMerge (DM) /Background· deepprop-deep— dMerge (DM) /Foreground1· deepsmoke-deep— dMerge (DM) /Foreground2· deep
Graph output: DeepToImage (DTI)
Parameter values
- dMerge (DM) / Settings / Process Layers
"Default Layer"Baseline named-layer processing; it is not a Z-depth slider or a Deep sample selector.
- dMerge (DM) / Settings / Background Layer
"Auto"Read the available matching named image layer from Background with its default-layer fallback.
- dMerge (DM) / Settings / Foreground Layer
"Auto"Read the available matching named image layer from Foreground without changing its Z position.
- dMerge (DM) / Settings / Hide Incoming Connections
falseLeave input cables visible for diagnosis of repeatable Foreground ports.
Reproduce the example
- Feed the environment into Background and CG prop into the first white Foreground.
Keep one dMerge for multiple Deep streams.
Check: Both sources are Deep, not ordinary 2D images.
- Connect Smoke Deep via an additional white Foreground socket of the same dMerge and confirm the dynamic input is created.
Foreground ports are dynamic; Foreground1/Foreground2 are teaching validator IDs, not actual .comp serialization IDs.
Check: Three sources feed a single node; Layers menus do not change Z.
- Feed dMerge to DeepToImage. Compare overlapping volume behavior by toggling Volumetric Composition in DeepToImage, not in dMerge.
Merging samples and flattening overlapping translucent volumes are separate operations.
Check: Objects sit at correct Z depths and transparency does not simply follow cable order.
Expected result
- DeepToImage (DTI) · frame 48
After DeepToImage all three sources participate in a depth-aware composition.
Alpha: Inspect translucent fog edges and alpha plus matching scene-linear color.
When the result differs
- The smoke looks like a flat opaque curtain.
Cause: The smoke was not truly Deep, alpha is wrong, or the flatten volumetric mode is inappropriate.
Correction: Verify deep sample density/Z/alpha then test Volumetric Composition in DeepToImage without inventing dMerge Blend controls.
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / dMerge [dMg]
Deep Image Nodes > dMerge [dMg]: one Background Deep input, repeatable Foreground Deep inputs, depth-sample composition and output remaining Deep
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / Deep to Image
Deep Image Nodes > Deep to Image [DTI]: Deep input to ordinary 2D image via depth-aware flatten
Insert ordinary 2D graphics into a Deep comp using Image to Deep
Show the necessary 2D → Deep conversion before dMerge Foreground and Deep → 2D conversion after dMerge.
Starting conditions
DaVinci Resolve / Fusion Target: DaVinci Resolve 21 / 21.1 · DaVinci Resolve Studio; Deep Image Compositing Toolset marked Studio-only in Blackmagic documentation · Cross-platform, static lesson; no running Resolve build attached
1920 × 1080 · 24 fps · 96 frames · Compatible scene-linear Deep samples with aligned camera/depth conventions; DeepToImage at final viewing boundary
- DaVinci Resolve Studio 21+
- dMerge
- DeepToImage
- Real Deep Image sources or Image to Deep
- Matched Z conventions and image dimensions
Source material
- cg-deep
CG environment in a genuine Deep EXR.
Any Deep Image scene with known Z.
- graphic-rgba
2D PNG/graphic with transparent background (ordinary RGBA, NOT Deep).
Any normal 2D MediaIn with alpha.
Nodes and connections
ITD— Image to Deep · ImageToDeepDM— dMerge · dMergeDTI— DeepToImage · DeepToImage
| Source | Destination | Data |
|---|---|---|
Image to Deep (ITD)Output | dMerge (DM)Foreground1 | deep |
dMerge (DM)Output | DeepToImage (DTI)Input | deep |
External inputs
cg-deep— dMerge (DM) /Background· deepgraphic-rgba— Image to Deep (ITD) /Input· image
Graph output: DeepToImage (DTI)
Parameter values
- dMerge (DM) / Settings / Process Layers
"Default Layer"Baseline named-layer processing; it is not a Z-depth slider or a Deep sample selector.
- dMerge (DM) / Settings / Background Layer
"Auto"Read the available matching named image layer from Background with its default-layer fallback.
- dMerge (DM) / Settings / Foreground Layer
"Auto"Read the available matching named image layer from Foreground without changing its Z position.
- dMerge (DM) / Settings / Hide Incoming Connections
falseLeave input cables visible for diagnosis of repeatable Foreground ports.
Reproduce the example
- Connect RGBA graphics into Image to Deep.Input and establish a meaningful Z position in Image to Deep.
A flat RGBA cannot be treated as genuine Deep; the converter creates a Deep representation at the chosen depth.
Check: ImageToDeep.Output is Deep while its input was a 2D image.
- Feed genuine CG Deep into dMerge Background and Image to Deep.Output into its white Foreground. Leave layer selectors on Auto.
dMerge now receives two Deep streams rather than mismatched flat Image and Deep types.
Check: Placement depends on assigned Z; the Foreground socket does not guarantee visual frontmost order.
- Connect dMerge.Output to DeepToImage.Input, then inspect whether graphics pass in front of/behind the known 3D object according to Z.
Only here is an ordinary 2D image produced for downstream MediaOut.
Check: Graphics occupy the assigned depth and transparent edges remain legible.
Expected result
- DeepToImage (DTI) · frame 48
The flat graphic becomes a Deep element at an explicit depth and is flattened correctly with the scene.
Alpha: Inspect the PNG's transparent edges: Image to Deep does not recreate hidden multisamples from a single flat image.
When the result differs
- The graphic is always in front or disappears.
Cause: Image to Deep Z value/direction conflicts with the CG scene.
Correction: Align units/camera/near-far and adjust depth in the converter, not dMerge named-layer menus.
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / dMerge [dMg]
Deep Image Nodes > dMerge [dMg]: one Background Deep input, repeatable Foreground Deep inputs, depth-sample composition and output remaining Deep
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / Deep to Image
Deep Image Nodes > Deep to Image [DTI]: Deep input to ordinary 2D image via depth-aware flatten
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Deep Image Nodes / Image to Deep
Deep Image Nodes > Image to Deep [ITD]: ordinary 2D input, designated depth, output Deep Image
Other outlines from the article
Two Deep EXRs with preserved Z samples
One EXR feeds Background, another feeds Foreground; output remains Deep until final DeepToImage.
- Deep EXR A → dMerge.Background
- Deep EXR B → dMerge.Foreground
- dMerge.Output (Deep) → DeepToImage.Input
- DeepToImage.Output → MediaOut
Three independent Deep sources
Base scene, object and a volumetric pass feed one dMerge using additional white Foreground connections.
- Deep Scene → Background
- Deep Object → Foreground 1
- Deep Fog → Foreground 2
- dMerge → DeepToImage
Flat 2D graphic in a Deep scene
Convert a flat 2D element through Image to Deep before adding it into the Deep composition.
- Deep Scene → dMerge.Background
- 2D Graphic → ImageToDeep
- ImageToDeep.Output → dMerge.Foreground
- dMerge → DeepToImage
Mistakes
- Feeding a flat MediaIn straight into a Deep socket; use Image to Deep.
- Inventing a dMerge Effect Mask based on ordinary Merge diagrams.
- Treating its white dynamic Foreground as the ordinary Merge green Foreground.
- Assuming there are only two fixed inputs.
- Flattening each Deep pass before they are combined.
- Expecting to restore multi-sample data from an already flat RGBA.
- Confusing named image Layers with depth samples inside a pixel.
- Treating Background Layer as a Background Z-position control.
- Trying to push an object forward by changing Foreground Layer.
- Using Process Layers as a list of dynamic Foreground sockets.
- Assuming Auto chooses the nearest Deep sample.
- Assuming hidden incoming connections have been disconnected.
- Searching for a dMerge Controls tab with Blend/Apply Mode/Center.
- Trying to repair incompatible Z conventions just by swapping inputs.
- Ignoring mismatched camera setup or dimensions among passes.
- Ignoring color-space or alpha-association mismatches before flattening.
- Attributing DeepToImage Volumetric Composition to dMerge.
- Feeding Deep directly into a normal 2D Merge/MediaOut.
- Claiming a Settings screenshot proves serialized IDs for dynamic ports.
- Adding Render Scripts to a template without separate review.
Tips
- Start A/B testing with two genuine Deep EXRs with a known object intersection.
- Background is orange; additional Foregrounds are white.
- Use one dMerge with three Deep branches instead of an explanation based on three flat 2D Merges.
- Check real multi-sample structure and Z units in source EXRs separately.
- Document the exact point where DeepToImage flattening occurs.
- Default Layer / Auto / Auto is a starting diagnostic state, not a universal preset.
- For an empty result, check named-layer selection before inspecting the Z samples.
- Use explicit named-layer mapping only after verifying that the layer is actually present.
- Leave Hide Incoming Connections off while debugging a branching Flow.
- Document EXR source, camera rig and Z units in Comments.
- Check depth mismatch instead of masking it with a flat overlay.
- Set the inserted flat element Z in Image to Deep before merging it.
- Compare the composite on opaque surfaces and semi-transparent volumes separately.
- Evaluate Volumetric Composition on the final DeepToImage for fog/smoke.
- Do not treat dMerge alone as the final 2D output.
- Label dynamic sockets Foreground #1/#2 in teaching diagrams, but do not claim these labels are verified Fusion serialization IDs.
- Check playback: malformed sample/Z relationships may flicker over time.
- Retain original Deep EXRs until verification is complete; flattening cannot be reversed.
Workflow order
- Open DaVinci Resolve Studio and prepare at least two true Deep EXR/render sources with compatible camera, geometry, color and Z units.
- Verify that the input is genuinely Deep data rather than flat RGBA plus one Z channel.
- Connect the first Deep source to dMerge’s orange Background.
- Connect the second Deep source to a white Foreground. Add a third through another Foreground connection, not an invented Effect Mask.
- Open Settings and use Process Layers = Default Layer, Background Layer = Auto and Foreground Layer = Auto as a baseline.
- Feed dMerge.Output (Deep) into DeepToImage.Input (Deep), then display the 2D output from DeepToImage.
- Inspect known depth overlaps and transparency. If ordering is wrong, inspect source Z/alpha rather than only swapping cables.
- For a flat element, add Image to Deep and verify its assigned Z, then connect its Deep output to Foreground.
- For multilayer sources, check Process Layers and input-layer mapping separately from Z ordering.
- For fog/smoke, test Volumetric Composition at DeepToImage rather than attributing this behavior to dMerge.
- Verify 100% edges, motion playback, color/alpha and absence of fringes before delivering the flattened result.
