ZMerge

以适当的3D深度将输入图像合并在一起。通过将每个输出像素设置为具有最接近Z深度值的输入来实现。Z深度值通常存储在单独的深度通道中(例如, depth.z),并确定将物体放置在相机视野内。默认情况下,ZMerge认为较小的Z深度值(较暗的区域)距离相机更近,而较大的值(较亮的区域)距离相机更近,但是您可以反转此行为。

您可以将ZMerge用作创建保持几何的替代方法,但是请注意,如果输入图像包含透明区域或运动模糊,则可能会得到较差的结果或抗锯齿问题。

也可以看看深度节点

输入和控制

连接类型

连接名称

功能

输入值

[编号输入]

图像根据其Z深度值合并在一起。

每个输入应包括一个Z深度通道,该通道描述该图像中对象的深度。ZMerge合并所有输入的深度通道,并使用结果确定每个输出像素应来自哪个输入。

Control (UI)

Knob (Scripting)

Default Value

功能

ZMerge Tab

Z channel

N/A

enabled

在右侧启用关联的Z通道。禁用此复选框与将频道设置为none

z_channel

depth.Z

The channel with the Z depth values. This should be the same for each input. For example, if you are merging two inputs, both data streams should have a Z depth channel in the channel specified here.

smaller Z = further away

backwards

disabled

启用后,较暗的Z值会远离更远的Z值并被较亮的Z值隐藏。这是正确的Nuke皮克斯的RenderMan渲染器,输出1 /距离。

禁用时,较深的Z值会更远,并由较暗的Z值隐藏。

Alpha channel

N/A

enabled

在右侧启用关联的Alpha通道。禁用此复选框与将频道设置为none

alpha_channel

rgba.alpha

When enabled, ZMerge uses the inputs’ alpha channels to blend between the foreground and background. You may want to check this if your input elements have alpha channels and you have a depth map that covers the entire scene (rather than just the individual elements).