Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Digital Audio, Video > Adobe After Effects

Like this article? We recommend

Get the Best Out of Keylight

So your matte now either looks pretty good or has at least one obvious problem. If you think it's looking good, focus in on a few details, and note if there are any problems with the following in your full-motion preview (see Figure 25):

  • Hair detail: Are all of the "wispies" coming through?
  • Motion blur or, in unusual cases with a defocus, lens blur: Do blurred objects appear chunky or noisy, or do they thin out and partially disappear?
  • Screen contamination areas: Do holes remain in the foreground?
  • Shadows: Are they keying as desired (usually all or nothing)?
Figure 25

Figure 25 Fun challenges you may encounter when pulling a color key include wispy hair (top left), motion blur (top right), contamination of foreground elements by the background color (bottom left), and shadows (bottom right).

Alternatively, you may discover something fundamentally wrong with your matte:

  • Ill-defined foreground/background separation or semi-transparency throughout the foreground or background
  • Crunchy, chewy, or sizzling edges (feel free to invent your own such terms)
  • Other noise in the matte
  • Edge fringing or an overly choked matte
  • Errors in the spill suppression

Keylight anticipates these issues, offering specific tools and techniques to address them. Before delving into those (in the "Focusing In" section), let's look at how Keylight actually operates.

The Inner Workings of Keylight

A few decisions are absolutely essential in Keylight; most of the rest compensate for the effectiveness of those few. This section offers a glimpse into the inner workings of Keylight, which will greatly aid your intuition when pulling a matte.

The core of Keylight involves generating the screen matte; as mentioned earlier, the most essential step is the choice of screen color. From that, Keylight makes weighted comparisons between its saturation and hue and that of each pixel, as detailed in the following table.

How Keylight Makes Key Decisions

Compared to Screen Color, the Pixel Is...

Keylight Will Do This

A different hue

Consider the pixel to be foreground, making it opaque

A similar hue and more saturated

Key out the pixel completely, making it transparent

A similar hue, but less saturated

Subtract a mathematically weighted amount of the screen color and make it semitransparent

The lesson contained in the table is that a healthy background color has a reasonably high saturation level and a distinct hue.

Those criteria sound vague, not easily met—and it's true, they're somewhat vague, and often not met. That's why Keylight adds the Screen Gain, Screen Balance, and Despill and Alpha Bias controls. Screen Gain emphasizes the saturation of the background pixels, and Screen Balance delineates the background hue from the other primary colors. The Bias controls color-correct the foreground.

Screen Gain

One major enemy of a successful color key is muddy, desaturated colors in the background. A clear symptom that the background lacks sufficient intensity is that areas of the background have a consistent hue, yet fail to key easily. Similarly, a clear symptom that your foreground is contaminated with reflected color from the background is that it appears semi-opaque. In either case, Screen Gain becomes useful.

Screen Gain boosts or reduces the saturation of each pixel before comparing it to the screen color. This change effectively brings more desaturated background pixels into the keying range if raised; or, if lowered, knocks back pixels in the foreground containing the background color.

Screen Balance

That takes care of saturation, but what about hue (the actual green-ness or blue-ness of the background and foreground), and how pure is it? Keylight is designed to expect one of the three RGB color values to be far more prevalent than the other two in order to do its basic job. It's even more effective, however, if it knows whether one of the two remaining colors is more prevalent, and, if so, which one. Screen Balance allows you to alert Keylight to this fact.

On this theory, you would employ a balance of 95% with bluescreens and leave it at 50% for greenscreens. In version 1.1v1 of Keylight, that's exactly how the plug-in sets Screen Balance, depending on whether you choose a blue or green Screen Colour setting.

The more generalized recommendation from The Foundry, however, is to set it "near 0, near 100," and compare the results to the default setting of 50 to evaluate which one works best. In other words, imagine that there are three settings (instead of 100) and try 5%, 50%, and 95%.

A Rosco Ultimatte Blue screen contains quite a bit of green—much more than red, unless someone has lit it incorrectly. Ultimatte Green screens, meanwhile, are nearly pure green (see Figure 26).

Figure 26

Figure 26 The Rosco colors, left to right: Ultimatte Blue, Ultimatte Green, and Ultimatte Super Blue. Blue isn't pure blue, but double the amount of green, which in turn is double the amount of red. Ultimatte Green is more pure, with only a quarter the amount of red and no blue whatsoever. Lighting can change their hue (as does converting them for print).

Bias

The Bias settings, Despill Bias and Alpha Bias, color-correct the image in the process of keying, by scaling the primary color component up or down (enhancing or reducing its difference from the other two components).

As mentioned earlier, a couple of things have changed with these settings in this new version. They are no longer tied together by default, and The Foundry recommends that in most cases you leave Alpha Bias at the default. Both settings also now operate via eyedroppers rather than value sliders, and it's recommended that you click the Despill Bias eyedropper on a well-lit skin tone that you want to preserve; despill pivots around this value.

Focusing In: Clean-Up Tools

Once you're satisfied that you have as good an edge matte as possible, you're ready to zoom in on a detail area and work on solving specific problems.

If you see an area that looks like a candidate for refinement, save the file (just in case, so that you can revert to this as your ultimate undo point), zoom in, and create a region of interest around the area in question.

Now take a look at some common problems you might encounter and the tools built into Keylight that solve them.

Holes and Edges

The double-matte method (core and edge) shortcuts a lot of the tug-of-war that otherwise exists between a solid foreground and subtle edges. Even with this advantage, both mattes may require adjustments to the Clip White or Clip Black controls.

The game is to keep the largest possible difference (or delta) between these two settings. The more closely the two numbers approach one another, the closer you are to a bitmap alpha channel, in which each pixel is pure black or white—a very bad thing indeed (see Figure 27). The delta between the Clip values represents the area where all of your gray, semitransparent alpha pixels live, so the goal is to offer them as much real estate as possible.

Figure 27

Figure 27 Here's how the model's hair would look if you hadn't separated an edge matte for the hair. This is the very definition of a "chewy" matte—you can see individual, contrasty pixels.

If you push the Clip controls too far and need a way out of that corner without starting over, raise the Clip Rollback value. This control restores detail only to the edge, and only what was there in the original matte operation (with those top five controls). Used in moderation, and with a close eye on the result, it can be effective.

Clip Rollback works as follows: Its value is the number of pixels from the edge that are rolled back. The edge pixels reference the original, unclipped screen matte. So if your edges were looking nice and soft on the first pass and removing noise from the matte hardened them, this tool can restore the subtlety.

Noise Suppression

Are your mattes sizzling? Keylight includes a Screen Preblur option that you should apply only in a zoomed-in view (to examine the result closely), and only with footage that has a clearly evident noise problem, such as source shot on MiniDV. Essentially, this option blurs your source footage before keying it, so it adds inaccuracy and is something of a desperation move. The footage itself doesn't appear blurred, but the matte does.

A better alternative for a fundamentally sound matte is Screen Softness, found under the Screen Matte controls. Screen Softness blurs the matte itself after the key has been pulled and the matte created, so it has a much better chance of retaining detail. Edges in nature are always slightly soft; used to a modest degree (considering that it's introducing error into your key), this control can enhance the realism of a matte (see Figure 28).

Figure 28

Figure 28 The softer hair matte and the harder matte around the torso don't line up, and the torso has an unrealistically hard border (left). Adding Screen Softness and a positive Shrink/Grow adjustment can fix this problem (right).

A more drastic approach, when softening and blurring cannot reach larger chunks in the footage, is using the Despot cleanup tools. Crank these up, and you'll definitely notice undesirable blobbiness in your matte. For this reason, I don't trust these controls and usually leave them alone.

A better approach, particularly with MiniDV and HDV footage (which, by the way, are both guaranteed to add undesirable noise and typically aren't recommended for bluescreen and greenscreen shoots), is to follow these steps:

  1. Convert the footage to YUV by using Channel Combiner (the From pull-down). This action will make your clip look very strange, because your monitor displays images as RGB. Don't be alarmed (see Figure 29).
  2. Apply Channel Blur to the green and blue channels only, at modest amounts. To gauge the result, examine each channel as you work by pressing Alt-2 (Mac: Option-2) or Alt-3 (Mac: Option-3) while zoomed in on a noisy area. Make sure that Repeat Edge Pixels is checked.
  3. Roundtrip back from YUV to RGB, using a second instance of Channel Combiner.
  4. Apply Keylight, and breathe a sigh of relief.
Figure 29

Figure 29 This is how an image converted to YUV should look on an RGB monitor—wrong. The roundtrip around a Channel Blur appears in the Effect controls, but the second Channel Combiner effect is temporarily disabled, hence the strange look.

Fringing and Choking

Sometimes, despite all your best efforts, your extracted matte contains extra, unwanted edge pixels (fringing), or the keyed subject lacks subtle edge detail because the matte is choked too far.

Keylight offers the Screen Grow/Shrink control for such situations. On the other hand, if you have to shrink or expand your matte, it may be a symptom of other problems. Faced with the need to choke or spread a matte (another way of saying shrink or grow), you might first go back and try the initial key again, possibly breaking it down further into more component parts (separating the hair, for instance) using holdout masks. More information on choking and spreading shortly.

Spill Suppression

Keylight suppresses color spill (foreground pixels contaminated by reflected color from the background) when the matte is pulled initially, as part of the keying operation. Thus spill-kill can be practically automatic if you pull a good initial key.

When is this not what you want? First of all, when it's an unwanted byproduct. Sometimes parts of the foreground that you want to keep are close enough in color range to the background that their color is suppressed. Figure 30 shows a scene shot with a greenscreen out the window in which the interior of the set is also meant to begreenish cast, all of of a which was carefully decided and lit on set.

Figure 30

Figure 30 A green-lit set with a greenscreen out the window: Things like this happen all the time. Applying the matte to the plate with spill suppression limited to areas (such as the top of the monitor) that are reflecting the greenscreen solves this problem.

Adjustments to the matte can also expose areas of the clip that aren't spill-suppressed. These areas are indicated by the green pixels in the Status view (as in Figure 21); spill suppression of these pixels may now be off. In such cases, you specify a Replace Method setting. Soft Colour set to medium gray is a good choice if the only affected pixels are at the edge. It's a cheat, but it may make your key look better by gently desaturating pixels that might otherwise pop.

Finally, spill suppression can lead to other undesirable effects on plate footage. In Figure 31, notice how the whole shape of the girl's face seems to change due to the removal of highlights via spill suppression. Even worse, as mentioned earlier, something about the spill suppression operation in Keylight also seems to enhance the graininess of footage in many cases.

Figure 31

Figure 31 The model's face doesn't look the same without the highlights reflected with the green. Even worse, at this magnification it's easy to see that the amount of grain noise has increased significantly. It's a definite case for pulling the matte on one pass and applying spill suppression separately.

Should Keylight's spill suppression become unwieldy or otherwise useless for any of the above reasons, there's an easy out. Create a nice matte without worrying about spill, precompose the result, and apply it as an alpha matte to the foreground source. Color spill can be removed on a separate pass without adversely affecting the plate footage.

Keylight itself also includes additional spill-suppression tools, under the Edge Colour Correction heading (as well as the overall Foreground Colour Correction). Beneath each is a checkbox to enable it, but nothing changes until you adjust Saturation, Contrast, or Brightness below the checkbox (or, alternatively, the Colour Suppression and Colour Balancing tools). If necessary, soften or grow the edge to increase the area of influence.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020