Diagram
Start with the answer
Do not touch the edge as soon as the foreground is in place. Accept the shot in this order: exposure and colour transforms, key direction, hardness, contact shadow, then moving edges. The failed step tells you which layer to repair. A foreground one stop brighter needs a light or grade decision, not a matte decision; missing contact under a shoe is a spatial problem, not a matte problem.
Cut a short test containing a turn, an occlusion and a moving highlight. Watch it at the delivery frame rate and the scale at which it will be viewed. Only then build the full shot, so one mistake is not copied across every frame.
When to use it
| Input or condition | Where to confirm it | Common mistake or limit |
|---|---|---|
| Colour space, bit depth and range of both plates are known | Metadata, camera reports, handover sheet | Comparing Rec.709 and Log plates directly |
| The composite has a defined viewing transform | Project colour settings, delivery specification | Judging colour in windows with different LUT states |
| The subject has a clear contact point with a supporting surface | Shot plan, clean plate, action design | Painting a dark ring where no support exists |
| Key direction can be inferred from lit planes and cast shadows | Windows, lamps and floor shadows in the plate | Looking only at the lit side of a face |
| A repeatable short test is available | Timeline, proxy or final-resolution render | Inspecting only a paused frame |
| Reflective surfaces need environmental information | Material reference, lighting plan | Giving every surface the same warm reflection |
Use it for routine two-layer work in short films, advertising and social video. The operator should be able to manage mattes, primary grades, basic tracking and compositing nodes. It does not cover crowd depth interactions, fluid simulation or photogrammetric reconstruction.
How to do it
- Fix the viewing conditions. Disable auto exposure, auto white balance and frame-dependent effects; record colour space, viewing transform, resolution and frame rate.
- Isolate both layers. Solo each one and note its black level, white point, key direction and shadow direction. Keep targets separate from measured readings.
- Align exposure and colour transforms first. Bring both layers into the same working space, then address overall brightness and casts; do not use edge tools to balance skin colour.
- Match key direction. Compare lit planes and cast shadows on the subject with the background. If they disagree, relight, rebuild the light effect or choose another plate.
- Match hardness. Compare shadow transitions and highlight edges. A hard-light subject in a soft background needs a larger apparent source or diffusion, not a global blur.
- Build contact. Add darkening, occlusion or a cast shadow only near a real contact point, with strength changing by distance. Check a still contact before checking motion.
- Repair the matte last. Leave exaggerated matte views behind and inspect hair, motion blur, transparent materials and occlusions. Zoom to the actual viewing size when magnification matters.
- Run a moving check. Play the test, then alternate the normal viewing size with 100%. Log the failed frame, cause layer and repair node instead of applying more feather everywhere.
Light Ratio Matters More Than the Edge
Give both layers a credible black level, white point and light ratio before refining translucent edges. Overall brightness differences usually come from capture exposure or the display chain; eroding a matte also removes hair and fingers.
Contact Shadow Is What Makes the Subject Sit Down
Contact needs a landing point. A standing figure casts a shadow that spreads from the shoe onto the floor; a hand on a table is shadowed on the tabletop. A floating action cannot be explained by painting black beneath it.
Worked example
Conditions: this is a calculation scenario, not a client project or a measurement. The background is a 3840 by 2160, 24 fps SDR Rec.709 overcast exterior. The foreground is an indoor green-screen plate in the same delivery format. The target is 1920 by 1080 SDR Rec.709. The background key comes from upper left with soft shadows; the foreground key comes from upper right with harder shadows, and the foreground is one stop brighter overall.
| Step | Calculation or action | Result |
|---|---|---|
| 1 | Confirm both plates are Rec.709 SDR and set the project to 24 fps | Range and frame-rate mismatch are excluded |
| 2 | Compare both layers against the same neutral reference; target a one-stop reduction in foreground exposure | The foreground no longer competes with background highlights |
| 3 | Compare lit planes and cast shadows; rebuild the foreground key and shadow from upper left | Key direction now agrees |
| 4 | Increase the apparent size of the foreground source and soften its shadow transition | Hardness is closer to the overcast background |
| 5 | Add a local shadow under each shoe and remove table shadows when the arm leaves the surface | Contacts are explicit and absent when unsupported |
| 6 | Test three seconds containing a turn, a hand occlusion and a highlight pass at 24 fps; inspect at 200% | The test produces frame-addressable observations |
| 7 | After direction, contact and edges pass, finish the full shot and output 1920 by 1080 | The shot enters full production and final acceptance |
The decision is to rebuild the foreground lighting, not enlarge matte feathering. If the hard shadow cannot be replaced or the background light direction changes within the shot, change the decision: choose another background or reshoot rather than forcing one global grade across the scene.
Decision table
| Situation | First action | Alternative | How to verify |
|---|---|---|---|
| One layer is globally brighter | Align working space, then grade overall exposure | Rebuild the primary grade for that layer | Black and white levels agree against the same reference |
| Lit directions disagree | Rebuild foreground key and cast shadow | Use a plate with matching direction | Identify the lit plane and shadow landing point in each layer |
| One is hard and one is soft | Rebuild the hard layer's shadow transition | Add a credible hard component to the soft layer | Compare paused shadow edges, then play the shot |
| The subject floats | Add a local shadow at a real contact | Reshoot or choose a plate with contact | Support remains clear in stills and motion |
| A pause looks fine but playback tears | Inspect motion blur and tracking | Repair the matte in sections or frame by frame | The failed frame can be reproduced and logged |
| Transparent material turns grey | Inspect premultiplication and edge colour | Rebuild the transparent section | Check the isolated edge, then place it back |
| The full shot is too costly | Shorten to a test with the critical action | Use a proxy to locate the problem | The test passes before full production |
Failures and fixes
| Symptom | Actual cause | Fix |
|---|---|---|
| The edge is clean but the subject looks pasted | Key direction or hardness differs between layers | Return to grade and lighting nodes; match direction and shadows |
| The subject turns grey after darkening | Brightness changed without addressing cast or black level | Compare a neutral reference in the working space, then correct black level and balance |
| A black halo surrounds the feet | The shadow has no landing point and was painted around the contour | Remove the ring; retain only the shoe-to-floor contact area |
| A table shadow remains after the hand lifts | A static contact shadow was not tied to the action | Track it in sections and remove it after departure |
| Hair disappears during playback | The matte missed motion blur or subpixel movement | Locate the failed frame at magnification; restore blur and inspect tracking |
| A bright edge appears during a highlight pass | Spill or premultiplication order is wrong | Suppress spill and verify the alpha and edge-colour order |
| Foreground grain is heavier | Grain was added again after compositing | Keep one grain pass at final delivery scale |
| Colour changes when the display LUT changes | Input transforms or viewing paths differ | Align colour management before comparing the images |
Acceptance checklist
- [ ] Input transforms, working space and viewing transform are recorded and consistent for both plates.
- [ ] Key direction is confirmed by both lit planes and cast shadows, not skin colour alone.
- [ ] Shadow hardness and apparent source size agree without substituting a global blur for lighting.
- [ ] Every contact has a landing point; its effect is removed when the action leaves.
- [ ] The test contains a turn, an occlusion and a moving highlight, and passes at the delivery frame rate.
- [ ] No obvious bright, missing or coloured edge appears at delivery size or 100%.
- [ ] Grain, lens distortion and highlights are not duplicated after compositing.
- [ ] Each failure can be traced to a layer, node or timecode rather than a vague request for more adjustment.
Reusable output
Download one copy per shot and record targets, observations and repairs:
Download the compositing acceptance record template (Markdown)
It includes the input chain, light comparison, contact points, test timecodes, cause layer and final sign-off for production handover.
Limits
- This article covers two-layer compositing. It does not replace tracking, photogrammetry, depth compositing, on-set lighting design or colour certification.
- Resolutions, frame rates, brightness differences and action lengths in the example are calculation conditions, not TVCN measurements or promised software results.
- Light direction can change from shot to shot. Judge each shot rather than copying one direction across a scene.
- Final acceptance uses the agreed delivery colour space, viewing device and target screen. A web preview is only an initial troubleshooting aid.
Intent split: this page covers multi-layer compositing, light matching and contact points after tracking. Read Tracking: Put the Point on Something Real first for the cluster-level motion-data judgement, then return here.
Image note. Covers, diagrams and step images on this page are editorial illustrations or structure diagrams, not photographs of a test performed here; they are not evidence of measured gear performance. Where an image is AI-assisted, the caption says so. Read the test conditions in the text before treating an image as proof.