FUSION · FULL ARTICLE
Rectangle
A rectangular mask for panels, windows and reveals: shape, feathering, outlines and mask combinations without replacing the source image.
Overview
The tool does not paint the image itself. White permits processing, black preserves the receiving operation’s unaffected state, and gray produces partial influence. The receiving tool determines what that means for the image.
Shape position/size, canvas resolution and movement of a colored layer are separate concerns. A reveal can move only the mask while the title and source plate stay fixed.
For a compound shape chain masks and explicitly choose Paint Mode on the receiver. Inspect the matte in monochrome before compositing: random inversion or Blend changes do not reliably fix reversed subtraction.
When to use it
- Create title plates
- Mask a blur
- Build picture-in-picture frames
- Reveal text or graphics
- Create rounded UI cards
- Limit color or glow effects
Article screenshots
Inputs & outputs
Rectangle generates its own mask; the blue input is only for mask combination
Rectangle does not wait for an image input. Its own geometry creates the mask. The optional Effect Mask combines that shape with another mask branch.
Builds a rectangular/rounded mask, then applies Soft Edge, Border Width, Invert and common mask controls.
Rectangle's own shape Center, Width, Height, Corner Radius and Angle generate the mask inside the node.
Inputs
- Effect Mask
Additional mask to combine
Receives: An existing mask that should be combined with the rectangle.
Inside the node: Rectangle combines the incoming mask with its own shape according to Paint Mode / common mask controls.
Typical sources: Ellipse · Polygon · B-Spline · Bitmap · another Rectangle
This is not an image input. Rectangle still generates its own mask with nothing connected here.
Outputs and destination
Mask Output
A single-channel rectangular mask after combination, inversion, border and soft-edge processing.
Next step: Blur → Effect Mask · Background → Effect Mask · Merge → Effect Mask · another mask node
For a colored plate, feed Rectangle into Background's Effect Mask; Rectangle itself does not generate RGB color.
- Mask Output
- A grayscale mask used by Effect Mask inputs.
Processing order
- Rectangle calculates its own geometric shape.
- If another mask is connected, Paint Mode determines how the masks combine.
- Level / Soft Edge / Border Width / Invert define the final coverage.
- Mask Output feeds a blue effect-mask input or another mask node.
Plate with an oval cutout
Ellipse → Rectangle.Effect Mask → Background.Effect Mask
Both nodes remain masks; visible color is generated by the downstream Background node.
Rectangle is a mask generator, not an image generator. Its input combines masks; its output carries single-channel coverage.
Parameters
Rectangle · Inspector reference
Rectangle is a geometric mask. Treat shape, edge treatment, mask logic and output image settings as separate layers.
- Shape
- Size and position
- Edge
- Soft Edge / Border
- Mask
- Invert / Level
- Image
- Matte frame size
Controls · Shape
Center, Width, Height, Angle and Corner Radius define the rectangle geometry.
- Center
Controls > CenterPosition of the entire shape. On a standard canvas 0.5/0.5 is the center. Moving the whole shape is not the same as editing Polygon points and is not tracking. Example coordinates are local and must match the canvas.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Width
Controls > WidthHorizontal extent. Inspect the shape on the intended canvas. Equal numeric Ellipse Width/Height are not used as a universal circle guarantee: check pixel aspect, viewer zoom and resulting proportions.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Height
Controls > HeightVertical extent. Changes the region geometry, not image resolution. For a shape attached to text or an object align canvas and position before adjusting width and height.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Angle
Controls > AngleShape rotation around its center. Rotating the stencil does not rotate the original image. To rotate a colored panel together with its text, place Transform after the group composite.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Corner Radius
Controls > Corner RadiusCorner rounding. Adjust against the visible contour after setting dimensions. Heavy rounding may reduce the usable text area; inspect at delivery size.
Check / distinguish: Change only this control from its default state and compare before/after.
Border · Edge
Soft Edge, Border Width and Solid define fill and edge character.
- Soft Edge
Border > Soft EdgeFeathering of the stencil boundary. Changes the black–gray–white matte transition, not the image by itself. Graphics may require hard edges; roto edges should match the source. Do not hide a misplaced contour with feathering.
Check / distinguish: Inspect the edge at 100% Viewer scale and at the intended output size.
- Border Width
Border > Border WidthOutline width in conjunction with Solid and border style. Do not treat this control alone as “make a frame”. Inspect the outline matte in monochrome first, then feed Background.Effect Mask. Add glow to the colored image branch when needed.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Solid
Border > SolidFilled area versus an outline. For an outline disable Solid and set a nonzero Border Width. This does not color or illuminate the line: a masked Background creates the color image. Treat an open Polygon and a closed shape separately.
Check / distinguish: Change only this control from its default state and compare before/after.
- Border Style
Border > Border StyleDefines how the border is positioned relative to the contour when using an outline rather than a solid fill.
Check / distinguish: Compare the alpha edge at the same Border Width.
Mask · Mask logic
Invert, Level, Paint Mode, view controls and filtering change how the matte behaves.
- Invert
Mask > InvertCoverage inversion. For a standalone mask this swaps inside and outside. With chained masks inspect the receiving tool’s output; the order of inversion, Level and combining cannot be replaced by “toggle it if it fails”.
Check / distinguish: Toggle Invert and inspect the coverage in the Alpha Viewer.
- Level
Mask > LevelLevel of the scalar matte, not a node bypass switch. For a standalone uninverted mask, Level 0 gives black coverage, suppressing the connected operation in that area. Disconnecting the wire may instead apply the operation across the whole frame. Check inversion and Paint Mode separately.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Paint Mode
Mask > Paint ModeCombining rule for the incoming matte and the local shape. Set this on the receiving mask when another matte enters its mask input. Check Subtract and Multiply on simple binary shapes for cut-outs and intersections. Node positions on screen do not determine subtraction order. Verify option labels and placement in the target build.
Check / distinguish: Test one stroke and several adjacent frames before applying the workflow broadly.
- Show View Controls
Mask > Show View ControlsVisibility of viewer editing handles. Select the node and display the intended image in the Viewer. Hiding handles neither deletes the mask nor disables its effect. Hide guides temporarily when judging the edge.
Check / distinguish: Change only this control from its default state and compare before/after.
- Filter
Mask > FilterFilter shape used when softening the matte edge. Compare Fast Gaussian, Gaussian and other available modes on enlarged edges and in motion. There is no universal ranking in which Gaussian is always better. Verify the available choices in the installed Inspector.
Check / distinguish: Inspect the edge at 100% Viewer scale and at the intended output size.
- Box / Bartlett / Multi-box
Mask > FilterMatte filtering variants with different edge-averaging behavior.
Check / distinguish: Compare the same Soft Edge around a hard corner.
- Gaussian / Fast Gaussian
Mask > FilterGaussian variants produce smooth edge blur; Fast Gaussian targets faster interactive evaluation.
Check / distinguish: Inspect the edge at target resolution and while the mask moves.
Image · Output image
Output Size and Clipping Mode define the technical image frame of the mask.
- Output Size
Image > Output SizeRaster dimensions used to evaluate the matte. Match resolution, pixel aspect and composition context to the image branch. Automatic size inheritance has not been verified for every graph; if a matte shifts or stretches compare source, mask and output sizes first.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Clipping Mode
Image > Clipping ModeClipping of the evaluated/output mask area. This is neither Paint Mode nor final-video cropping. Check the available modes and exact behavior in the target build, especially when an off-frame mask is transformed downstream.
Check / distinguish: Check result resolution and bounds separately from visual shape.
Before adjusting the node
- Check Center/Width/Height separately from Soft Edge.
- Solid and Border Width change shape structure, not overall transparency.
- Evaluate Invert in the alpha channel.
- Level reduces matte strength but is not equivalent to bypassing the effect.
- If the shape clips unexpectedly, inspect Output Size and Clipping Mode.
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
Reveal a title without cutting the source frame
Animate a rectangular window over a stationary title. Separate stencil motion from motion of the text itself.
Starting conditions
DaVinci Resolve / Fusion 20 / 21 — verify in your installed build · Native 2D tools; no third-party plug-ins · Windows / macOS / Linux: installation and playback were not tested here
1920 × 1080 · 24 fps · 96 frames · Use consistent color management across image branches; masks represent scalar coverage. Frame numbers are local: 0–95.
- Create a four-second Fusion Composition at 24 fps; translate local frame numbers when the timeline starts elsewhere.
- Numeric settings are authored start points; inspect shape, alpha and intermediate frames, not only the final image.
Source material
- PLATE
The opaque 1920×1080 test plate from CORE-01; a background for checking the composite.
An opaque image of the same dimensions can replace it.
Nodes and connections
PLATE— Plate · MediaInTITLE— Title · TextPlusWINDOW— RevealWindow · RectangleMaskCOMPOSITE— Composite · MergeOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Plate (PLATE)Output | Composite (COMPOSITE)Background | image |
Title (TITLE)Output | Composite (COMPOSITE)Foreground | image |
RevealWindow (WINDOW)Mask | Composite (COMPOSITE)EffectMask | mask |
Composite (COMPOSITE)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- Title (TITLE) / Text / Styled Text
"MASK / REVEAL"Choose an installed font; no specific external font is required.
- Title (TITLE) / Text / Size
0.075Reduce the size if the line extends beyond the central 60% of the frame.
- Title (TITLE) / Layout / Center
[0.5,0.5]Keep the title stationary throughout.
- RevealWindow (WINDOW) / Controls / Width / Height
[0.75,0.3]The window is wider and taller than the text.
- RevealWindow (WINDOW) / Controls / Solid / Invert / Level
"On / Off / 1"White allows the title composite; black leaves only the plate.
- RevealWindow (WINDOW) / Controls / Soft Edge
0Start with a hard edge; add feathering after checking the path.
- RevealWindow (WINDOW) / Controls / Center
[-0.5,0.5]· frame 0The entire mask starts off frame to the left.
- RevealWindow (WINDOW) / Controls / Center
[0.5,0.5]· frame 35At frame 35 the window exposes the line, then holds.
Reproduce the example
- Add the test plate, Text+, Rectangle, Merge and MediaOut. Set the text and its position.
A separate plate makes it clear which branch the mask affects.
Check: Before connecting the mask, Merge shows the title over the unchanged plate.
- Connect Rectangle specifically to the Merge Effect Mask.
The title composite is masked, not the original image.
Check: Outside the rectangle the plate remains; it does not become transparent.
- At local frame 0 enable a Rectangle Center keyframe; at frame 35 set the final Center.
Changing a value once without an initial key does not create motion.
Check: Center keys are present at 0 and 35; Text+ is not animated.
- Set linear Center interpolation in Spline and inspect frames 0, 18 and 35.
Linear motion is easy to diagnose; apply easing later.
Check: At frame 18 part of the line is revealed; the plate does not move.
- Inspect Rectangle, Merge and MediaOut separately, then check frame 95.
A white mask and an opaque composite alpha mean different things.
Check: Rectangle moves; the final frame stays opaque and the title holds after 35.
Expected result
- MediaOut (OUT) · frame 0
Only the test plate is visible.
Alpha: Alpha is one across the frame because the plate is opaque.
- MediaOut (OUT) · frame 35
The line is fully visible; the letters did not move.
Alpha: The mask does not cut holes in the plate alpha.
When the result differs
- The mask is visible but the result does not change.
Cause: The source is being viewed or the wire is not connected to the blue input.
Correction: View MediaOut and verify the named ports in the connection list.
- A monochrome stencil appears instead of the colored result.
Cause: The mask is being used as the image, or its output is being viewed rather than the composite.
Correction: For colored graphics connect the mask to Background.Effect Mask, then connect the Background image to Merge.Foreground.
- The entire title moves with the window.
Cause: The keys were added to Text+ Layout or to an image Transform.
Correction: Remove the unintended keys; animate Rectangle Center only.
Files for the example
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 20–22: Merge ports and mask behavior; pp. 44–49: drawing/animating Polygon; p. 149: Rectangle → Background. This supports the basic wiring, NOT every setting below.
A rectangular panel with an oval cut-out
Build a compound mask: an incoming rectangle minus the receiving Ellipse shape. Check mask order and Paint Mode explicitly.
Starting conditions
DaVinci Resolve / Fusion 20 / 21 — verify in your installed build · Native 2D tools; no third-party plug-ins · Windows / macOS / Linux: installation and playback were not tested here
1920 × 1080 · 24 fps · 96 frames · Use consistent color management across image branches; masks represent scalar coverage. Frame numbers are local: 0–95.
- Create a four-second Fusion Composition at 24 fps; translate local frame numbers when the timeline starts elsewhere.
- Numeric settings are authored start points; inspect shape, alpha and intermediate frames, not only the final image.
Source material
- PLATE
The opaque 1920×1080 test plate from CORE-01; a background for checking the composite.
An opaque image of the same dimensions can replace it.
Nodes and connections
PLATE— Plate · MediaInFILL— Fill · BackgroundCOMPOSITE— Composite · MergeOUT— MediaOut · MediaOutBASE_MASK— BaseRectangle · RectangleMaskCUTOUT— CutoutEllipse · EllipseMask
| Source | Destination | Data |
|---|---|---|
Plate (PLATE)Output | Composite (COMPOSITE)Background | image |
Fill (FILL)Output | Composite (COMPOSITE)Foreground | image |
Composite (COMPOSITE)Output | MediaOut (OUT)Input | image |
BaseRectangle (BASE_MASK)Mask | CutoutEllipse (CUTOUT)EffectMask | mask |
CutoutEllipse (CUTOUT)Mask | Fill (FILL)EffectMask | mask |
Graph output: MediaOut (OUT)
Parameter values
- Fill (FILL) / Image / Width / Height
[1920,1080]Use one canvas size for the plate, mask and result; override automatic sizing only if it gives a different resolution.
- Fill (FILL) / Controls / Color / Alpha
[0.12,0.65,0.8,1]An opaque fill makes the mask visible. RGB numbers are starting values, not a color-management reference.
- BaseRectangle (BASE_MASK) / Controls / Center / Width / Height
"0.5, 0.5 / 0.72 / 0.44"This is the incoming white area from which to subtract.
- BaseRectangle (BASE_MASK) / Controls / Solid / Invert / Level
"On / Off / 1"First check hard binary shapes.
- CutoutEllipse (CUTOUT) / Controls / Center / Width / Height
"0.62, 0.5 / 0.22 / 0.24"Keep the hole entirely inside the panel. It need not be a true circle.
- CutoutEllipse (CUTOUT) / Controls / Paint Mode
"Subtract"Set the mode on the receiving mask. Verify a white rectangle with a black hole, not the opposite difference.
- CutoutEllipse (CUTOUT) / Controls / Solid / Invert / Soft Edge / Level
"On / Off / 0 / 1"Leave inversion off so subtraction can be inspected independently.
Reproduce the example
- Create Rectangle and view it on its own.
Begin with an unambiguous base stencil.
Check: A white rectangle is surrounded by black.
- Add an Ellipse inside the rectangle and wire Rectangle.Mask → Ellipse.Effect Mask.
The receiving Ellipse builds the compound mask.
Check: Ellipse has an incoming wire; changing the mode makes the two shapes distinguishable.
- Select Subtract on Ellipse. If the control is located elsewhere, find Paint Mode in your build’s Inspector.
The mode and connection order matter, not where the nodes are drawn.
Check: The hole is black and the remaining panel is white. If reversed, fix the order before proceeding.
- Connect the Ellipse result to the blue input of an opaque Background.
The mask defines coverage; Background defines color and image size.
Check: Background is transparent both inside the hole and outside the panel.
- Merge the colored panel over the test plate and inspect alpha at both stages.
The cut-out panel alpha differs from the final composite alpha.
Check: The original plate shows through the hole; the final frame is opaque.
Expected result
- CutoutEllipse (CUTOUT) · frame 0
A rectangle with a black oval cut-out.
Alpha: Inspect the scalar matte in monochrome view.
- MediaOut (OUT) · frame 0
A colored panel reveals the test plate through its hole.
Alpha: Fill has transparency; OUT over the opaque plate does not.
When the result differs
- The mask is visible but the result does not change.
Cause: The source is being viewed or the wire is not connected to the blue input.
Correction: View MediaOut and verify the named ports in the connection list.
- A monochrome stencil appears instead of the colored result.
Cause: The mask is being used as the image, or its output is being viewed rather than the composite.
Correction: For colored graphics connect the mask to Background.Effect Mask, then connect the Background image to Merge.Foreground.
- Most of the panel disappears or only the oval remains.
Cause: Masks are reversed, Merge/Multiply is selected instead of Subtract, or inversion is enabled.
Correction: View the receiving Ellipse alone; restore Rectangle → Ellipse and verify a black hole before connecting Background.
Files for the example
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 20–22: Merge ports and mask behavior; pp. 44–49: drawing/animating Polygon; p. 149: Rectangle → Background. This supports the basic wiring, NOT every setting below. Paint Mode and subtraction direction require target-build confirmation; the matte checkpoint is mandatory before compositing.
Other outlines from the article
Lower-third plate
Rectangle shapes a colored Background before it is merged.
- Rectangle → Background mask
- Background
- Merge
Local blur
Rectangle restricts Blur to a selected region.
- MediaIn
- Blur + Rectangle
Mistakes
- Treating Level 0 as equivalent to disconnecting or bypassing the mask.
- Masking the source plate instead of the title composite.
- Expecting a colored frame from a scalar outline without Background.
- Changing Paint Mode on the source rather than receiving mask.
- Animating Text+ instead of the reveal window.
Tips
- For a reveal keep the title stationary and animate only the stencil.
- Before compositing a compound matte check the white body, black hole and outside region separately.
- Keep an unfeathered baseline so geometry errors remain visible.
Workflow order
- Create the shape and check canvas dimensions and pixel aspect.
- Choose the task: a color panel alpha or a Merge/effect processing area.
- Connect the matte to the blue input and inspect it separately.
- Set the shape, then feathering and receiving-operation intensity.
- For animation set starting and ending keys only on the intended parameter.
- For chained masks set Paint Mode on the receiver and inspect the intermediate matte.
