设置Alpha节点

设置Alpha节点。

设置Alpha节点 给图像加入一个alpha通道。

输入

图像

Standard color input.

Alpha

Alpha的大小可以设置为整个图像大小,或者使用和连接端口相连的输入框进行设置。

属性

模式

Method to mix the alpha with the input Image.

  • 应用遮罩

    Multiply the input images RGBA channels by the Alpha input value. In this cases, the output is using Premultiplied Alpha.

    替换Alpha

    Replace the inputs alpha channel with the Alpha input value. In this cases, the output is using Straight Alpha.

输出

图像

标准颜色输出。

Note

此节点不是在合成一幅不包含Alpha通道信息的图像时作为多用途解决方案。用户可能希望使用“色度抠像”或“色差抠像”(在其他相应章节有详细介绍)来创建ALpha通道。此节点通常是在(借助提供的合适连接端口)一些比较麻烦的合成项目案例中因为某些原因 不能够 直接使用这些遮片技巧时才使用。

例子

淡出为黑场

从一个场景(镜头)到另一个场景(镜头)的过渡,一个常用手法是“淡出到黑场”。就像它的名字所指的那样,场景逐渐淡出,屏幕变黑。用户也可以“淡出到白场”或任何想使用的颜色,但是黑色是一个比较好的折中选择,在视觉上起到”重新开启”观看者的思路。如下的节点连接图显示了如何利用设置Alpha节点做淡出到黑场效果。

../../../_images/compositing_types_converter_set-alpha_fade-to-black.png

淡出为黑场。

In the example above, the alpha channel of the swirl image is ignored. Instead, a Time Curve node introduces a factor from 0.0 to 1.0 over 60 frames, or about 2 seconds, to the Set Alpha node. Note that the time curve is exponentially-shaped, so that the overall blackness will fade in slowly and then accelerate toward the end. The Set Alpha node does not need an input image; instead, the flat (shadeless) black color is used. The Set Alpha Node uses the input factor and color to create a black image that has an alpha set which goes from 0.0 to 1.0 over 60 frames, or completely transparent to completely opaque. Think of alpha as a multiplier for how vivid you can see that pixel. These two images are combined by the Alpha Over node completely (a Factor of 1.0) to produce the composite image. The Set Alpha node will thus, depending on the frame being rendered, produce a black image that has some amount of transparency. Setup and animate, and you have an image sequence that fades to black over a two-second period.

Note

没有可使用的场景信息

范例的节点连接图没有使用渲染层节点。生成2s动画,没有Blender场景信息被使用。这是使用Blender从建模到动画的强大合成功能的实际范例。(渲染层可以代替图像图层,“淡出节点连接网络”特效也同样可以实现相同的效果)

淡入到标题

To introduce your animation, you will want to present the title of your animation over a background. You can have the title fly in, or fade it in. To fade it in, use the Set Alpha node with the Time Curve node as shown below.

../../../_images/compositing_types_converter_set-alpha_fade-in-title.png

运用设置Alpha节点淡入标题。

在上面的示例中,时间曲线向输入接口提供 Alpha 值。当前渲染图层节点(视图中有标题那个)提供图像。与之前一样,Alpha上叠节点混合(使用 Alpha 值)背景漩涡和 Alpha 标题来生成复合图像。

彩色化BW(灰度)图像

../../../_images/compositing_types_converter_set-alpha_colorizing-image.png

运用设置Alpha节点色彩化一幅图像。

在上面的示例中,请注意渲染输入的蓝色调如何为漩涡染色。您可以将 “设置 Alpha” 节点的颜色字段与此类节点映射一起添加到 BW 图像中。

在如图所示中,使用设置Alpha节点的 Alpha 值参数控制彩色化的显示程度。将设置Alpha节点连接到 Alpha上叠节点的连接端口上可以彩色化任意的灰度图像。