FUSION · FULL ARTICLE
MagicMask
MagicMask v2 selects a subject from Viewer points, tracks it and writes the matte into the alpha of its single RGBA output.
Overview
Positive Viewer points identify a subject or feature; negative points exclude unwanted areas. Choose a reference frame with a clear silhouette and little occlusion. Points guide the selection; one clean frame does not qualify the entire clip.
Tracking propagates the selection over time. Processed Frames reports already processed bounds and does not set the render range. Change Reference Time after analysis only deliberately: existing tracking information is lost.
Input receives the image. Garbage Matte removes alpha coverage, Solid Matte forces opacity, and Effect Mask limits the node after processing. Externally connected masks have their own animation; MagicMask does not transfer its track to them.
For a cutout, use RGBA Output with a consistent premultiplication convention. For local grading, keep the original image on the main branch, extract MagicMask alpha through Bitmap and feed the grading node’s Effect Mask. This makes the image and mask paths explicit.
The supplied images remain as a reference for the captured interface. They show Stroke Mode and Clear Strokes while Legacy is disabled; the Resolve 21 manual describes Point Mode and Clear Points. The article distinguishes these labels instead of assuming identical interfaces.
When to use it
- Local grading of a person, clothing or object through Alpha → Bitmap → Effect Mask.
- Isolating a subject for compositing over another background.
- An auxiliary matte to constrain more detailed keying or rotoscoping.
- Selecting the background by inverting a reviewed subject matte.
- Combining assisted selection with explicitly authored Solid and Garbage regions.
Article screenshots
Inputs & outputs
MagicMask · image and mattes
Four inputs serve different purposes. One Output carries RGB and generated alpha; an explicit extraction branch produces a mask stream.
Selects the marked subject, propagates the selection over time and refines its alpha channel.
Inputs
- Input
Image for analysis
Receives: Video or a 2D subject image.
Inside the node: Supplies recognition, tracking and output RGB.
Typical sources: MediaIn · Loader
Changing the source requires marks and computed frames to be reviewed.
- Garbage Matte
Remove a region
Receives: A mask that is white over the unwanted region.
Inside the node: Covered pixels become transparent in alpha.
Typical sources: Polygon · Rectangle · Bitmap
The external mask does not inherit MagicMask tracking.
- Solid Matte
Hold a region
Receives: A mask that is white within the held detail.
Inside the node: Covered pixels are forced opaque.
Typical sources: Polygon · Ellipse · Bitmap
Review its motion and preserve any intended transparent gaps.
- Effect Mask
Limit application
Receives: An external effect-coverage mask.
Inside the node: Limits node application after processing.
Typical sources: Rectangle · Polygon · Bitmap
It does not guarantee black alpha outside; use Garbage Matte to remove a region.
Outputs and destination
Output
One RGBA stream with the generated matte in alpha and the selected RGB Post Multiply treatment.
Next step: Bitmap · Merge · MatteControl
The matte is this image’s channel, not a second physical output.
- Output
- One RGBA stream: source RGB with the chosen Post Multiply treatment and the generated alpha. Extract the matte from this same output’s alpha.
Processing order
- Feed the orange Input and place points on a reference frame.
- Track and inspect alpha before adding auxiliary mattes for a specific purpose.
- For local grading, connect Output to Bitmap.Image with Channel Alpha.
- Connect Bitmap.Mask to the grade’s Effect Mask while original RGB feeds its Input.
A separate alpha branch for grading
MediaIn → MagicMask → Bitmap (Alpha) → ColorCorrector.Effect Mask; MediaIn → ColorCorrector.Input → MediaOut
Branching retains original RGB; the extracted mask limits only the grade.
Garbage removes alpha, Solid holds alpha, and Effect Mask limits application. One Output carries RGBA.
Parameters
MagicMask · Inspector reference
Subject → tracking → alpha → application. PNG labels are mapped to v2 and state-changing operations are explained separately.
- Foundation
- Understand purpose, source and result type.
- Control
- Set the main controls deliberately and compare with the source.
- Production
- Review motion, masking, edges and alpha.
- Review
- Record the version, limits and final-result criteria.
Selection · Subject and version
Marks define the target; labels depend on the interface version.
- Tracking
Selection > TrackingThe subject selection, tracking and cache section. This is a tab heading, not a numeric control. Resolve 21 defaults to Magic Mask v2: mark the subject with positive and negative points in the Viewer, then analyze its motion. The retained screenshot uses Stroke Mode and Clear Strokes; the version 21 manual uses Point Mode and Clear Points.
Check / distinguish: Check Use Legacy Magic Mask and the labels in your installed version before marking the image.
- Mode: Faster / Better
Selection > Mode: Faster / BetterSelect the processing speed and matte detail. Faster favors a quick preliminary matte, including a broad holdout. Better spends more processing on detail. Changing the mode neither fixes the wrong subject selection nor establishes stability on neighboring frames.
Check / distinguish: Compare both modes over the same difficult section, then regenerate the chosen version.
- Stroke Mode: Add / Subtract / Select / Delete
Selection > Stroke Mode: Add / Subtract / Select / DeleteCreate, select or remove selection marks. The original entry title is retained from the PNG. The v2 documentation describes points: Add marks an included area in blue, Subtract excludes in red, Select selects existing points, and Delete removes the selection. A long contour stroke is not required by v2. A deliberate point inside a feature is more useful than random marks along its edge.
Check / distinguish: Place a negative point on a genuinely unwanted area and inspect alpha immediately.
- Use Legacy Magic Mask
Selection > Use Legacy Magic MaskCompatibility with the previous algorithm. Magic Mask v2 is the default in Resolve 21. This checkbox restores earlier behavior for older-project compatibility. In the supplied PNG it is unchecked despite the Stroke Mode label: a label alone does not prove that Legacy is enabled.
Check / distinguish: When comparing old and new projects, record the mode alongside the cache and tracking range.
- Point Mode in Magic Mask v2
Tracking > Point ModeThe version 21 manual uses positive and negative points. The retained Stroke Mode label does not require long strokes in v2.
Check / distinguish: Place one point inside the subject and assess alpha before adding more.
- Legacy label versus actual mode
Tracking > Use Legacy Magic MaskLegacy is disabled in the supplied PNG; the word Stroke alone does not identify the mode.
Check / distinguish: Check the actual checkbox, then the labels and marking behavior.
Tracking · Motion and cache
Distinguish points, tracking, processed bounds and cached frames.
- Tracking buttons
Tracking > Tracking buttonsAnalyze motion forward, backward or one frame at a time. The manual distinguishes Track Reverse, Reverse One Frame, Forward Then Reverse, Stop, Forward and Forward One Frame. The combined command reaches the end, returns to the reference frame and tracks to the beginning. On a failure, stop, return to the last good frame and correct the marks; continuing a bad track usually spreads the error.
Check / distinguish: Use single-frame tracking around an occlusion or abrupt motion.
- Clear Strokes: Current / Range / All
Tracking > Clear Strokes: Current / Range / AllRemove user selection marks over the chosen range. The corresponding v2 section is called Clear Points. Current affects the playhead frame, Range the selected render range, and All the complete clip. These controls remove selection marks; Disk Cache Clear removes cached computed frames and serves a different purpose.
Check / distinguish: Save a composition version before All if you may need the previous marks.
- Go To Frame
Tracking > Go To FrameJump to the first tracked frame, reference frame or last tracked frame. First Frame of Tracked Area, Reference Frame and Last Frame of Tracked Area help resume analysis from an existing tracked boundary. Jumping does not create tracking data or establish that every intermediate matte is usable.
Check / distinguish: After jumping, compare the frame with Processed Frames and inspect adjacent frames.
- Disk Cache: Regenerate All / Clear
Tracking > Disk Cache: Regenerate All / ClearRebuild or remove the computed-frame disk cache. Regenerate All rebuilds the cache; Clear removes its current frames. Neither is the same operation as Clear Points/Strokes. Reassess the result after changing the source or marks, and rebuild the cache if the displayed frame no longer reflects the current settings.
Check / distinguish: A populated cache is not evidence of correct tracking.
- Reference Time
Tracking > Reference TimeThe initial marking frame and tracking starting point. Choose a clear, unobstructed subject before placing the first point. Once set, changing the reference frame destroys existing tracking information, as the manual explicitly states. For a local repair, first stop, navigate to the failure and adjust the points.
Check / distinguish: Do not treat Reference Time as a harmless quality adjustment.
- Processed Frames: Start / End
Tracking > Processed Frames: Start / EndRead-only bounds of the already processed frames. Start displays the earliest processed frame and End the latest. The manual defines both fields as not user editable. They cannot specify a future analysis range; use the composition range and Tracking commands instead.
Check / distinguish: Before delivery, review the full required range, including the frames between the displayed bounds.
- Reference frame is a state change
Tracking > Reference TimeChanging Reference Time after tracking destroys the previous tracking information.
Check / distinguish: Save a version before changing it, then analyze the clip again.
- Processed Frames are read-only
Tracking > Processed FramesStart/End report processed bounds rather than a future render range.
Check / distinguish: Compare the values against an actual review of frames 0–119.
- Marks versus disk cache
Tracking > Clear Points / Disk CacheClear Points/Strokes removes marks; Disk Cache Clear removes computed frames.
Check / distinguish: After the operation, check whether the needed points remain and the frame matches current settings.
Alpha · Output and premultiplication
One RGBA output contains both color and the generated alpha.
- Post Multiply Image
Alpha > Post Multiply ImageMultiply RGB by the generated alpha channel. With this enabled, output RGB is prepared for conventional premultiplied compositing. Disabling it changes the color representation in transparent and semitransparent pixels; it does not create a separate matte output. The node still has one RGBA output whose alpha can be extracted with Bitmap.
Check / distinguish: For a cutout, start with Post Multiply enabled and inspect the edge over light and dark backgrounds.
- One Output, embedded alpha
Flow > OutputThe physical result is one RGBA Output. The graph does not declare a separate Matte socket.
Check / distinguish: View MagicMask and switch between RGB and Alpha.
- Explicit alpha extraction
Flow > Output → Bitmap.ImageFor an explicit teaching mask branch, Bitmap with Channel Alpha converts the image into a mask stream.
Check / distinguish: Connect Bitmap.Mask to the grade’s Effect Mask while keeping original RGB in its Input.
Matte finesse · Boundary and density
Refine the boundary after verifying the selection itself.
- Matte
Matte finesse > MatteThe final alpha refinement section. This is a tab and section heading, not a separate effect or output. It refines the selection together with connected Solid Matte and Garbage Matte inputs. Switch the Viewer to alpha: source RGB can hide holes and stray matte islands.
Check / distinguish: Correct subject selection first, then refine matte edges and tonal values.
- Filter
Matte finesse > FilterThe filtering algorithm used to soften the matte. The retained menu contains Box, Bartlett, Multi-box, Gaussian and Fast Gaussian. Box uses simple averaging, Bartlett a triangular profile, Multi-box multiple passes, and the Gaussian variants a smooth profile. Evaluate the choice with nonzero Blur; it does not recognize additional hair or objects.
Check / distinguish: Compare filters at the same Blur value and 100% Viewer scale.
- Blur
Matte finesse > BlurSoften the alpha boundary. Zero keeps a sharp boundary; increasing the value broadens the transition through gray. Blur can conceal stair-stepping while also softening the subject boundary. It neither removes a wrongly included background nor recovers detail the model failed to select.
Check / distinguish: Inspect softness across adjacent frames, especially during motion or scale changes.
- Erode/Dilate
Matte finesse > Erode/DilateShrink or expand the selected matte area. Negative values shrink the white matte region; positive values expand it. This changes the alpha boundary, so assess both the matte and the composite. Excessive erosion removes fine detail; expansion may reintroduce a strip of the original background.
Check / distinguish: Start at zero and adjust in small steps; do not assume one value means a fixed pixel count.
- Gamma
Matte finesse > GammaAdjust semitransparent matte values. Increasing Gamma makes gray areas more opaque; decreasing it makes them more transparent, while pure 0 and 1 remain the endpoints. This helps assess a semitransparent edge but cannot replace correct subject selection. Use 1 as the neutral starting point.
Check / distinguish: After Gamma, recheck hair, gaps between fingers and moving boundaries.
- Threshold Low / High
Matte finesse > Threshold Low / HighSet the transparent and opaque thresholds. Values below Low become black in the matte, those above High become white, and intermediate values retain relative transparency. Begin at 0–1 and move the thresholds gradually. An overly narrow range turns a soft boundary into a hard cutout.
Check / distinguish: Assess the entire alpha channel, not one attractive edge patch.
- Restore Fringe
Matte finesse > Restore FringeRecover the outer fringe of the selection. This control helps restore the outer edge after matte processing. It is neither RGB reconstruction nor a guarantee of correct individual hairs. Check it over a background: unwanted semitransparent regions may return with useful detail.
Check / distinguish: Increase Restore Fringe after basic cleanup and compare against zero.
- Invert Matte
Matte finesse > Invert MatteInvert the resulting alpha channel. Transparent becomes opaque and vice versa, including inversion of intermediate values. This differs from inverting one Solid or Garbage input. For background grading, it can be clearer to invert an extracted Bitmap matte while retaining the original subject selection for other branches.
Check / distinguish: Identify the exact inversion stage to avoid applying it twice.
- Temporal edge review
Matte > frame-by-frame reviewNeither Blur nor Threshold establishes temporal edge stability.
Check / distinguish: Inspect hair, fine detail and motion blur across adjacent frames.
- Verify RGB and alpha separately
Viewer > RGB / AlphaA clean monochrome matte and a natural composite are different checks.
Check / distinguish: Inspect alpha, then premultiplied RGB over light and dark plates.
Holdouts · External mattes
Garbage removes, Solid holds, and Effect Mask limits processing.
- Solid Matte: Invert
Holdouts > Solid Matte: InvertInvert the incoming Solid Matte before combining it. The white Solid Matte input forces its covered area opaque. Its Invert control changes the connected mask region before it combines with the selection alpha. It does not automatically track a connected Polygon or Ellipse.
Check / distinguish: View the connected mask by itself before inspecting MagicMask’s final alpha.
- Garbage Matte: Invert
Holdouts > Garbage Matte: InvertInvert the incoming Garbage Matte before combining it. The gray Garbage Matte input removes its covered area from alpha. Invert changes which portion of the external mask is removed. Animate or track an auxiliary mask separately for a moving subject; MagicMask’s tracking is not automatically transferred to it.
Check / distinguish: Do not substitute the blue Effect Mask for Garbage Matte: they act at different stages.
- Effect Mask is not Garbage Matte
Flow > Effect Mask / Garbage MatteEffect Mask limits the result after processing. Use Garbage Matte to remove an alpha region.
Check / distinguish: In a simple test, compare alpha with the same mask connected to each input separately.
- External masks have their own motion
Flow > Solid Matte / Garbage MatteA connected Polygon or Ellipse does not automatically inherit MagicMask tracking.
Check / distinguish: For motion, inspect the external mask on the first, middle and final frames.
Before adjusting the node
- The v2/Legacy mode and marking labels are identified.
- Tracking is reviewed over the complete required range.
- Reference Time and Processed Frames are used as intended.
- RGBA Output, extracted alpha and external masks are distinguished.
- The edge is checked in alpha, in motion and over contrasting plates.
Reference documentation
- DaVinci Resolve 21 Reference Manual · MagicMask
Physical PDF pages 2583–2588: purpose and documented tool behavior.
Examples
Track a subject and create a separate mask branch
Select a subject in MagicMask v2 and limit its grade through Bitmap Alpha while retaining original RGB.
Starting conditions
DaVinci Resolve 21 · MagicMask 21 · editorial reference 2026-10-18 · DaVinci Resolve Studio 21 · Fusion · Magic Mask v2. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · Sources and plates use one working RGB space; the Viewer transform is separate. Bitmap reads alpha as mask data.
- Your own source and an explicit 0–119 range at 24 fps.
- The source is static or moving as specified by the selected exercise.
- The graph uses existing documented ports; names are semantic article IDs.
Source material
- SRC
Your own 120-frame, 1920×1080, 24 fps clip: one clearly visible person or object against a distinguishable background, with frame 60 unobstructed.
Use your own short shot with slow motion; choose another clear reference frame and record it explicitly.
Nodes and connections
SRC— Source clip · MediaInFX— Select and track · MagicMaskBIT— Extract alpha · BitmapMaskGRADE— Subject grade · ColorCorrectorOUT— Result · MediaOut
| Source | Destination | Data |
|---|---|---|
Source clip (SRC)Output | Select and track (FX)Input | image |
Select and track (FX)Output | Extract alpha (BIT)Image | image |
Extract alpha (BIT)Mask | Subject grade (GRADE)EffectMask | mask |
Source clip (SRC)Output | Subject grade (GRADE)Input | image |
Subject grade (GRADE)Output | Result (OUT)Input | image |
Graph output: Result (OUT)
Parameter values
- Select and track (FX) / Tracking / Use Legacy Magic Mask
falseUse the documented v2; retained PNG labels may differ.
- Select and track (FX) / Tracking / Mode
"Better"Assess matte detail after selecting the correct subject.
- Select and track (FX) / Tracking / Point Mode
"Add"Create a positive Viewer point inside the subject.
- Select and track (FX) / Tracking / Post Multiply Image
trueKeep RGB consistent with generated alpha.
- Extract alpha (BIT) / Controls / Channel
"Alpha"Convert the MagicMask image into a separate mask stream.
- Select and track (FX) / Matte / Gamma
1A neutral start before inspecting the selection.
- Select and track (FX) / Matte / Blur
0First see the actual selection boundary without concealing it with blur.
- Subject grade (GRADE) / Colors / Saturation
0.6A visible teaching adjustment makes mask coverage easy to check.
Reproduce the example
- Branch MediaIn: one connection feeds MagicMask.Input, the other ColorCorrector.Input. Connect MagicMask → Bitmap.Image and Bitmap.Mask → the grade’s Effect Mask.
RGB and matte need clear independent paths.
Check: The graph has five connections and the source directly feeds the grade.
- Go to frame 60, view MagicMask, confirm Legacy is off and place one Add point inside the subject. Add a Subtract point over an unwanted region if required.
Selection before the first track establishes the reference frame and analysis target.
Check: Alpha contains the intended subject; positive points are blue and negative points red.
- Run Track Forward Then Reverse. On a failure, stop, return to the last good frame, correct the point and continue one frame at a time.
Increasing Blur does not repair tracking failure.
Check: Processed Frames reports bounds while viewing confirms the matte at 0, 60, 119 and between them.
- Select Channel Alpha in Bitmap and inspect it separately, then set ColorCorrector Saturation to 0.6.
The grading branch needs MagicMask transparency rather than source RGB luminance.
Check: The subject’s saturation changes while the background retains its original appearance.
- Review the full range, then compare alpha at source MediaIn and final ColorCorrector.
The separate matte branch should limit the grade rather than cut out the source frame.
Check: The grade follows the subject; opaque input remains opaque. If A differs, stop and inspect the chain.
Expected result
- Result (OUT) · frame 60
Expect reduced saturation on the selected subject with the background unchanged.
Alpha: Compare final A with the source; MagicMask alpha is used only in the mask branch.
- Result (OUT) · frame 119
The adjustment should remain on the subject at the clip end without jumping to the background.
Alpha: Inspect Bitmap’s fine boundary and gaps; the full range needs native review.
When the result differs
- The bright background changes instead of the subject
Cause: Bitmap is using Luminance instead of Alpha.
Correction: Select Channel Alpha and inspect Bitmap itself.
- The mask is stuck on one frame
Cause: Only selection was performed, or tracking was interrupted.
Correction: Check Processed Frames and continue tracking from the correct boundary.
- The subject looks soft but unwanted background remains
Cause: Blur is concealing inaccurate marks.
Correction: Return Blur to zero, repair the points and only then refine the boundary.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- DaVinci Resolve 21 Reference Manual · MagicMask
Physical PDF pages 2583–2588; v2 selection, tracking, four inputs and matte processing.
Composite a cutout over a new background
Prepare MagicMask alpha and premultiplied RGB for Merge Foreground and inspect edges over a contrasting plate.
Starting conditions
DaVinci Resolve 21 · MagicMask 21 · editorial reference 2026-10-18 · DaVinci Resolve Studio 21 · Fusion · Magic Mask v2. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · Sources and plates use one working RGB space; the Viewer transform is separate. Bitmap reads alpha as mask data.
- Your own source and an explicit 0–119 range at 24 fps.
- The source is static or moving as specified by the selected exercise.
- The graph uses existing documented ports; names are semantic article IDs.
Source material
- SRC
Your own 120-frame, 1920×1080, 24 fps clip: one clearly visible person or object against a distinguishable background, with frame 60 unobstructed.
Use your own short shot with slow motion; choose another clear reference frame and record it explicitly.
- PLATE
Your own opaque 1920×1080 plate with light and dark areas behind the subject boundary.
Use a simple light/dark test plate; replace it with the real, correctly transformed background for the final.
Nodes and connections
SRC— Subject · MediaInFX— Reviewed matte · MagicMaskPLATE— Contrasting plate · LoaderMERGE— Composite · MergeOUT— Result · MediaOut
| Source | Destination | Data |
|---|---|---|
Subject (SRC)Output | Reviewed matte (FX)Input | image |
Reviewed matte (FX)Output | Composite (MERGE)Foreground | image |
Contrasting plate (PLATE)Output | Composite (MERGE)Background | image |
Composite (MERGE)Output | Result (OUT)Input | image |
Graph output: Result (OUT)
Parameter values
- Reviewed matte (FX) / Tracking / Use Legacy Magic Mask
falseUse the documented v2; retained PNG labels may differ.
- Reviewed matte (FX) / Tracking / Mode
"Better"Assess matte detail after selecting the correct subject.
- Reviewed matte (FX) / Tracking / Point Mode
"Add"Create a positive Viewer point inside the subject.
- Reviewed matte (FX) / Tracking / Post Multiply Image
trueKeep RGB consistent with generated alpha.
- Reviewed matte (FX) / Matte / Filter
"Fast Gaussian"Keep one filter fixed while comparing softness.
- Reviewed matte (FX) / Matte / Blur
0.2A small teaching starting value; choose the final value from the native edge.
- Reviewed matte (FX) / Matte / Erode/Dilate
-0.001Test a small contraction of the white region without assuming a fixed pixel distance.
- Reviewed matte (FX) / Matte / Gamma
1Keep intermediate matte density neutral during initial edge review.
- Reviewed matte (FX) / Matte / Threshold Low
0Avoid clipping semitransparent detail at the start.
- Reviewed matte (FX) / Matte / Threshold High
1Keep the initial upper threshold.
- Reviewed matte (FX) / Matte / Restore Fringe
0Inspect the original edge before trying to restore its fringe.
Reproduce the example
- Connect MagicMask RGBA Output to Merge’s green Foreground and the test plate to yellow Background.
This graph uses the cutout image itself rather than a separate Matte socket.
Check: Both required Merge inputs are connected and its output feeds MediaOut.
- Place a positive point and any needed negative points at reference frame 60, then track the full range in both directions.
Accurate selection must precede edge processing.
Check: The subject stays in alpha at the beginning, middle, occlusions and end.
- First compare alpha with Blur and Erode/Dilate at zero. Then try the small values shown, keeping Gamma 1 and Threshold 0–1.
Distinguish real improvement from the loss of fine detail.
Check: The edge is cleaner without losing fingers, hair or fine objects; reduce the adjustment if they disappear.
- Keep Post Multiply Image enabled and view Merge RGB over both light and dark parts of the plate.
Dark and bright fringes can appear on different backgrounds.
Check: There is no double multiplication or source-colored strip; check a mismatching edge first in MagicMask alpha.
- Inspect frames 0, 60 and 119 and the full motion; regenerate Disk Cache if needed after the final edit.
Cached frames must reflect the final selection state.
Check: The edge does not jump or leak background during motion; an opaque plate gives the intended opaque final image.
Expected result
- Reviewed matte (FX) · frame 60
Expect the selected subject with a carefully refined boundary.
Alpha: In Viewer Alpha the subject is white, background black, and needed soft detail retains intermediate values.
- Result (OUT) · frame 119
The subject appears over the new plate without a conspicuous colored fringe.
Alpha: With an opaque plate, expect A=1 across the frame; verify this in Resolve rather than inferring it automatically from the diagram.
When the result differs
- Hair or fingers disappeared
Cause: Erode/Dilate or Threshold is too aggressive.
Correction: Restore neutral bounds and the missing detail, then adjust in smaller increments.
- A dark fringe despite correct alpha
Cause: RGB and alpha use inconsistent premultiplication conventions.
Correction: Check Post Multiply and Merge behavior; remove any duplicate multiplication in intermediate nodes.
- One frame is good but motion is poor
Cause: Only the reference frame was inspected or cache no longer matches the marks.
Correction: Review tracking frame by frame around the failure and regenerate the relevant data.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- DaVinci Resolve 21 Reference Manual · MagicMask
Physical PDF pages 2583–2588; v2 selection, tracking, four inputs and matte processing.
- Blackmagic Design — Fusion 20.3 Reference Manual
Fusion Fundamentals: getting clips into Fusion; MediaIn/MediaOut roles; Loader/Saver and manual EXR disk-cache workflow. Current Resolve 21.1 live UI validation remains separate.
Use external Solid and Garbage mattes
Separately remove an unwanted region and hold an opaque interior detail, then inspect the resulting matte.
Starting conditions
DaVinci Resolve 21 · MagicMask 21 · editorial reference 2026-10-18 · DaVinci Resolve Studio 21 · Fusion · Magic Mask v2. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · Sources and plates use one working RGB space; the Viewer transform is separate. Bitmap reads alpha as mask data.
- Your own source and an explicit 0–119 range at 24 fps.
- The source is static or moving as specified by the selected exercise.
- The graph uses existing documented ports; names are semantic article IDs.
Source material
- SRC
Your own static 120-frame shot: the main subject near the center, an unwanted detail on the left around X=0.2.
Use your own still held for 120 frames and reposition the masks. Animate external masks separately if the subject moves.
Nodes and connections
SRC— Static subject · MediaInFX— Selection with holdouts · MagicMaskGARB— Region to remove · RectangleMaskSOLID— Held interior · EllipseMaskBIT— Final alpha · BitmapMaskWHITE— White matte on transparency · BackgroundOUT— Matte review · MediaOut
| Source | Destination | Data |
|---|---|---|
Static subject (SRC)Output | Selection with holdouts (FX)Input | image |
Region to remove (GARB)Mask | Selection with holdouts (FX)GarbageMatte | mask |
Held interior (SOLID)Mask | Selection with holdouts (FX)SolidMatte | mask |
Selection with holdouts (FX)Output | Final alpha (BIT)Image | image |
Final alpha (BIT)Mask | White matte on transparency (WHITE)EffectMask | mask |
White matte on transparency (WHITE)Output | Matte review (OUT)Input | image |
Graph output: Matte review (OUT)
Parameter values
- Selection with holdouts (FX) / Tracking / Use Legacy Magic Mask
falseUse the documented v2; retained PNG labels may differ.
- Selection with holdouts (FX) / Tracking / Mode
"Better"Assess matte detail after selecting the correct subject.
- Selection with holdouts (FX) / Tracking / Point Mode
"Add"Create a positive Viewer point inside the subject.
- Selection with holdouts (FX) / Tracking / Post Multiply Image
trueKeep RGB consistent with generated alpha.
- Region to remove (GARB) / Controls / Center
[0.2,0.5]Place the teaching mask over the unwanted left region.
- Region to remove (GARB) / Controls / Width
0.15Cover the unwanted detail without touching the subject.
- Region to remove (GARB) / Controls / Height
0.65Show an extended removal region.
- Region to remove (GARB) / Controls / Soft Edge
0.01A small soft transition for checking the final boundary.
- Held interior (SOLID) / Controls / Center
[0.5,0.5]Place the holdout inside an opaque part of the subject.
- Held interior (SOLID) / Controls / Width
0.12Stay within the interior detail.
- Held interior (SOLID) / Controls / Height
0.15A small region makes Solid’s local effect clear.
- Selection with holdouts (FX) / Matte / Solid Matte / Invert
falseKeep direct holdout-mask behavior.
- Selection with holdouts (FX) / Matte / Garbage Matte / Invert
falseKeep direct removal of the white Garbage region.
- Selection with holdouts (FX) / Matte / Invert Matte
falseInspect the selected subject rather than its inverse.
- Final alpha (BIT) / Controls / Channel
"Alpha"Explicitly extract the combined matte result.
- White matte on transparency (WHITE) / Controls / Color
[1,1,1,1]Display the matte as white with its transparency.
Reproduce the example
- Mark the main subject in MagicMask v2 and inspect its alpha on the static source.
A static test separates external matte behavior from their motion problems.
Check: The main subject is identifiable and the unwanted area is separate on the left.
- Connect Rectangle.Mask to gray Garbage Matte. Fit Center, Width and Height to the unwanted detail and leave Invert off.
Garbage directly removes its covered region from alpha.
Check: The region becomes black in MagicMask alpha while the main subject remains.
- Connect Ellipse.Mask to white Solid Matte and keep it entirely inside the desired opaque detail.
Solid forces the interior opaque and should not cross the outer silhouette.
Check: The interior is white in alpha without an unwanted opaque patch extending beyond the ellipse.
- Feed Output into Bitmap.Image, choose Alpha and connect Bitmap.Mask to a white Background.Effect Mask.
This explicitly shows RGBA → mask and then back to an image for viewing.
Check: MediaOut shows a white matte on transparency matching MagicMask’s alpha.
- Inspect frames 0, 60 and 119. If the source moves, pause the exercise and animate or track Rectangle and Ellipse separately first.
MagicMask tracking is not automatically applied to external masks.
Check: Removal and holdout stay on their details; MagicMask Effect Mask is unconnected in this graph.
Expected result
- Selection with holdouts (FX) · frame 60
The main subject remains selected, the unwanted left detail is removed and the interior region is held.
Alpha: Garbage produces transparency and Solid opacity; inspect alpha itself.
- Matte review (OUT) · frame 119
The white matte image follows the reviewed silhouette.
Alpha: Output Background transparency is driven by the extracted Bitmap matte, not source luminance.
When the result differs
- Everything except the unwanted region is removed
Cause: Garbage Matte is inverted or covers the opposite region.
Correction: Disable the relevant Invert and inspect Rectangle separately.
- A white oval appears outside the subject
Cause: Solid Matte extends outside the actual silhouette.
Correction: Shrink or move Ellipse inside the opaque region.
- Auxiliary masks do not follow the subject
Cause: MagicMask tracking was assumed to be inherited.
Correction: Animate the shapes separately or use the static source specified by the exercise.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- DaVinci Resolve 21 Reference Manual · MagicMask
Physical PDF pages 2583–2588; v2 selection, tracking, four inputs and matte processing.
Other outlines from the article
Grade the selected subject
Original RGB feeds ColorCorrector while Bitmap extracts MagicMask alpha to limit the grade.
- MediaIn
- MagicMask
- Bitmap
- ColorCorrector
- MediaOut
Composite onto another background
The reviewed premultiplied RGBA result feeds Merge Foreground; the replacement plate feeds Background.
- MediaIn
- MagicMask
- Merge
- MediaOut
Remove stray regions and hold the interior
External masks feed the documented Garbage Matte and Solid Matte inputs; inspect the result in alpha.
- MediaIn
- MagicMask
- Bitmap
- Background
- MediaOut
Mistakes
- Expecting a separate Matte socket and confusing RGBA with an extracted mask stream.
- Treating Processed Frames as an editable future tracking range.
- Changing Reference Time after analysis without accounting for existing track loss.
- Blurring a wrong selection instead of repairing the marks or the failing frame.
- Using Effect Mask instead of Garbage Matte and obtaining unexpected alpha outside the region.
- Assuming an external Polygon is automatically tracked with the MagicMask subject.
- Taking the Stroke Mode label as proof that Legacy is enabled.
Tips
- Save independent versions before changing the algorithm or reference frame.
- Check the start, reference frame, occlusion and end at minimum, then review the full range.
- A subtle grade and a background replacement demand different edges: judge the matte against its final use.
- Start Matte with neutral values and change one control at a time.
- Keep original RGB separate from the matte branch when only grading color.
- Checking two backgrounds helps reveal both dark and bright fringes.
Workflow order
- Connect the source to Input and check the v2/Legacy mode in your version.
- Place an Add point on a clear reference frame, followed by Subtract if required.
- Track forward and backward; stop at occlusions and inspect frame by frame.
- Review alpha over the full required range and correct the marks before softening the edge.
- Refine Blur, Erode/Dilate, Gamma and Threshold in small increments.
- For grading, use a separate Bitmap Alpha path; for compositing, make Post Multiply consistent with Merge.
- After the final edits, regenerate the needed cache and review the result in motion.
