Home · Lab · Case Files: real comp problems

CF3 Case 3: the empty element that darkened the whole frame

Alpha-0 pixels carrying negative colour from a log black

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

1 Your mission

~8 min

probe the element’s empty area and enter the cancelling value in "Constant k (fix)" (r, g, b)

Leave the file nodes (Constant log black, Log decode) as they are. The lower Merge plus already uses (1 − a) as its mask.

SkyVFX mini compositor · CF3640×360 · float · 1001

2 Why it works

Symptom: merging a client element darkened the whole frame slightly, even where the element is empty. The rock shadows went pure black. Probe the "Log decode (the file)" node in an empty area: rgb reads −0.014 while alpha is 0.

Cause: the element was premultiplied on its log values and saved as a log file, so its empty pixels sit below the log black code and decode to just below 0 in linear. Merge over adds A straight on (A + B·(1 − a)), so the negative pushes the whole plate down. The three nodes at the top stand in for that file; in real work you can’t change the file, you fix it after the Read.

fix: rgb + k·(1 − a)

Where the numbers come from: The −0.014 comes from a real measurement on a premultiplied log element on one job (rounded to 3 places); the true value varies per file. Here the file is simulated with Constant + Invert + Merge from to give rgb − k·(1 − a). Merge, Invert and Constant are checked against node-based compositing software.