20.05.2017 Views

Ganbar R. - NUKE 101. Professional Compositing and Visual Effects - 2011

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ToURING THE INTERFACE WITH A BASIC CoMPoSITE 27<br />

n<br />

n<br />

Never color correct premultiplied images. Chapter 4 is all about color correction.<br />

Always transform (move around) <strong>and</strong> filter (blur <strong>and</strong> so forth) premultiplied<br />

images.<br />

You control premultiplication with two nodes in the Merge toolbox: Premult <strong>and</strong><br />

Unpremult.<br />

The rule says that if an image’s RGB channels aren’t black where the alpha channel<br />

is black, then it isn’t a premultiplied image. When you looked at Read2 you noticed<br />

exactly this. The black areas in the alpha channel were a light purple color in the RGB<br />

channels (FigUrE 2.10). This means this image is a … what? A straight image!<br />

Because the Merge node expects a premultiplied image as its foreground input, you<br />

need to premultiply the image first.<br />

1. While Read2 is selected, press Tab <strong>and</strong> type pre. A drop-down menu displays<br />

with the Premult option. Use the down arrow key to navigate to it <strong>and</strong> press Enter/<br />

Return. Alternatively, you can choose the Premult node from the Merge toolbox<br />

(FigUrE 2.11).<br />

There’s now a Premult node called Premult1 connected to Read2. The area outside<br />

the doll’s outline is now black (FigUrE 2.12). It is now a premultiplied image.<br />

You can proceed to place this image over the background.<br />

FIGURE 2.10 This<br />

image shows both<br />

the alpha <strong>and</strong> rgB<br />

channels.<br />

FIGURE 2.11 The Premult node sits in between<br />

read2 <strong>and</strong> Merge1.<br />

FIGURE 2.12 The area that<br />

was light purple is now black.<br />

2. Click Merge1 <strong>and</strong> press 1 on your keyboard.<br />

All that purple nastiness has disappeared. You are now seeing a composite of the<br />

foreground image over the background (FigUrE 2.13 next page).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!