Skip to content
Study Hall
Lesson 7 of 7Animation & Special Effects
Unit 2 · Lesson 7 of 7

Chroma Key, Compositing and Special Effects

How separately captured images are combined into one convincing shot, why green screens are green, and what makes a composite fail.

4 min read9 practice questionsAsk AI about this →

Key things to remember

  1. 1Compositing combines images from different sources into a single frame that reads as one photograph.
  2. 2The alpha channel stores per-pixel transparency; a matte defines which parts of a layer are kept.
  3. 3Chroma key makes a chosen colour transparent so a background shows through.
  4. 4Green is used because it is furthest from skin tones and sensors capture the most green detail; blue is used when the subject wears green.
  5. 5Even lighting on the backdrop and distance between subject and screen are the two biggest factors in a clean key.
  6. 6Spill is green light bouncing onto the subject — fixed on set with distance and backlight, not in software.
  7. 7A believable composite matches lighting direction, perspective, colour grade, and grain/blur/focus.
  8. 8Heavy compression destroys the fine colour detail a key depends on.

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

Layer stack — the top layer draws lastGradethe look, applied over everythingForegroundthings that pass in frontSubject (keyed)carries the alpha matteBackground platethe bottom of the stackComposited resultMatte (the alpha channel)white (alpha 1) = keep pixelblack (alpha 0) = drop pixelgrey = partial, for soft edgesKeying does not cut the subject out — it writes a matte that tells the compositor whichpixels of that layer to draw over the layers beneath it.
Fig 1Layers stack from the back forward. Each one needs a matte saying which pixels to keep.
  • 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.

The shotgreen spilleven, flat, no hot spotsTop-down planscreen2 screen lightssubject1.5–2 mcameraLight the screen and the subject separately — the screen wants flat, even light.Standing 1.5–2 m off the screen kills the shadow and most of the spill.Spill is green light bouncing onto hair and shoulders; a back light and despill fix it.
Fig 2Why an evenly lit backdrop and good separation matter more than the shade of green.
Why green, and when blue instead
Green is furthest from human skin tones in the colour spectrum, so removing it is least likely to eat into a face. Digital sensors also capture more green information than red or blue, giving a cleaner edge. Blue is used when the subject wears green, or for a blonde subject where green spill is especially visible — the rule is simply to key the colour the subject is not.
ProblemCauseFix — on set, not in software
SpillGreen light bouncing onto the subject's edges and hairMove the subject further from the screen; add backlight
Uneven keyThe backdrop is brighter in some places than othersLight the screen separately and evenly from the subject
Hard, jagged edgesOver-tight key settings, or a compressed sourceShoot at higher quality; soften and choke the matte slightly
Shadows on the screenThe subject is standing too close to itMore distance between subject and backdrop
Wrinkles and creasesA cloth backdrop hung badlyStretch it taut, or use painted board
A bad key cannot be rescued in software
Every hour spent lighting the screen evenly saves several hours of frame-by-frame repair later. The two things that matter most are even lighting on the backdrop and distance between the subject and the screen — and both are free. Compression is the other enemy: heavily compressed footage discards exactly the fine colour detail a key depends on.

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.

  1. 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.
  2. 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.
  3. Match the colour and grade. Apply the same colour treatment to every element so they share one look.
  4. 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.
APractical effects
  • 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
BDigital effects
  • 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
Most big films use both
The usual approach is a practical element to give the shot real light and real interaction, extended digitally beyond what was built. A real set for the first few metres and a digital extension above it will out-perform a fully digital environment almost every time, because the part the eye scrutinizes most is genuinely photographed.
Plan effects during pre-production
An effects shot decided in the edit will cost far more than one planned before shooting. Knowing the shot is a composite tells you where to place the camera, how to light the subject, what reference to photograph on set, and what to measure — and those decisions cannot be recovered afterwards.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
A student's green-screen shot has green fringing around the subject's hair and a patchy key that holds in some areas and not others. Diagnose both problems and give the fix for each.
Example 2
A composite places a subject into a beach background, but it looks obviously fake even though the key is clean. List what to check, in order.

Where marks get lost

  • Standing the subject close to the green screen, which causes both spill and shadows on the backdrop.
  • Lighting the subject and the screen with the same lights, which makes even backdrop lighting impossible.
  • Expecting software to rescue a badly lit key. Every on-set hour saves several in post.
  • Keying green when the subject is wearing green. Key the colour the subject is not.
  • Shooting heavily compressed footage, which throws away the colour detail the key needs.
  • Matching only the background removal and not the lighting, perspective, grade and grain.
  • Forgetting the contact shadow, so a composited subject appears to float.
  • Deciding a shot is an effects shot during the edit, when the camera and lighting decisions can no longer be changed.

Flashcards 10

Compositing
Chroma key
Why green screen?
When would you use blue instead of green?
+ 6 more

Practice

1
Why is green the most common chroma key colour?
2
A subject has a green rim around their hair after keying. What causes this and how is it best fixed?
3
What is the name of the channel that stores per-pixel transparency in an image?
4
A keyed subject looks pasted onto a sunny background even though the edges are clean. What is the most likely problem?
5
Which of these should be fixed on set rather than in software?
6
What is the term for combining images from different sources into a single frame?
7
Order these checks when a composite looks unconvincing.
  1. 1Perspective and camera height
  2. 2Grain, motion blur and focus matching
  3. 3Colour grade applied to both elements
  4. 4Lighting direction and colour on the subject
8
Match each keying problem to its on-set cause.
Green rim on hair
Key holds in places and not others
Dark patches on the screen
Jagged, blocky edges
9
Why do large film productions often combine practical and digital effects?

Spot a mistake on this page? Let us know