FUSION · FULL ARTICLE
Channel Booleans
Combines, copies and mathematically remaps RGBA channels between foreground and background images.
Overview
Channel Booleans performs mathematical and logical operations on image channels. The Background input supplies the base channels being modified, while the Foreground input can provide alternate source channels.
Operation Type defines the math, and the To Red/Green/Blue/Alpha mappings define which source channel participates in each output channel. This makes the node useful for replacing alpha without touching RGB, building technical mattes and repairing channel layouts.
Copy is the safest starting point when the task is simple channel routing. Add, Subtract, Multiply, Maximum, Minimum and logical operations should be used deliberately because gray values are continuous and can produce results very different from a visual Merge.
Auxiliary channels such as depth, normals, vectors, position or IDs only exist when the source actually carries those passes. Enabling Aux does not create missing data.
When to use it
- Copy alpha from one image to another
- Build a matte from channel data
- Multiply or add technical passes
- Combine RGB from one source with alpha from another
- Create difference or minimum/maximum channel operations
- Repair channel layouts in imported assets
Inputs & outputs
Channel Booleans does not composite layers; it rebuilds channels from two sources
The Foreground and Background names can be misleading. Unlike Merge, these inputs primarily act as channel banks for Copy/Add/Multiply operations and for choosing the source of each output channel.
Reads channels from Background and Foreground, applies the selected operation and writes the result into output RGBA/AUX channels.
Inputs
- Background
Base channel set
Receives: The primary RGBA/AUX image whose channels often form the base of the output.
Inside the node: Its channels are available as output sources and as one operand of the selected mathematical operation.
Typical sources: MediaIn · EXR / multi-channel source · Merge · technical pass
Background here does not automatically mean the visually lower layer as it does in Merge.
- Foreground
Second channel set / operand
Receives: A second image or pass whose channels should be copied or used mathematically.
Inside the node: Foreground provides channels for Copy, Add, Multiply, Difference and other operations relative to Background/constants.
Typical sources: matte represented as image data · EXR pass · another MediaIn · technical map
For a normal visible composite, use Merge. Channel Booleans is meant for channel routing and math.
- Effect Mask
Where channel math is allowed
Receives: A single-channel mask restricting Channel Booleans spatially.
Inside the node: The channel rebuild is limited to the permitted area according to the node's masking behavior.
Typical sources: Rectangle · Ellipse · Polygon · Bitmap
Effect Mask is not automatically a channel source for Alpha. To copy it into Alpha, feed suitable image/channel data through the appropriate source input.
Outputs and destination
Output
An image with reassigned or mathematically calculated RGBA/AUX channels.
Next step: Bitmap · MatteControl · Merge · Displace · another technical/channel node
After alpha operations, inspect premultiplication and RGB separately; correct alpha does not guarantee correct color channels.
- Output
- Image containing the calculated channel result.
Processing order
- Background and Foreground provide source channel sets.
- Each output Red / Green / Blue / Alpha selects a source channel and Operation.
- Channel Booleans executes Copy / Add / Multiply / Difference or another selected math operation.
- An optional Effect Mask limits that channel operation spatially.
- Output carries the rebuilt image/channels downstream.
RGB from Background, alpha from another source
Main image → Background · Alpha source → Foreground → Channel Booleans → Merge
Channel Booleans does not visually place Foreground over Background; it uses Foreground channels as sources for rebuilding the output.
Foreground/Background are channel sources here, not editing layers. Decide which channel should go where before choosing the Operation.
Parameters
Channel Booleans · Inspector reference
Channel Booleans remaps and computes channels. A safe workflow is Operation first, RGBA source mapping second, auxiliary channels last.
- Operation
- Copy / Add / Multiply…
- RGBA
- Where channels go
- Sources
- FG / BG / HLS
- Aux
- Z / ID / UV / vectors
Operation · Operation
Operation determines the mathematical relationship between foreground and background channel values.
- Operation
Operation > OperationChooses the channel math operation. Common choices include Copy, Add, Subtract, Multiply, Divide, Maximum, Minimum and Difference.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Copy
Operation > Operation: CopyUses the Copy operation. Copies the selected source channel into the chosen destination channel without additional math. This is the safest mode for replacing alpha or rerouting one channel.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Add
Operation > Operation: AddUses the Add operation. Adds source and destination channel values. Values can exceed the normal display range, so inspect the technical channel and downstream clamping rather than judging only the composite.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Subtract
Operation > Operation: SubtractUses the Subtract operation. Subtracts one channel from another. It is useful for technical mattes and differences but the result depends on input order and can create negative values in floating-point flows.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: And / Or / Exclusive Or
Operation > Operation: And / Or / Exclusive OrUses the And / Or / Exclusive Or operation. Logical channel operations intended for mask-like or technical data. Their behavior differs from smooth continuous Multiply/Maximum operations, so test them on the actual channel values.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Multiply
Operation > Operation: MultiplyUses the Multiply operation. Multiplies channel values. With 0–1 mattes it behaves like a soft intersection: only regions bright in both maps stay bright, and partial gray values are multiplied continuously.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Divide
Operation > Operation: DivideUses the Divide operation. Divides channel values and can strongly amplify small denominator values. Use it only when the input range is understood and inspect for extreme/invalid results downstream.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Maximum / Minimum
Operation > Operation: Maximum / MinimumUses the Maximum / Minimum operation. Maximum chooses the brighter value from the two compared channels; Minimum chooses the darker. They are useful for union/intersection-style soft matte operations without binarizing gray values.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Negative
Operation > Operation: NegativeUses the Negative operation. Inverts the selected source contribution. Use it deliberately for reversed matte/channel logic rather than as a substitute for understanding which source channel is being routed.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Solid
Operation > Operation: SolidUses the Solid operation. Writes a full-value channel. A common technical use is forcing an alpha channel fully opaque when that is explicitly required.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Clear
Operation > Operation: ClearUses the Clear operation. Writes zero to the destination channel. Clearing Alpha makes the result transparent, so inspect the affected channel before assuming the image has disappeared for another reason.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Difference
Operation > Operation: DifferenceUses the Difference operation. Computes channel difference and is useful for comparison or difference mattes. The result is technical data, not a normal layer blend.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Operation: Signed Add
Operation > Operation: Signed AddUses the Signed Add operation. Adds values relative to a mid-gray neutral point. It is intended for signed technical data such as embossed/displacement-like maps rather than ordinary color mixing.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
RGBA Output · RGBA output
To Red/Green/Blue/Alpha choose what each result channel receives.
- To Red
RGBA Output > To RedSelects what is written to the output red channel. Defines the source used to construct output Red under the selected Operation. Keep Red mapped from Background when replacing only Alpha.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- To Green
RGBA Output > To GreenSelects what is written to the output green channel. Defines the source used to construct output Green. Treat it independently from the other channels so a one-channel repair does not unintentionally alter RGB.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- To Blue
RGBA Output > To BlueSelects what is written to the output blue channel. Defines the source used to construct output Blue. Explicit BG mapping is a safe choice when only another destination channel should change.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- To Alpha
RGBA Output > To AlphaSelects what is written to the output alpha channel. Defines the source used to construct output Alpha. This is the critical control for replacing transparency from a matte or another image channel.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
Channel Sources · Channel sources
Foreground/background RGB, alpha and HLS-derived sources supply data to output assignments.
- Channel Source: Red / Green / Blue / Alpha FG
Channel Sources > Channel Source: Red / Green / Blue / Alpha FGProvides separate controls for the red, green, blue and alpha channels. Selects RGBA values from the Foreground input as sources for the destination channel operation. Foreground is typically the donor map/channel branch.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Channel Source: Red / Green / Blue / Alpha BG
Channel Sources > Channel Source: Red / Green / Blue / Alpha BGProvides separate controls for the red, green, blue and alpha channels. Selects RGBA values from the Background input. Background is the base image whose channels are being rebuilt by Channel Booleans.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Channel Source: Hue / Lightness / Saturation
Channel Sources > Channel Source: Hue / Lightness / SaturationSets Channel Source to Hue / Lightness / Saturation. Allows HLS-derived values to act as channel sources. These are technical scalar values and should be inspected as maps when used for mattes.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- Do Nothing
Channel Sources > Do NothingLeaves the selected destination channel unchanged. Leaves the selected destination channel unchanged. Use it when only one or two channels require repair and the rest should remain as they arrived.
Check / distinguish: Change only this control from its default state and compare before/after.
Aux Channels · Auxiliary channels
Extra channels expose Z, IDs, UV, normals, vectors, positions and disparity for specialized pipelines.
- Aux: Enable Extra Channels
Aux Channels > Aux: Enable Extra ChannelsSets Aux to Enable Extra Channels. Enables routing of auxiliary channels carried by suitable sources such as EXR passes. It does not generate depth, IDs, normals or vectors if the source lacks them.
Check / distinguish: Isolate the target channel in Viewer and change one operation at a time.
- To Z Buffer
Aux Channels > To Z BufferRoutes the selected source channel or value into the Z-buffer output. Routes selected source depth data into the Z-buffer destination. The source must actually contain valid depth information for downstream depth effects to work.
Check / distinguish: Change only this control from its default state and compare before/after.
- To Z Coverage
Aux Channels > To Z CoverageWrites Z-buffer coverage data to the selected destination. Routes coverage associated with depth data. Its meaning depends on the originating renderer/pass and should be kept with matching Z data.
Check / distinguish: Change only this control from its default state and compare before/after.
- To Object ID
Aux Channels > To Object IDAssigns the Object ID written to the render passes. Routes Object ID data used to isolate rendered objects. IDs are technical pass values, not automatically generated object selections.
Check / distinguish: Change only this control from its default state and compare before/after.
- To Material ID
Aux Channels > To Material IDAssigns the Material ID written to the render passes. Routes Material ID data for isolating rendered materials in downstream compositing.
Check / distinguish: Change only this control from its default state and compare before/after.
- To U Texture / To V Texture
Aux Channels > To U Texture / To V TextureRoutes UV texture-coordinate data to the selected destination channel. Routes UV texture-coordinate components. These channels are useful only when an upstream render/import actually contains compatible UV data.
Check / distinguish: Change only this control from its default state and compare before/after.
- To X/Y/Z Normal
Aux Channels > To X/Y/Z NormalRoutes the X, Y and Z surface-normal components to the selected output channels. Routes surface normal components. Normal data can drive directional relighting or masks but must remain numerically intact.
Check / distinguish: Change only this control from its default state and compare before/after.
- To BG Red / Green / Blue / Alpha
Aux Channels > To BG Red / Green / Blue / AlphaProvides separate controls for the red, green, blue and alpha channels. Provides destination mappings for auxiliary/background RGBA-related data in workflows that expose additional channel sets.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- To X/Y Vector
Aux Channels > To X/Y VectorRoutes the X and Y motion-vector components to the selected output channels. Routes forward motion-vector components for downstream vector motion blur or retiming workflows when valid vector passes are present.
Check / distinguish: Change only this control from its default state and compare before/after.
- To X/Y BackVector
Aux Channels > To X/Y BackVectorRoutes the X and Y backward-motion-vector components to the selected output channels. Routes backward motion-vector components. Use only with passes whose direction/convention matches the downstream tool.
Check / distinguish: Change only this control from its default state and compare before/after.
- To X/Y/Z Position
Aux Channels > To X/Y/Z PositionRoutes the X, Y and Z position-pass components to the selected output channels. Routes world/position pass components. These values are coordinate data and should not be treated as display color without intentional remapping.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- To X/Y Disparity
Aux Channels > To X/Y DisparityRoutes the X and Y stereo-disparity components to the selected output channels. Routes stereo disparity components when those passes exist. Ordinary 2D video does not acquire disparity data merely by enabling this option.
Check / distinguish: Change only this control from its default state and compare before/after.
Before adjusting the node
- Before complex math, verify Copy first as a control state.
- Configure one output channel at a time and inspect it separately.
- Do not swap FG and BG sources for Multiply, Difference and Subtract.
- Inspect Alpha separately from RGB, especially when replacing or multiplying mattes.
- Touch auxiliary channels only when you know which downstream tool consumes them.
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
Keep RGB from one source and alpha from another
Preserve the Background RGB while copying the red channel of a separate grayscale Foreground map into output Alpha with Operation=Copy.
Starting conditions
DaVinci Resolve / Fusion 20 / 21 — verify in your installed build · Built-in Fusion tools only; no third-party plugins · Windows / macOS / Linux: live execution is not verified in this package
1920 × 1080 · 24 fps · 96 frames · Keep all image branches under the same project color-management setup. Mask streams are scalar coverage, not RGBA pictures.
- Numeric values are authored starting points. Verify node geometry, alpha and intermediate states instead of trusting only the final image.
Source material
- SOURCE
Opaque color source.
Replace with any RGB/RGBA image whose color should be preserved.
- MATTE
Soft grayscale map with equal RGB channels.
Replace with any matte map whose channel should become alpha.
- BG
Contrasting background used to inspect the new transparency.
Replace with any opaque background.
Nodes and connections
SOURCE— RGBSource · MediaInMATTE— AlphaMap · MediaInCB— CopyAlpha · ChannelBooleansBG— Background · MediaInMERGE— Composite · MergeOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
RGBSource (SOURCE)Output | CopyAlpha (CB)Background | image |
AlphaMap (MATTE)Output | CopyAlpha (CB)Foreground | image |
CopyAlpha (CB)Output | Composite (MERGE)Foreground | image |
Background (BG)Output | Composite (MERGE)Background | image |
Composite (MERGE)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- CopyAlpha (CB) / Color / Operation Type
"Copy"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- CopyAlpha (CB) / Color / To Red
"Red BG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- CopyAlpha (CB) / Color / To Green
"Green BG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- CopyAlpha (CB) / Color / To Blue
"Blue BG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- CopyAlpha (CB) / Color / To Alpha
"Red FG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
Reproduce the example
- Connect the color image to ChannelBooleans Background and the grayscale map to Foreground.
Background is the base image whose channels are modified; Foreground provides alternate channels for the math operation.
Check: Both sources are visible separately and connected to the intended ports.
- Set Operation Type to Copy. Map output RGB from BG and To Alpha from Red FG.
This preserves source color while replacing transparency from the grayscale map instead of visually merging the images.
Check: RGB matches SOURCE while Alpha matches the soft matte.
- View ChannelBooleans alternately in RGB and Alpha.
Channel mistakes are easy to miss in a normal RGBA Viewer.
Check: Alpha is bright in the center of the matte and falls off smoothly; RGB still matches SOURCE.
- Use ChannelBooleans as Merge Foreground over the training background.
The background makes the new transparency obvious.
Check: SOURCE is visible only where the matte is bright, with a soft boundary.
- Temporarily switch To Alpha to Alpha BG, then return to Red FG.
This demonstrates that channel mapping, not Merge, controls transparency.
Check: Alpha BG makes the source opaque; Red FG restores the soft matte.
Expected result
- CopyAlpha (CB) · frame 0
RGB remains the colorful source.
Alpha: Alpha follows the red channel of the grayscale map.
- MediaOut (OUT) · frame 0
The color source appears over the background according to the soft matte.
Alpha: Final composite is opaque because Merge has an opaque Background.
When the result differs
- The color image becomes grayscale.
Cause: To Red/Green/Blue are mapped from the Foreground matte instead of Background source.
Correction: Restore RGB mappings to Red/Green/Blue BG.
- The new alpha does not appear.
Cause: To Alpha uses Alpha FG, but the matte file itself has opaque alpha.
Correction: For this fixture choose Red FG and inspect Alpha.
- The foreground disappears.
Cause: Operation/channel source is wrong or the matte is black.
Correction: Return to Operation=Copy and inspect Red FG by itself.
Files for the example
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
General 2D Fusion node and masking workflow reference; NOT every Inspector parameter in these exercises.
- Blackmagic Design — Fusion Tool Reference: Channel Booleans
Channel Boolean, Color Tools p. 107. Confirms Background/Foreground channel math, Operation Type and To Red/Green/Blue/Alpha mapping; historical tool reference, NOT a Resolve 21 UI validation.
Intersect two grayscale maps with Multiply
Multiply two soft grayscale maps so the technical output stays bright only where both inputs have nonzero values.
Starting conditions
DaVinci Resolve / Fusion 20 / 21 — verify in your installed build · Built-in Fusion tools only; no third-party plugins · Windows / macOS / Linux: live execution is not verified in this package
1920 × 1080 · 24 fps · 96 frames · Keep all image branches under the same project color-management setup. Mask streams are scalar coverage, not RGBA pictures.
- Numeric values are authored starting points. Verify node geometry, alpha and intermediate states instead of trusting only the final image.
Source material
- A
Soft circular grayscale map.
Replace with any first 0–1 map.
- B
Soft rounded-rectangle grayscale map.
Replace with any second 0–1 map.
Nodes and connections
A— MatteA · MediaInB— MatteB · MediaInCB— MultiplyMattes · ChannelBooleansOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
MatteA (A)Output | MultiplyMattes (CB)Background | image |
MatteB (B)Output | MultiplyMattes (CB)Foreground | image |
MultiplyMattes (CB)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- MultiplyMattes (CB) / Color / Operation Type
"Multiply"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- MultiplyMattes (CB) / Color / To Red
"Red FG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- MultiplyMattes (CB) / Color / To Green
"Green FG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- MultiplyMattes (CB) / Color / To Blue
"Blue FG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- MultiplyMattes (CB) / Color / To Alpha
"Alpha BG"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
Reproduce the example
- Connect Matte A to Background and Matte B to Foreground of ChannelBooleans.
The operation combines base BG channels with the selected FG channels.
Check: The two source maps are visible separately and have different shapes.
- Choose Multiply and map R/G/B outputs from the matching FG channels.
Each output grayscale channel becomes the product of the corresponding BG and FG channel values.
Check: The overlap stays bright while areas present in only one map become dark.
- Compare A, B and CB in the red Viewer channel.
For grayscale fixtures all RGB channels are equal, so Red is a convenient control map.
Check: CB is never brighter than both sources and peaks in their overlap.
- Inspect soft boundaries where the shapes partially overlap.
Multiply combines continuous 0–1 values rather than applying a binary threshold.
Check: The transition stays smooth and matches the product of the two gradients.
- Temporarily switch Operation to Maximum, then return to Multiply.
Maximum demonstrates a union-like bright map and makes the Multiply intersection easier to understand.
Check: After returning to Multiply, mainly the common area stays bright.
Expected result
- MediaOut (OUT) · frame 0
Output is a grayscale intersection map.
Alpha: Alpha remains 1 for easy viewing of the technical RGB map.
- MultiplyMattes (CB) · frame 0
Fully overlapping areas approach 1 and areas outside both maps approach 0.
Alpha: Alpha is not the result channel in this exercise.
When the result differs
- Result looks only like Matte B.
Cause: Operation is still Copy or a wrong source mapping is selected.
Correction: Set Multiply and use matching FG channels for RGB.
- The map becomes transparent and hard to judge.
Cause: To Alpha was also replaced or multiplied.
Correction: For this exercise keep To Alpha=Alpha BG and inspect RGB.
- You expected a hard boolean AND but see gray edges.
Cause: Multiply works on continuous 0–1 values and does not binarize maps.
Correction: That is expected; prepare binary mattes first if hard logical behavior is required.
Files for the example
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
General 2D Fusion node and masking workflow reference; NOT every Inspector parameter in these exercises.
- Blackmagic Design — Fusion Tool Reference: Channel Booleans
Channel Boolean, Color Tools p. 107. Confirms Background/Foreground channel math, Operation Type and To Red/Green/Blue/Alpha mapping; historical tool reference, NOT a Resolve 21 UI validation.
Other outlines from the article
Replace alpha
Keep RGB from the foreground while taking alpha from a matte branch.
- Foreground RGB
- Matte
- Channel Booleans
- Merge
Technical mask combination
Two mattes are combined using Maximum or Multiply.
- Matte A
- Matte B
- Channel Booleans
Mistakes
- Treating Copy like a visual Merge instead of channel routing.
- Swapping Foreground and Background and then copying from the wrong channel family.
- Changing all RGBA mappings when only Alpha needed replacement.
- Using Add/Multiply without checking numeric ranges and producing clipped or unexpectedly dark maps.
- Enabling Aux and expecting Z/Normal/Vector data to appear in ordinary video that never contained those channels.
- Judging only the composite RGB view instead of checking the affected channel directly.
Tips
- Name technical nodes by purpose, such as CopyAlpha or MultiplyMattes.
- For alpha replacement, preserve RGB from Background explicitly and change only To Alpha.
- Use Viewer channel selection to inspect R/G/B/A independently after each mapping change.
- Keep channel repair close to the branch it fixes so later compositing remains readable.
Workflow order
- Decide exactly which output channel must change and which channels must stay untouched.
- Connect the base image to Background and the additional map/channel source to Foreground.
- For straightforward routing start with Operation=Copy and keep untouched output channels mapped to their BG sources.
- Set To Red/Green/Blue/Alpha one at a time and inspect the corresponding Viewer channel after each change.
- Use Add/Multiply/Minimum/Maximum only when the numeric range of the input maps is understood; gray values remain continuous.
- Enable Aux/EXR channel routing only when the source truly contains those passes and verify the downstream consumer separately.
