Nút Khóa Hóa Độ Sáng (Luminance Key Node)

../../../_images/compositing_node-types_CompositorNodeLuminanceKey.png

Luminance Key Node.

The Luminance Key node determines background objects from foreground objects by the difference in the luminance (brightness) levels.

Stock footage of explosions, smoke or debris are normally shot against a solid, dark background rather than a green screen. This node can separate the foreground effect from the background. It can also be used for sky replacement for overexposed or gray skies that aren't suitable for chroma keying.

Mẹo

When compositing footage of something that emits light and has a dark background, like fire, a Mix Node using a Screen or Add operator will produce better results.

Đầu Vào (Inputs)

Hình Ảnh (Image)

Đầu vào hình ảnh tiêu chuẩn.

Tính Chất (Properties)

Giới Hạn (Limit)
Cao (High)

Xác định các giá trị thấp nhất được coi là nền trước. (Tức được coi là -- tương đối -- sáng: từ giá trị này đến 1.0.)

Thấp (Low)

Xác định các giá trị cao nhất được cân nhắc là các đối tượng nền. (Tức được coi là các giá trị -- tương đối -- tối: từ 0.0 đến giá trị này.)

Ghi chú

Brightness levels between the two values form a gradient of transparency between foreground and background objects.

Đầu Ra (Outputs)

Hình Ảnh (Image)

Hình ảnh có kênh alpha được điều chỉnh cho vùng chọn khóa hóa.

Matte (Lớp Lồng)

Một bản màn chắn alpha trắng-đen của khóa.

Ví Dụ (Example)

For this example the model was shot against a white background. Using the Luminance Key node, we get a matte out where the background is white, and the model is black; the opposite of what we want. If we wanted to use the matte, we have to switch the white and the black. How to do this? Color Ramp node to the rescue -- we set the left color to White Alpha 1.0, and the right color to be Black Alpha 0.0. Thus, when the Color Ramp gets in black, it spits out white, and vice versa. The reversed mask is shown; its white outline is usable as an alpha mask now.

../../../_images/compositing_types_matte_luminance-key_example.png

Using Luma Key with a twist.

Now to mix, we do not really need the Alpha Over node; we can just use the mask as our Factor input. In this kinda weird case, we can use the matte directly; we just switch the input nodes. As you can see, since the matte is white (1.0) where we do not want to use the model picture, we feed the background photo to the bottom socket (recall the Mix node uses the top socket where the factor is 0.0, and the bottom socket where the factor is 1.0). Feeding our original photo into the top socket means it will be used where the Luminance Key node has spit out Black. Voilà, our model is teleported from Atlanta to aboard a cruise ship docked in Miami.