VFX Basics
Compositing is mathematics. Understand planar tracking arrays, pre-multiplied alpha matrices, and pixel-accurate masking to build invisible effects.
The Alpha Channel
Visual effects rely on RGB+A (Red, Green, Blue, Alpha). The Alpha channel defines transparency mathematically on a scale of 0 (completely transparent) to 1 (completely opaque). Issues arise with edge pixels, often resulting in dark fringes. This is caused by mismatched handling of Pre-multiplied Alpha versus Straight Alpha.
If your compositing software interprets straight alpha as pre-multiplied, the edge pixels (which hold anti-aliasing data) will be erroneously multiplied by black, causing the dreaded "dark halo." Always verify alpha interpretation in asset settings.
Planar vs. Point Tracking
Single-point tracking only gathers X and Y translation data. It fails the moment a subject rotates, changes scale, or alters perspective. For screen replacements and digital sign-painting, Planar Tracking is mandatory. Planar trackers analyze a cohesive surface of pixels, extrapolating translation, rotation, scale, and shear (perspective) data matrices over time.
Rotoscoping and Bezier Masking
Manual masking remains the foundation of compositing. When drawing bezier curves for rotoscoping, adhere to the following principles:
- Fewer points: Mathematically, every bezier point introduces potential wobble. Use the minimum number of points required to define the geometry.
- Separate intersecting shapes: Do not rotoscope an entire human body with one mask. Create separate overlapping masks for the head, torso, upper arm, and lower arm. This mimics the rigid joints of the subject.
- Animate on extremes: Never animate frame-by-frame chronologically. Animate the start point, the end point, the midpoint, and then the midpoints of those intervals. This ensures smooth, interpolated mathematical curves across the timeline.
Matching Grain and Noise
A composite will always fail the eye test if the digital element is cleaner than the source plate. The final node in any VFX tree must be a grain or noise generation node that matches the camera's original sensor noise profile (chroma and luma noise variance).