# The vocabulary of visual effects

> Green screen, chroma key, rotoscoping, motion tracking, matte painting, chromatic aberration, lens flare, film grain, light leaks and glitch: learn the words for visual effects by watching each one built on a live composite.

Keying, roto, tracking and compositing, and the lens, film and digital effects that finish a shot. Press a term to watch it done to one actor on a green screen and a street at dusk.

Interactive version, with every term shown: https://demoeditor.com/learn/vfx

## Keying and mattes

Pulling the actor off a coloured screen. The key makes a matte: a black and white image that says what stays.

- **Green screen** (also: Greenscreen, Green screen effect): The actor is filmed in front of a bright, evenly lit green backdrop, and the green is swapped for another picture later. Green because it is far from skin tones and cameras record it with the least noise.
- **Chroma key** (also: Keying, Colour key, Key): Making one colour transparent. You pick the screen colour, then raise the tolerance until the whole screen goes, including its darker, unevenly lit corners, without eating into the actor.
- **Blue screen** (also: Bluescreen): The same trick with a blue backdrop. It spills less light onto the actor and suits night scenes and anything green in the shot, but needs more light, since cameras are less sensitive to blue.
- **Spill** (also: Green spill, Despill, Spill suppression): Green light bouncing off the screen onto the actor, seen as a green fringe on hair and edges. Spill suppression pulls the green back to neutral after the key.
- **Matte** (also: Alpha channel, Alpha matte, Mask): A black and white image that says which pixels to keep: white is solid, black is see-through, greys are partly see-through, like soft hair. A key, a roto or a painted shape all make one.

  ```text
  one row of pixels across the actor, as matte values

   pixel  background   edge  actor  edge   background
   matte  0     0      .5    1  1   .5     0     0
          black        grey  white  grey   black
          dropped      half  kept   half   dropped

   comp = fg * matte + bg * (1 - matte)
  ```

- **Garbage matte** (also: Junk matte): A rough shape drawn around the actor that throws away everything outside it: light stands, studio walls, the edges of the screen. The key then only has to work on what is left.

  ```text
  front view: a rough shape drawn around the actor

   +--------------------------------------+
   |  _T_     .-------------.        |    |
   |   |     /      ( )      \       |    |
   |   |    /       /|\       \      |    |
   |   |   /        / \        \     |    |
   |  /_\ '---------------------'    |    |
   +--------------------------------------+
       ^                             ^
     light     inside: kept     screen edge
     stand     outside: thrown away
  ```

- **Luma key** (also: Luminance key): A key made from brightness instead of colour: dark pixels go, bright ones stay. Used for fire, sparks, smoke and fireworks shot on black.
- **Light wrap** (also: Edge wrap): A little of the background's light blended onto the actor's edges, as if the bright sky behind were wrapping around them. Without it a keyed actor looks cut out and pasted on.

## Roto and tracking

When there is no screen, mattes are drawn by hand; when the camera moves, every added element has to follow it.

- **Rotoscoping** (also: Roto): Tracing a shape around something by hand to make a matte when there is no green screen. The artist sets the shape on key frames and corrects the in-betweens, moving its points as the subject moves. Named after the device animators used to trace live action.
- **Tracking markers** (also: Track markers, Tracking dots): Small crosses or dots taped onto a green screen or set. A plain screen has nothing to lock onto, so markers give the tracker points to follow; they are keyed or painted out after.
- **Motion tracking** (also: Point tracking, 2D tracking): Following a point through the shot so something can be stuck to it. The tracker searches each frame for the same small patch of pixels; anything attached to the track then moves with the camera.

  ```text
  front view, one frame: where the tracker looks

   +-----------------------+   search area: how far the
   |                       |   patch may have moved
   |     +-----------+     |   since the last frame
   |     |     +     |     |
   |     +-----------+     |   pattern: the small patch
   |                       |   of pixels it follows
   +-----------------------+
  ```

- **Planar tracking** (also: Planar track): Tracking a whole flat surface, like a sign, a phone screen or a wall, instead of one point. It follows its position, rotation, scale and perspective, so a new image can be corner-pinned onto it.

  ```text
  front view: the tracker follows the whole flat surface,
  here a sign turning away, not one point

   frame 1               frame 40
   A-----------B         A.
   |           |         | '-.
   |   sign    |         |    '-B
   |           |         |      |
   D-----------C         |    .-C
                         | .-'
                         D'

   the new image is corner-pinned to A B C D in every frame
  ```

- **Match move** (also: Camera tracking, 3D tracking, Camera solve): Working out the real camera's path in 3D from the footage, by tracking many points at different depths. A virtual camera then moves the same way, so CG objects sit in the scene.

  ```text
  top view, camera at the bottom: points tracked at many depths

     +        +         +       far: slide a little on screen
          +        +
     +         +        +       near: slide a lot

       [cam] ------------> [cam]
       the solved path, which the CG camera copies
  ```

- **Stabilisation** (also: Stabilization, Stabilize, Warp stabilizer): Tracking the shake in handheld footage and moving the frame the opposite way to cancel it. The frame's edges then wander, so the picture is scaled up a little to hide them.

  ```text
  front view: the shot jumped up and right, so the frame
  is moved down and left to cancel it

   +-------------------+     +-------------------+
   |:::::::::::::::::::|     |                   |
   |               ::::|     |                   |
   |    picture    ::::|     |     picture       |
   |               ::::|     |                   |
   +-------------------+     +-------------------+
   moved back: ::: is the    scaled up a little:
   empty edge it leaves      the gaps are cropped off
  ```

- **Wire removal** (also: Paint out, Rig removal, Clean-up): Painting out the safety wires, rigs and markers that held up a stunt, using a clean plate or nearby pixels. The actor appears to float on their own.

## Compositing

Layering plates, mattes and CG into one picture that looks like it was shot in a single take.

- **VFX** (also: Visual effects): Any image made or changed after the shoot: keying, CG, matte paintings, tracking, compositing and lens effects. (Special effects, SFX, are the practical ones done on set, like explosions and rain.)
- **Compositing** (also: Comp, Digital compositing): Combining separate layers (background plate, keyed actor, CG, effects) into one image, back to front. A compositor also matches their colour, light, focus and grain so the seams vanish.

  ```text
  the stack, read bottom to top: each layer goes over the
  ones below it

   +----------------------------------+
   | effects: glow, flare             |   front
   +----------------------------------+
   | CG, with its shadow              |
   +----------------------------------+
   | actor: fg plate cut by its matte |
   +----------------------------------+
   | background plate                 |   back
   +----------------------------------+
     then colour, light, focus and grain matched across all
  ```

- **Plate** (also: Background plate, BG plate, Foreground plate): A piece of footage shot to be used in a composite. The background plate is the scene with no actor in it; the foreground plate is the actor shot on a screen.
- **Clean plate** (also: Clean pass): The same shot filmed again with the actor, rigs or crew out of frame. It is what the compositor paints back in to remove anything from the picture.
- **Matte painting** (also: Digital matte painting, DMP): A painted landscape or building that replaces part of the frame, like a castle on the far hills. Once painted on glass, now painted digitally, often over photos and 3D.
- **Set extension** (also: Digital set extension): Only the part of the set the actors touch is built; the rest, here the top of a city wall and its towers, is added digitally. Green above the build tells the comp where to put it.
- **Blend modes** (also: Transfer modes, Screen, Multiply, Add): How a layer's pixels mix with the ones below. Screen and Add only brighten, so a glow shot on black drops in with no matte; Multiply only darkens, for shadows and dirt.
- **Depth pass** (also: Z-depth, Depth map, Z pass): A grey image of how far away each pixel is; here near is white and far is black, though renderers differ. The comp uses it to add haze and fog that thicken with distance, or depth of field.

  ```text
  side view, camera on the left: the grey each distance gets

   [cam]>  actor   lamp    buildings   mountains   sky
           white   pale    grey        dark        black
           near ------------------------------->   far

   (this page's convention; some renderers flip it)
  ```


## Lens effects

What real glass does to light. Added in the comp to make CG look photographed, or as a look of its own.

- **Lens flare** (also: Flare): Bright light bouncing between the glass elements inside a lens: a glow, streaks, and a line of rings and shapes across the frame. The rings sit on a line through the centre of the frame, so as the camera pans they swing round it with the light.

  ```text
  front view: the rings lie on a line from the light
  through the centre of the frame

   +-------------------------------------+
   |  *                                  |
   |       o                             |
   |             .                       |
   |                  +  centre          |
   |                        o            |
   |                              O      |
   |                                  () |
   +-------------------------------------+
   the line pivots on the centre: move the light right
   and the rings past the centre swing left
  ```

- **Chromatic aberration** (also: Colour fringing, RGB split, CA): A lens bends red, green and blue light by different amounts, so they do not quite line up: coloured fringes on edges, strongest at the corners. Added to CG to make it look shot, or pushed as a style.
- **Vignette** (also: Vignetting, Light falloff): The corners of the frame fall darker than the centre. Lenses do it naturally; colourists add it to pull the eye to the middle.

  ```text
  front view

   +-------------------------+
   |##::                 ::##|
   |::                     ::|
   |                         |
   |::                     ::|
   |##::                 ::##|
   +-------------------------+
   ## darkest, :: darker, the centre untouched
  ```

- **Bokeh** (also: Out-of-focus highlights): The quality of the out-of-focus parts of an image. Small lights behind the subject spread into soft discs shaped by the lens's aperture. Shallow focus and a wide aperture make more of it.
- **Anamorphic flare** (also: Anamorphic streak, Horizontal lens flare): A long horizontal line of light, often blue, through bright lights. It comes from anamorphic lenses, which squeeze a wide picture onto the sensor; now added for a widescreen sci-fi look.

  ```text
  front view: the same bright light through two kinds of lens

   round (spherical) lens     anamorphic lens

           .-.
          ( * )               ---------( * )---------
           '-'

   a round glow               a thin horizontal streak
  ```

- **Lens distortion** (also: Barrel distortion, Pincushion, Fisheye): Straight lines bending near the edges. Wide lenses bow them outward (barrel), long zooms pinch them in (pincushion). Removed before compositing so CG lines up, then added back.

  ```text
  front view: what each does to a square

   straight         barrel            pincushion
                    (wide lens)       (long zoom)

   +---------+      .-'''''''-.       +.         .+
   |         |     /           \       \ '-...-' /
   |         |    |             |       |       |
   |         |    |             |       |       |
   |         |     \           /       / .-'''-. \
   +---------+      '-._____.-'       +'         '+

                    edges bow out     edges pinch in
  ```


## Film and texture

The marks of a film camera and stock: added over clean digital images for warmth and age.

- **Film grain** (also: Grain, Noise): The fine, random texture of film, from the silver halide crystals (and, in colour film, the dye clouds that replace them) that form the image. It changes every frame, so it shimmers. Added to digital and CG to match film or soften a too-clean look.
- **Light leak** (also: Light leaks, Film leak): Warm orange and red light washing in from the edge of the frame, from light getting into a camera body or film can. Used as a nostalgic look or a transition.
- **Film burn** (also: Burn transition): The frame melting and blooming into white, as when a projector's lamp burns through a stuck frame. Used as a transition between shots or a retro accent.
- **Halation** (also: Film halation): A red-orange glow around bright lights and edges on film, from light bouncing off the back of the film stock. Its warm colour is what tells it apart from a plain glow.
- **Gate weave** (also: Film weave, Jitter): The picture drifting and jumping slightly, because film never sits in exactly the same place in the camera or projector gate. Against a fixed crosshair, you can see the frame move.
- **Dust and scratches** (also: Film damage, Film scratches): Specks and hairs that flash for a single frame, and long vertical scratches that run down the print for many frames, from a worn film print. Added for an old-film look; removed when restoring.

## Digital effects

Effects made in the computer: generated particles and CG, and the look of broken video.

- **Glitch effect** (also: Glitch, Digital distortion): The look of broken digital video: slices of picture jumping sideways, colour channels splitting, blocks of wrong colour, in short bursts. Used for tech, horror and music videos.
- **Datamosh** (also: Datamoshing, Pixel bleed): Deleting the keyframe at a cut, so the next shot's motion drags the last shot's pixels around instead of replacing them. Melting, smeared colour, as in music videos.
- **VHS effect** (also: VHS, Retro VHS, Tape effect): Videotape's flaws: soft colour bleeding sideways, scan lines, a rolling band of tracking noise and a timestamp. Used for 80s and 90s nostalgia and found footage.
- **Particle effects** (also: Particles, Particle system): Thousands of tiny generated points, each with its own speed, life and fade, for sparks, embers, dust, snow, rain and magic. An emitter spawns them and forces like wind and gravity move them.
- **Glow** (also: Bloom, Glow effect): Bright parts of the picture bleeding soft light into their surroundings. Bloom is the name in games and CG; glow in compositing and motion graphics.
- **CGI** (also: CG, Computer-generated imagery, 3D render): Anything made in 3D software: modelled, textured, lit to match the plate and rendered, then composited in, with a shadow so it sits on the ground.
