AI Generation

Rotoscoping: Hand Tracing, Alpha Mattes, and AI Matting

Also called alpha matte, green screen, roto, ai rotoscoping

Rotoscoping is the practice of isolating a moving subject from its background frame by frame, producing an alpha matte that can be composited over something else. It started as literal tracing over live-action footage and is now mostly done by segmentation and matting models that propose the mask automatically.

What rotoscoping actually produces

Rotoscoping ends with a matte: a per-frame grayscale image where white means keep this pixel, black means drop it, and gray means blend. That matte becomes the alpha channel of the cutout, which is why the deliverable is usually called an alpha matte. Everything downstream depends on it, whether you are placing the subject on a new plate, grading only the subject, or replacing a sky.

The name comes from the rotoscope, a projector that threw one frame of live-action footage at a time onto a glass panel so an animator could trace it. Max Fleischer patented it in 1917 so Koko the Clown could move like a real person. The machine is long gone. The job it created is not: a rotoscoping shot is still someone deciding, frame by frame, exactly where the subject ends.

Rotoscoping vs green screen

Green screen keyRotoscoping
NeedsA controlled shootNothing but the footage
Based onColor separationShape and motion
CostMinutesHours, or one AI pass plus cleanup
Handles hairWell, if lighting is cleanOnly with soft matting output

Keying wins whenever you own the shoot. Rotoscoping is what you do when nobody shot a green screen: archive footage, documentary material, a drone plate, or an AI generated clip that never had a separable background in the first place. On production work the two are rarely alternatives. A key handles the body, and a roto matte patches the places where the screen was too dark, too close to the subject, or spilling green onto their shoulders.

Where AI matting is strong and where it is not

AI rotoscoping runs in two stages. A segmentation model proposes the subject region on one frame, then a tracker propagates that region forward using motion estimates, so you are not clicking through 240 frames by hand. Some tools take a text label, some a single click, some a rough mask on frame one.

It holds up well on clean, high-contrast subjects, whole-body figures, moderate motion, and lightly compressed sources. It breaks in ways that are predictable enough to plan around:

  • Hair, fur, smoke, and mesh. These pixels are genuinely part subject and part background. A binary mask cannot represent that, so you need true matting output rather than a hard cutout.
  • Motion blur. A blurred hand has no edge to find. Automatic mattes tend to slice through the blur and leave a chopped, strobing arm.
  • Occlusion. When the subject walks behind a pole, trackers often lose identity and take the pole with them on the way out.
  • Low contrast. A dark coat against a dark doorway is where the edge starts to chatter frame to frame.
  • Heavy compression. Blocking gives the model an edge that is not in the scene.

Matte chatter, an edge that wobbles a pixel or two every frame, is the most common tell in amateur work. Viewers register it as cheap without being able to name it. The fix is almost never a better prompt. It is temporal smoothing on the mask, or a hand-corrected keyframe every 8 to 12 frames that the tracker interpolates between.

Rotoscoping inside an AI pipeline

Isolating a subject used to be the last step before compositing. Now it is a setup step for several other generation tasks:

  • Replace a background. Matte the subject, then inpaint the plate behind it.
  • Restyle part of a frame. Pass the matte as a mask so a video edit model rewrites the environment and leaves the actor untouched.
  • Protect a face or a logo. Feed the matte as an excluded region so an upscaler or restyle pass cannot invent a new face.
  • Build reusable assets. A cutout on transparency can be dropped into any later shot; a flattened frame cannot.

That last point is the real argument for mattes even when no composite is planned. A matte turns "regenerate this video" into "regenerate this part of this video", which is the difference between buying a lottery ticket and making an edit.

A working checklist

  1. Work at full resolution on the least compressed source available.
  2. Split the shot at every camera cut before you start. Trackers do not survive cuts.
  3. Matte the large simple region first, then treat hair and blur as a separate pass with softer output.
  4. Review at speed rather than frame by frame. Chatter that is invisible in a still is obvious at 24fps.
  5. Keep the matte as its own file. Baking it into a composite means doing the work again the next time the background changes.

Models that support this

Pulled from the live ZOOOP model catalog, so this list stays current as new models ship.

See all 18 models

The prompt for this

A starting point that reliably produces the effect. Adjust the subject and setting; keep the technical clauses.

Isolate the dancer from the background and output a clean alpha matte, preserving hair detail and the motion blur on the trailing arm

Try Rotoscoping yourself

Open the generator with a starting point already filled in.

Frequently asked questions

What is the difference between rotoscoping and a green screen key?
A green screen key derives the matte from color, so it needs a controlled shoot but resolves in minutes. Rotoscoping derives the matte from shape, so it works on any footage and costs far more time. On real shots the two get combined, with a roto matte patching the areas the key cannot hold.
What is an alpha matte?
It is the per-frame grayscale image that says how opaque each pixel of the cutout is. White keeps, black drops, gray blends. Those gray values are what make hair and motion blur look real instead of cut out with scissors.
Is AI rotoscoping good enough for professional work?
For a locked shot with a high-contrast subject, often yes. For hair, smoke, motion blur, or a subject that passes behind something, it gives you a usable starting matte that still needs hand correction. Treat it as the first 80 percent, not the deliverable.
Why does my matte flicker or wobble at the edges?
The mask is being solved independently on each frame, so the edge lands a pixel or two differently every time. Smooth the mask across time, correct a keyframe every 8 to 12 frames, or feather the edge slightly so the wobble falls inside the blend.
Can rotoscoping handle hair and motion blur?
Only with a matting model that outputs soft, fractional values. A hard binary mask has no way to say a pixel is 40 percent hair, so wispy and blurred areas either get sliced off or drag background color along with them.
How long does rotoscoping take?
Manual roto on a difficult subject is measured in hours per second of footage. AI matting compresses the first pass to minutes, which moves almost the whole cost of the shot into cleanup rather than the initial cutout.

Related terms