ANR Tools

ANR Chromatic Aberrations

Colour fringes that come from a lens model, not from sliding channels: they grow toward the corners, follow real wavelengths and leave flat areas alone.

  • Comp
  • Comp & Depth pack
  • 2 inputs
  • 16 controls

Overview

Chromatic Aberrations bends each colour by how a glass lens bends that wavelength. Every channel gathers its own band of light along the line from the Center of the frame, so a fringe has the soft colour falloff of a real lens instead of three shifted copies of the picture.

Lens Type chooses the kind of lens: Achromat (green / magenta) is the usual green and magenta fringe of a corrected lens, and the others follow the same curve with fewer or more corrections. Size is how far apart the colours land at the frame corner, in pixels. Axial adds the soft colour blur a lens has along its axis, around Focus Wavelength.

It runs on the CPU and uses no graphics memory.

Inputs

SourceMaskChromatic AberrationsOutput
  1. Sourcerequired

    The picture to put the aberration on.

  2. Maskoptional

    Limits where the effect applies. Invert Mask applies it outside the mask instead.

Output. The picture with the aberration. Flat areas stay exactly as they were; only edges and detail pick up colour.

Quick start

  1. Add ANR Chromatic Aberrations after your comp and connect the picture. Center moves to the middle of the plate by itself.
  2. Set Size: how many pixels the colours land apart at the frame corner.
  3. Choose Lens Type, and add Axial if the edges should also go soft in colour.
  4. Use Falloff and Protect Center to keep the middle of the frame clean. Drag the Center handle if the lens centre should be somewhere else.

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_Chromatic_Aberrations1
Lens TypeAchromat (green / magenta)
Size8
Axial1
Focus Wavelength550
Reverse
Centerx0y0
Falloff1
Protect Center0
Aspect Ratio1
Fringe Saturation1
Swirl0
QualityNormal
Max Samples64
Spread Alpha
Invert Mask
Mix1

All controls

ANR Chromatic Aberrations16 controls

Lens

Lens TypeMenucaLensType

The lens's colour correction, which sets the colours of the fringes.
Achromat: red and blue are brought together and green is left apart, as in most real lenses.
Singlet: one uncorrected piece of glass, the whole spectrum in order.
Apochromat: red, green and blue are brought together, leaving only a fine residue. Use a small Size.

Default: Achromat (green / magenta)Options: Achromat (green / magenta) Singlet (rainbow) Apochromat (subtle)

SizeSlidercaSize

How many pixels apart the spectrum (440-640 nm) lands at the frame's corner. This is lateral aberration: each wavelength is drawn at its own size. Measured on the full-resolution frame.

Default: 8

AxialSlidercaAxial

Axial aberration: each wavelength has its own focus, so the colours away from the Focus Wavelength go soft, over the whole frame. In pixels of blur radius at the end of the spectrum.

Default: 1

Focus WavelengthSlidercaFocusWavelength

The colour the lens is focused on, in nanometres. It stays sharp and in place; the others spread away from it. 450 blue, 550 green, 650 red.

Default: 550

ReverseCheckboxcaReverse

Swap which colours fall outside and which inside, as an over-corrected lens does.

Default: off

Across The Frame

CenterPositioncaCenter

The lens's optical centre: nothing moves here, and the fringes grow away from it. Exactly 0 0 means the middle of the plate, whatever its size.

Default: 0 0

FalloffSlidercaFalloff

How the fringes grow toward the corners. 1 is a lens's plain difference in magnification, higher keeps the middle clean and brings them in late.

Default: 1

Protect CenterSlidercaProtectCenter

Keep this much of the frame clean around the centre: 0 none, 1 out to the corners.

Default: 0

Aspect RatioSlidercaAspect

Stretch the circle the fringes grow on: above 1 they grow faster up and down than sideways.

Default: 1

Look

Fringe SaturationSlidercaFringeSaturation

The colour of the fringes alone, not of the picture. 1 is what the lens gives; 0 is the same spread with no colour.

Default: 1

SwirlSlidercaSwirl

Turn the fringes off the radius, in degrees. Not something a lens does; for a look.

Default: 0

Quality

QualityMenucaQuality

Samples per pixel of spread. Each part of the frame takes only what its own fringe needs. Draft may show steps in wide fringes; High is for very fine detail.

Default: NormalOptions: Draft Normal High

Max SamplesSlidercaMaxSamples

The most samples any colour of any pixel takes, however wide its fringe.

Default: 64

Output

Spread AlphaCheckboxcaSpreadAlpha

Spread the alpha through the lens too. Off, it stays where it is: use this when the node is on an element with a matte.

Default: off

Invert MaskCheckboxcaInvertMask

Work where the Mask input is black.

Default: off

MixSlidercaMix

Blend with the input.

Default: 1

Tips

  • Put it last in the comp, after the merge, so CG and plate share one lens.
  • Aspect Ratio stretches the pattern for an anamorphic look.
  • Reverse swaps the side each colour falls on.
  • Mix blends the result with the untouched picture.

Good to know

  • Size is measured against the plate's corner, so the same value looks the same on any format of the same shape.
  • With Fringe Saturation at 0 the fringe has no colour, only the softness.

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