Advanced Keying

The following section describes how Keylight works under the hood as well as the parameters you need to fine tune keys and get the most out of Keylight. Basic parameters covered previously may also be covered here in more detail.

Under the Hood

Keylight is a ’color difference keyer’, which means that for it to figure out a key, it compares every pixel in the image against a single color, known here as the ScreenColor.

View

The View parameter allows Keylight to render the final composite of the foreground over the background, or the foreground RGBA for compositing further down the tree. Two options, ScreenMatte and Status, are for viewing the key rather than an output. The options are:

Source - shows the blue/green screen foreground.

SourceAlpha - shows the alpha channel on the foreground input.

ScreenMatte - this is the matte created from picking the ScreenColor. It does not include any inside or outside masks.

InsideMask - shows the inside input. This is used to firm up the foreground matte to stop print through.

OutsideMask - shows the outside input. The outside mask is used as a garbage mask to reveal the background.

CombinedMatte - the screen matte, inside mask, and outside masks added together.

Status - this renders an exaggerated view of the key so that minor problems are shown clearly.

IntermediateResult - use this option on shots that can only be keyed using several different keys on different parts of the image (multi-pass keying). This renders the original source image with the ScreenMatte generated in this Keylight node. In Keylight nodes down the tree, you should set the SourceAlpha in the InsideMask folder to AddToInsideMask.

FinalResult - this creates a premultiplied RGBA foreground that can be composited later. There’s an UnpremultiplyResult toggle you can use if you wish.

Composite - this renders the foreground composited over the background using all mattes, spill and color corrections.

Status

Status is one of the options in the View dropdown menu and shows an exaggerated view of the key so that you can make a more informed decision when fine tuning the composite. The figure on the right shows the Status after the screen color has been picked from the image shown in the figure on the left.

Green screen. Status.

Three colors are displayed:

Black pixels represent pure background in the final composite.

White pixels are pure foreground.

Gray pixels are a blend of the foreground and background pixels. The gray is just one color to highlight any areas that are not pure foreground or background. Gray pixels do not mean the key is poor - the final composite may be fine.

You may occasionally see other colors in the Status view. The figure on the left shows black, white, gray, and green pixels.

Status showing processing
of the alpha channel.
Composite showing
Screen
ReplaceColor.

Green pixels are a warning. They show you the parts of the alpha that have changed through processing the alpha channel (clipped, softened, or eroded). These areas have had the correct amount of spill removed, but the alpha has subsequently changed and the composite may no longer look right. This can be corrected using the ScreenReplaceColor to put back color in these areas. Above, the figure on the right is an extreme example to illustrate the point. The ScreenReplaceColor has been set to pure red and you can see that this mirrors the green pixels in the Status view.

Similarly, you may see blue pixels in the Status.

Status showing how
the inside matte affects
the foreground.

Composite showing
the inside replace color.

Blue pixels represent processed pixels in the InsideMask that affect the despill of the foreground. The InsideReplaceColor is used to modify these pixels. Another extreme example is shown above in the figure on the right. The InsideReplaceColor is set to pure yellow and the InsideReplace is HardColor.

You may also see dark red pixels in the Status. Red pixels indicate areas where an outside mask has been used to reduce the transparency of the image.