Aller au contenu

Depth Map Node

By Kriss Norde

Depth Map creates an alpha channel based on the perceived distance of objects in your clip, to isolate a depth region.

Overview

DaVinci Resolve Studio only.

Depth Map analyzes the image and produces an alpha channel visualized as a black and white image: white is the area affected by the changes, black remains unchanged. Being able to isolate a specific depth region greatly expands what you can do to the image downstream.

Where to find this node

  • Effects Library: Tools > Matte > Depth Map
  • Quick add: right-click in the Node Editor → Add Tool > Matte > Depth Map

Inputs

  • Input (yellow) - the shot to analyze for depth.
  • Effect Mask (blue) - optional. Limits the pixels that are processed. The mask is applied after the node is processed.

Setup

Source image → Depth Map → downstream nodes (for example a grade on the background)

Controls tab

Mode
the effect is very computationally intensive. Faster speeds up responsiveness to adjustments, Better (default) gives the best results and should be turned back on when the adjustments are finished.
Depth Map Preview
checked by default, shows the map while you adjust it. When disabled, the alpha can be used for grading on other nodes.
Invert
reverses the map (transparent and opaque regions switched).

Resulting Map Adjustment:

Adjust Map Levels
when deselected (default), the full range of the map can be adjusted. When enabled, levels are clipped to 0 and 1, as in an alpha channel, and the controls below become active.
Far Limit
adjusts the black levels of the map.
Near Limit
adjusts the white levels of the map.
Gamma
makes intermediate depth values brighter or dimmer compared to the black and white levels.

Isolate Specific Depth:

Isolation
turns depth isolation on or off.
Target Depth
the depth to isolate. 1 is fully in the foreground, 0 fully in the background.
Tolerance
range on either side of the Target Depth.
Softness
subtle ramp-in and ramp-out of the range, for a more organic selection.

Map Finesse:

Post Processing
turns the Map Finesse controls on or off.
Post-Filter
blends the map to the smooth areas and edges of the image, so later grading does not visibly vary within the region.
Contract/Expand
dilates or erodes the shape at its edges, to fine-tune the boundary between affected and unaffected regions.
Blur
softens the boundary of the map.

The Settings tab is common to the other Matte nodes.

Use cases

  • Simulate a depth of field effect confined to the distant background, by combining Depth Map with a Blur.
  • Enhance a foreground subject (contrast, saturation, sharpness), similar to using a qualifier.
  • Fix a color temperature problem in a distant area (for example a window shot in daylight) without affecting the foreground subject.

Tips

  • Adjust in Faster mode, then switch back to Better once the adjustments are finished.