Keying is defining transparency by a particular color value or luminance value in an image. When you key out a value, all pixels that have colors or luminance values similar to that value become transparent. Keying makes it easy to replace a background, which is especially useful when you work with objects too complex to mask easily. When you place a keyed layer over another layer, the result forms a composite, in which the background is visible wherever the keyed layer is transparent.
After Effects includes several built-in keying effects, as well as the Academy Award-winning Keylight effect, which excels at professional-quality color keying. For information on the Keylight effect, see its documentation in this folder: Adobe After Effects CS3/Additional Documentation/Keylight.
To see a video tutorial on keying with Keylight, visit the Adobe website at www.adobe.com/go/vid0229.
Adobe® Creative Suite® Production Premium Edition also includes Adobe Ultra®, which can quickly key out a poorly lit background shot with a low-quality webcam. For more information on Adobe Ultra, visit the Adobe website at www.adobe.com/go/learn_ae_ultra.
You often see composites made with keying techniques in movies, for example, when an actor appears to dangle from a helicopter or float in outer space. To create this effect, the actor is filmed in an appropriate position against a solid-color background screen. The background color is then keyed out and the actor’s scene is composited over a new background.
The technique of keying out a background of a consistent color is often called bluescreening or greenscreening, although you don’t have to use blue or green; you can use any solid color for a background. Magenta screens have been used for keying work in some very successful feature films. Other common terms for this sort of keying are color keying and chroma keying.
Difference keying works somewhat differently from color keying. Difference keying defines transparency with respect to a particular baseline background image. Instead of keying out a single-color screen, you can key out an arbitrary background. To use difference keying, you must have at least one frame that contains only the background; other frames are compared to this frame, and the background pixels are made transparent, leaving the foreground objects.
Keep in mind that generating a high-quality key can require the application of multiple keying effects in sequence and careful modification of their properties, especially if the footage was shot without considering the requirements of the compositor.
Here are some tips to help you as you work with keying effects:
To help you view transparency, temporarily change the background color of the composition, or include a background layer behind the layer you are keying out. As you apply the keying effect to the layer in the foreground, the composition background (or a background layer) shows through, making it easy to view transparent areas. (See Set composition background color.)
Once you have used a key to create transparency, use Matte effects to remove traces of key color and create clean edges.
Start with the highest-quality materials you can gather, such as film that you scan and digitize.
Use uncompressed footage (or, at least, files with the least possible amount of compression). Many compression algorithms, especially those used in DV and Motion JPEG, discard subtle variations in blue—which may be necessary to create a good key from a bluescreen.
Noise and compression artifacts can cause problems for keying, especially difference keying. Often, applying a slight blur before keying can reduce noise and compression artifacts enough to improve keying results. For example, blurring the blue channel for DV footage can smooth out noise in a bluescreen.
The KeyerforDV animation preset available through the AE Enhancers forum automates the process of blurring the blue and green channels before keying, which can be crucial for keying DV footage: www.adobe.com/go/learn_ae_aeenhacersdvkeyer. This animation preset was written for an earlier version of the Keylight effect, but you can simply drag and drop the Keylight (1.2) effect from the Effects & Presets panel to replace the older effect, which may be reported as missing if you're using After Effects CS3.
Blurring the alpha channel after keying can soften the edges of the matte, which can improve compositing results.
Light your greenscreen or bluescreen uniformly, and keep it free of wrinkles.
Use a garbage matte to roughly outline your subject so that you don’t have to waste time keying out parts of the background far from the foreground subject. (See Use a garbage matte.)
For evenly lit greenscreen or bluescreen footage, adjust keying controls on only one frame. Choose the most intricate frame of the scene, one involving fine detail such as hair and transparent or semitransparent objects, such as smoke or glass. If the lighting is constant, the same settings you apply to the first frame are applied to all subsequent frames. If lighting changes, you may need to adjust keying controls for other frames. Place keyframes for the first set of keying properties at the start of the bluescreen scene. If you are setting keyframes for one property only, use Linear interpolation. For footage that requires keyframes for multiple interacting properties, use Hold interpolation. If you set keyframes for keying properties, you may want to check the results frame by frame. Intermediate keying values may appear, producing unexpected results.
To key well-lit footage shot against a bluescreen or greenscreen, start with the Color Difference Key. Add the Spill Suppressor to remove traces of the key color, and then use one or more of the other Matte effects, if necessary. If you are not satisfied with the results, try starting again with the Linear Color Key.
To key well-lit footage shot against multiple colors or unevenly lit footage shot against a bluescreen or greenscreen, start with the Color Range key. Add the Spill Suppressor and other effects to refine the matte. If you are not completely satisfied with the results, try starting with or adding the Linear Color Key.
To key dark areas or shadows, use the Extract Key on the Luminance channel.
To make a static background scene transparent, use the Difference Matte Key. Add the Simple Choker and other effects as needed to refine the matte.
For tips on shooting footage so that color keying is easier and more successful, see Jonas Hummelstrand’s website: www.adobe.com/go/learn_ae_jonasshootingforcolorkeying.
This thread on the Cinematography Mailing List website goes into detail about the advantages and disadvantages of various screen colors (red screens, blue screens, green screens, and so on) for color keying:
http://www.cinematography.net/CML%20Blue%20Screen%20vs%20Green%20screen.htm
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7bfd.html
Comments
Comments are no longer accepted for After Effects CS3. After Effects CS4 is the current version. To discuss After Effects CS3, please use the Adobe forum.