ANR Tools

ANR Light Match

Keeps a comped element's light in step with the plate: when the wall behind it brightens, darkens or flickers, the element changes the same way.

  • Comp
  • Comp & Depth pack
  • 4 inputs
  • 15 controls

Overview

Light Match watches the plate behind your element. On the Reference Frame, the frame where you graded the element to sit right, nothing changes. On every other frame, each Foreground pixel changes by what the wall point behind it changed since the Reference Frame: a passing shadow, a flicker, a light switched off.

The node follows the wall point behind the element by itself, from the element's own motion (for example the CornerPin that places it), or from a tracker connected to the Track input. Light Size ignores the wall's own detail, such as a window frame or a sign, so it does not print through the element, while shadow edges stay sharp.

The Blacks section moves the element's black point onto the plate's, for haze, flare or a lifted black level.

Inputs

ForegroundBackgroundMaskTrackLight MatchOutput
  1. Foregroundrequired

    The element you are compositing (a patch, a sign, a CG render), already placed where it sits on the plate. Its alpha says where it is.

  2. Backgroundrequired

    The plate the element sits on. Its change since the Reference Frame is what the node applies to the Foreground.

  3. Maskoptional

    Limits where the change is applied. Invert Mask applies it outside the mask instead.

  4. Trackoptional

    A Tracker, CornerPin, Transform or moving 3D card setup that moves with the element. When it is connected, the node follows the wall behind the Foreground with it; otherwise it uses the Foreground's own motion.

Output. The Foreground with the plate's light change applied, ready to merge over the plate. Output can also show the change on its own or the reference plate, for checking.

Quick start

  1. Place your element over the plate as usual, and grade it so it sits right on one frame.
  2. Add ANR Light Match. Connect the placed element to Foreground and the plate to Background.
  3. Go to the frame you graded on and press Set Reference Frame To Current. On that frame the Foreground passes through unchanged.
  4. Play the shot: the element now follows the plate's light. Choose a Change mode: Difference for flicker on a bright wall, Ratio when the light multiplies the surface, Gain + Offset for black-outs, shadows and haze.
  5. If the wall's own pattern shows through the element, raise Light Size; if a small patch of light or shadow is missed, lower it.
  6. Merge the result over the plate as before.

The panel

The node's panel as Nuke shows it, with the values of a new node. Click any control to see what it does; tabs and sections work as in Nuke.

ANR_Light_Match1
StatusFrame 1: no change. After it: Foreground + (background now - background on frame 1), at the same point of the wall.
Reference Frame1
Set Reference Frame To Current
ChangeDifference
OutputResult
Light Size35
Strength1
Pick Blacks: Whole Background
Pick Blacks: Behind Foreground
Match Blacks
Foreground Black0
Background Black0
Black Pick0.5
Invert Mask
Mix1

All controls

ANR Light Match15 controls
StatusStatusstatus

What the node does.

A one-line summary of what the node is doing with the current settings.

Reference FrameSliderlmReferenceFrame

The frame the Foreground was matched on. Nothing changes on it.

Default: 1

Set Reference Frame To CurrentButtonlmSetReferenceFrame

Make the frame you are on the Reference Frame.

ChangeMenulmChange

Difference: adds the background's change: Foreground + (background now - background then). A darker background takes the same amount off every Foreground pixel, so bright parts stay above black.
Ratio: multiplies by it: Foreground x (background now / background then). A background gone black makes the Foreground black.
Gain + Offset: fits now = gain x then + offset from the background at the same wall points, and grades the Foreground the same way: a black-out, a shadow, and a lifted black level (haze, flare) all carry across.

Default: DifferenceOptions: Difference Ratio Gain + Offset

OutputMenulmOutput

Result: the Foreground with the change applied.
Change: the change itself.
Reference Plate: the plate on the Reference Frame, moved with the Foreground to now. Inside the Foreground it should show the same wall as the plate now: check the following here.

Default: ResultOptions: Result Change Reference Plate

Light SizeSliderlmLightSize

How big a piece of the wall's own picture to ignore -- a window frame, glass, a sign -- in pixels of the Reference Frame; it grows with the wall as the camera comes closer. Shadow edges stay sharp at any size: the change is a median, not a blur. A patch of light or shadow narrower than this is ignored too, so lower it for small ones. 0 is every pixel on its own, and then the wall's detail shows through. Nothing changes on the Reference Frame, whatever it is.

Default: 35

StrengthSliderlmStrength

How much of the change to apply.

Default: 1

Blacks

Pick Blacks: Whole BackgroundButtonlmPickBlacksWhole

On the frame you are on: measure the Foreground's black point and the black point of the whole Background, and turn Match Blacks on.

Pick Blacks: Behind ForegroundButtonlmPickBlacksBehind

On the frame you are on: measure the Foreground's black point and the black point of the Background only where the Foreground is (its alpha, or the Mask when one is connected), and turn Match Blacks on.

Match BlacksCheckboxlmBlackMatch

Move the Foreground's black point onto the Background's first: Foreground - Foreground Black + Background Black. A Pick button turns this on.

Default: off

Foreground BlackColourlmCompositeBlack

The Foreground's black point. Picked, or type your own.

Default: 0

Background BlackColourlmSourceBlack

The Background's black point. Picked, or type your own.

Default: 0

Black PickSliderlmBlackPick

The darkest this percent of pixels is the black point. 0 is the single darkest pixel, which grain makes unreliable.

Default: 0.5

Invert MaskCheckboxlmInvertMask

Apply outside the Mask instead.

Default: off

MixSliderlmMix

Blend the result over the unchanged Foreground.

Default: 1

Tips

  • Set Output to Change to see only what the node adds, and check that it comes from the right place on the wall.
  • Output > Reference Plate shows the plate of the Reference Frame moved to now. Inside the Foreground it should show the same wall as the plate now; if it slides, connect a tracker to Track.
  • Pick Blacks: Behind Foreground measures the plate only under the element (its alpha, or the Mask), which is best when the plate's black level differs across the frame.
  • Strength scales the change; Mix blends the result with the untouched Foreground.

Good to know

  • Nothing changes on the Reference Frame, by design: that is the frame you matched by eye.
  • With Ratio, a background that goes fully black makes the Foreground black. Gain + Offset handles black-outs and lifted blacks more naturally.
  • The node needs to see the Foreground once on the Reference Frame (view that frame, or press Set Reference Frame To Current) before it can follow a moving element.

Something unclear or missing? Write to [email protected].