Back to Blog
VFX

Compositing Fundamentals: Green Screen Like a Pro

April 2024
Compositing Fundamentals, Green Screen to VFX

Bad keying destroys any VFX work. Good keying is invisible. In this guide, you'll learn the fundamentals of professional compositing: from capture to the final result. Everything I've learned in 20 years, compressed.

"80% of keying success happens BEFORE post-production. The remaining 20% is technique."

Fundamentals: Why Green? Why Blue?

Chroma keying works because we isolate and remove a color. Green and blue are the favorites because they are the furthest from human skin tones.

  • Green Screen: Brighter, requires less light, standard for digital cameras
  • Blue Screen: Better for blonde hair, historically preferred for film

The choice depends on your subject. Is the person wearing green clothing? Blue screen. Are we shooting at night? Blue screen reflects less onto the skin.

Phase 1: The Shoot (On-Set)

This is where the foundation is laid. A clean key starts with clean footage.

Lighting the Green Screen

The most important principle: Even illumination without hotspots or shadows. The green must have the same value everywhere.

Rule 1

At least 2 meters (6 feet) of distance between the subject and the green screen. This prevents green spill (green light reflecting onto the subject).

Rule 2

Light the green screen SEPARATELY from the subject. Two different lighting setups, independently controllable.

Rule 3

No wrinkles in the fabric. Every wrinkle = shadow = problem during keying. Stretch it taut or steam it out.

Lighting the Subject

Think about the final background. Where does the light come from there? Your lighting must match the eventual composite. Outdoor scene? Hard light from above. Office? Soft light from windows.

Camera Settings

  • Highest Bitrate: More color information = better key
  • 4:2:2 or Higher: 4:2:0 works, but hair becomes more difficult
  • LOG or RAW if Possible: Maximum flexibility in post
  • No Auto-Focus: Focus must remain stable
  • Low ISO: Less noise = cleaner key

Pro Tip: Reference Ball

Film a chrome ball and a grey ball on set. The chrome ball will later show you the light sources (for reflections), and the grey ball helps with color matching.

Phase 2: The Key (Post-Production)

Now it's time to hit the workstation. The tools differ, but the principles are universal.

Software Options

  • After Effects + Keylight: Industry standard, very good for most cases
  • DaVinci Resolve: Powerful keying tools, free
  • Nuke: Hollywood standard, steep learning curve
  • Primatte: Plugin for difficult keys

The Keying Workflow

  1. Garbage Matte: Roughly mask out the unnecessary areas (outside the screen)
  2. Primary Key: Sample and remove the main color
  3. Matte Clean-up: Fill holes, refine edges
  4. Spill Suppression: Neutralize green color fringing
  5. Edge Blend: Softly integrate edges into the background
  6. Color Match: Match the subject's color to the background

Keylight in After Effects: Step-by-Step

Keylight is powerful when you use it correctly:

  1. Apply the Keylight effect to the footage
  2. Screen Colour: Eyedropper on the purest green
  3. View: Switch to Status to see the matte
  4. Screen Gain: Clean up the matte (carefully!)
  5. Clip Black/White: Fill holes, remove excess
  6. Screen Softness: For softer edges (on hair)
  7. Spill Suppressor: Built-in or as a separate effect

Phase 3: Integration (Compositing)

The key is clean, but the composite still looks fake? Then integration is missing.

Color Matching

The subject must match the background in color. Use Curves or Levels to align the blacks, midtones, and highlights. The background defines the color palette.

Grain Matching

Digital elements have no grain. Real filmed footage has grain. Add matching grain to the background or everything except the subject, or remove it from the footage and add uniform grain over everything.

Motion Blur

If the subject is moving but the background is static, something is off. Either the background needs subtle movement, or the subject needs adjusted motion blur.

Light Wrap

The secret of professional composites. Light Wrap lets light from the background fall onto the edges of the subject. This happens in the real world and makes the difference between "obviously composited" and "whoa, that's real?"

Common Problems & Solutions

Green Spill on the Skin

Solution: Spill Suppressor (Keylight has a built-in one). Alternatively: Selective Color Correction only on the affected areas.

Hair Not Keying Cleanly

Solution: Dual-key technique. One key for the body (hard), a second key just for the hair (softer). Combine both.

Edge Looks Harsh

Solution: Edge Feather or Light Wrap. Sometimes a minimal blur (0.5-1px) on the matte helps.

Shadows on the Green Screen

Solution: Often unsalvageable. In the worst case: Rotoscoping the problem areas.

Conclusion: Practice Makes Perfect

Compositing is an art form that takes time. The more you key, the better you get. Start with clean footage, work systematically, and never forget: The best key is the one nobody notices.

Ready to Key Like a Pro?

Professional compositing that integrates seamlessly. Let's talk about your project.

Discuss Project