Compositing is combining images from different sources into a single frame that reads as one photograph. Almost every effects shot you have seen is a composite, and almost every failed effects shot failed at the compositing stage rather than at the creation of the elements.
Layers and the stacking order
- Layers stack in order — the top layer covers what is beneath it, exactly as in image editing.
- The alpha channel stores transparency per pixel, which is what lets a layer be partly see-through.
- A matte or mask defines which parts of a layer are kept and which are cut away.
- Blending modes control how a layer's pixels mathematically combine with those below — multiply darkens, screen lightens, add is used for light and fire.
Chroma key
Chroma key removes a specific colour from an image so whatever is behind it shows through. Shoot a subject against an even green backdrop, tell the software to make that green transparent, and the subject can be placed anywhere.
| Problem | Cause | Fix — on set, not in software |
|---|---|---|
| Spill | Green light bouncing onto the subject's edges and hair | Move the subject further from the screen; add backlight |
| Uneven key | The backdrop is brighter in some places than others | Light the screen separately and evenly from the subject |
| Hard, jagged edges | Over-tight key settings, or a compressed source | Shoot at higher quality; soften and choke the matte slightly |
| Shadows on the screen | The subject is standing too close to it | More distance between subject and backdrop |
| Wrinkles and creases | A cloth backdrop hung badly | Stretch it taut, or use painted board |
Making a composite believable
Removing the background is the easy half. Making the result look like a single photograph is the half that separates convincing work from obvious work, and it comes down to matching four things.
- Match the lighting. The direction, hardness and colour of the light on the subject must match the background plate. A subject lit from the left cannot stand in a scene lit from the right.
- Match the perspective. Camera height, lens angle and horizon line all have to agree. A subject shot at eye level will not sit into a background shot from above.
- Match the colour and grade. Apply the same colour treatment to every element so they share one look.
- Match the grain, blur and focus. A pin-sharp subject in a softly focused background announces itself instantly. Add matching motion blur and film grain.
- Built and filmed for real — models, makeup, pyrotechnics
- The camera photographs actual light, so it sits naturally in frame
- Actors can see and react to them
- Expensive to repeat, and hard to change afterwards
- Created or altered in software
- Infinitely adjustable and repeatable
- Can achieve what cannot be built or filmed safely
- Can look weightless if lighting and physics are not matched