Mattes and Keying
While a "Mask" usually refers to a shape you manually draw (like a polygon), a Matte usually refers to transparency information generated mathematically from the image itself.
The most common example of generating a matte is Chroma Keying (removing a green screen).
Generating a Matte (Green Screen Keying)
When you key out a green screen, the software analyzes the color green and changes its Alpha channel to 0.0. This generates a black-and-white Matte, where white represents opaque areas (the actor) and black represents transparent areas (the green screen).
To pull a professional key in Oraphim:
- Ensure your green screen footage is piped into a DeltaKeyer node.
- Select the DeltaKeyer node.
- In the Inspector, click and drag the eyedropper icon from the "Background Color" swatch directly onto the green screen in the Viewer.
- The green screen will vanish, revealing a checkerboard pattern (transparency).
Refining the Matte
A one-click key is rarely perfect. You must inspect the matte to fix holes and edges.
- While selecting the DeltaKeyer, press
Mon your keyboard, or select "Matte" from the view mode dropdown in the top-left of the Viewer. - Your viewer will change from the full-color image to a high-contrast Black and White image.
- Ensure the actor is solid, bright white (no gray holes).
- Ensure the background is solid, pitch black (no gray static).
- In the Inspector, navigate to the Matte tab.
- Adjust the Threshold Low slider to crush gray static in the background into pure black.
- Adjust the Threshold High slider to boost gray holes in the actor into pure white.
- Once the matte is solid, switch the viewer back to the color view to check the edges.
Using External Mattes (Luma Mattes)
Sometimes you receive a matte from an external 3D program. For example, a 3D artist might render a spaceship as an RGB color pass, and provide a separate black-and-white video file representing the matte.
To use an external matte:
- Bring the Color file and the Black-and-White file into the node graph using two
MediaInnodes. - Add a Channel Booleans node to the Color pipe.
- Connect the Black-and-White file into the Foreground (Green) input of the Channel Booleans node.
- In the Inspector for the Channel Booleans, set:
- Operation: Copy
- To Alpha: Foreground Luminance
- The Channel Booleans node has now successfully injected the black-and-white data into the alpha channel of the color image, cutting out the spaceship perfectly.