Home · Lab · Case Files: real comp problems

CF7 Case 7: grain on top of grain

Regrain only what changed, but the mask was inverted

Case Files: real comp problems · ~6 min · In pack $15

1 Your mission

~6 min

make the new grain land only on the robot (and its shadow), not again on the plate

SkyVFX mini compositor · CF7640×360 · float · 1001

2 Why it works

Symptom: the sand looks noisier than the raw plate, while the robot looks perfectly smooth, like plastic. Here the plate already has camera grain (the "Camera grain" node stands in for it) and the CG has none, so only the pixels replaced by CG should be regrained.

The Keymix applies grain through a mask, but someone inverted the mask. The new grain lands on the plate (two equal layers of grain are about 1.41× stronger) and none on the robot. Check r, g and b on the sand, comparing "Merge over" with "Keymix (regrain)".

two equal, independent grains: √2 ≈ 1.41× stronger

Where the numbers come from: Keymix is checked against node-based compositing software; Grain is a teaching version (per-channel noise added to every pixel, unlike Nuke’s Grain2, which by default adds none where alpha is 0). Two independent grains combine as √(a² + b²), so two equal ones are √2× stronger: standard noise maths.