扫描谷物

应用胶片颗粒的实际扫描以复制胶片原料的颗粒。从扫描的胶片颗粒循环中选择帧并将其应用于输入图像。这使您可以为CG创作添加纹理,以人为地匹配原始板或“年龄”素材。

也可以看看粮食F_ReGrain

输入和控制

连接类型

连接名称

功能

输入值

未命名

接收谷物的图像序列。

面具

用作遮罩的可选图像。默认情况下,颗粒仅限于蒙版的非黑色区域。

首先,遮罩输入在节点的右侧显示为三角形,但是当您拖动它时,它将变成标记为遮罩的箭头。如果看不到遮罩输入,请确保mask控件被禁用或设置为none

Control (UI)

Knob (Scripting)

Default Value

功能

ScannedGrain Tab

grain

fullGrain

[file dir $program_name]/FilmGrain/

设置扫描的颗粒图像的文件路径。

要创建胶片颗粒图像:

1.   拍摄一张灰卡,然后将结果扫描到文件中。
2.   模糊扫描的图像。
3.   从原始图像中减去模糊的图像。
4.   将0.5加到rgb通道。
5.   将扫描的谷物图像保存为所需的文件类型(例如.rgb)。

frame range

fullGrain.first_
frame

1

设置要使用的纹理文件的第一帧。

fullGrain.last_
frame

50

Sets the last frame of the grain file to use. Approximately 50 frames are required to produce random grain.

min. width

minwidth

721

设置图像必须具有的最小宽度(以像素为单位),以便应用纹理。

设置最小宽度以确保颗粒分辨率与图像匹配,否则可能会得到不想要的结果。

resize

resize

enabled

启用后,调整grain盘以匹配您的输入。

禁用时,将裁切谷物板以使其匹配。

flip

flip

disabled

通过允许随意地水平和垂直翻转纹理板来增加可用的纹理图像数量。翻转可以产生更随机的晶粒扩展,但是会增加处理时间。

offset

offset

0.5

设置要从图像中减去的中性灰度值。该值越接近输入的灰色,可见的颗粒越多。

Amount of grain

amount rgb

amount

0.30000001

设置应用于谷物的红色通道的乘数。

0.40000001

Sets the multiplier for the green channel applied to the grain.

0.5

Sets the multiplier for the blue channel applied to the grain.

saturation

saturation

1

设置所有通道上的谷物色调强度。

use precomputed table

use_precomputed

enabled

启用后,输出LUT钳位在0和1之间。默认情况下启用此控件是为了向后兼容。

停用后, Nuke不钳制LUT。

curve editor

weight

N/A

grain序列的颜色曲线。您可以使用它们来编辑单个通道的增益,伽玛,对比度等。您还可以在查看器中查找当前像素的颜色信息。

reset

N/A

N/A

将所选曲线恢复为默认值。

low_clip

low_clip

0

根据输入图像设置低阈值。

通常,将颗粒添加到图像时,某些输入像素值会变高,而其他像素值会变低。此控件使您可以阻止像素值低于某个特定值,例如图像中的黑点。

seed

seed

1

每个帧产生不同的纹理图案。更改此数字以获得不同的初始模式,例如,如果您使用多个ScannedGrain节点。

如果每个帧都需要相同的纹理板,请输入-frame在这个领域里。

mask

N/A

disabled

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

maskChannelInput

none

The channel to use as a mask. By default, the grain is limited to the non-black areas of this channel.

inject

inject

disabled

复制mask输入到预定义mask.a渠道。注入面罩可让您在下游使用同一面罩。

invert

invert_mask

disabled

反转了遮罩通道的使用,因此颗粒仅限于遮罩的非白色区域。

fringe

fringe

disabled

启用后,仅将效果应用于蒙版的边缘。

禁用时,该效果将应用到整个蒙版。

(un)premult by

N/A

disabled

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

unpremult

none

The image is divided by this channel before being processed, and multiplied again afterwards.

If you are using premultiplied input images, you may want to check (un)premult by and select rgba.alpha here. This will simulate applying the grain before the premultiplication was done. It is the same as adding an Unpremult node before this node and a Premult node after, but allows you to work faster if you’re only using one ScannedGrain node.

If you are using unpremultiplied input images, you should leave this set to none.

invert

invert_unpremult

disabled

反转(非)预乘通道的使用。

mix

mix

1

在0的原始图像和1的全颗粒效果之间溶解。

分步指南

使用实用谷物