open all | close all

Sample Legacy Light 遗留光源样本Basic 基础Inputs 投入Outputs 产出

Inputs

投入

Light Object

轻物体

Drag the light source you want to evaluate from the Object Manager into this field to measure its lighting intensity.

拖动光源,你想评估从对象管理器到这个领域,以测量其照明强度。

Threshold[-∞..+∞]

阈值[-∞ . . + ∞]

With the help of this value, you can use the PLight node to control actions based on the brightness of a light source at a particular position in 3D space (defined by the Position values).

有了这个值的帮助,您可以使用 PLight 节点根据3D 空间中特定位置(由位置值定义)的光源亮度来控制操作。

The node outputs a Boole value of either True or False depending on whether the light’s intensity exceeds the Threshold value at this position in 3D space. The node’s On port outputs the value False if the light’s brightness is less than or the same as the Threshold, or True if it exceeds the Threshold. A Threshold of 1 equals a light intensity of 100%.

节点输出一个 Boole 值,真或假取决于光的强度是否超过阈值在这个位置的三维空间。如果光的亮度小于或等于阈值,则节点的 On 端口输出值 False,如果超过阈值,则输出值 True。阈值1等于光强度的100% 。

Color On

颜色

If you want to control actions based on the color of a light source at a particular position in 3D space (defined by the Position values), enable Color and set Threshold to 0 (if you don’t set the Threshold to 0, the light’s brightness will be evaluated also).

如果你想基于光源在3D 空间特定位置的颜色来控制动作(由位置值定义) ,启用颜色并将阈值设置为0(如果你没有将阈值设置为0,光的亮度也将被评估)。

Color

颜色

If you want to control actions based on a light’s color and brightness, in addition set the Threshold value to the desired brightness. See Threshold, above. The node’s On port will then only output the value True if the light’s brightness exceeds the Threshold value and the light’s color is the same/similar color as the Color setting.

如果您希望根据光线的颜色和亮度控制操作,另外还可以将阈值设置为所需的亮度。参见上面的 Threshold。如果光的亮度超过阈值,并且光的颜色与 Color 设置相同或相似,那么节点的 On 端口将只输出值 True。

Color Variation[-∞..+∞]

色彩变化[-∞ . . + ∞]

The Color Variation setting defines how similar — defined as a percentage — the light’s color and the Color setting must be in order to produce a True value. For example, with a value of 0%, the colors must match exactly in order to produce an output of True, while a value of 100% means the colors will match regardless.

色彩变化设置定义了为了产生真值,光的颜色和色彩设置必须有多么相似(定义为百分比)。例如,如果值为0% ,则颜色必须完全匹配才能生成 True 的输出,而如果值为100% ,则意味着无论如何颜色都将匹配。

Position[XYZ m]

位置[ XYZ m ]

This is the position at which the light intensity of the linked light source should be measures. Since the angle with which the incoming light falls also plays a role, an additional Normal vector setting is available that defines a surface Normal at the Position.

这是连接光源的光强度应该测量的位置。由于入射光线落下的角度也起到一定作用,因此可以使用额外的法向量设置来定义位置处的表面法线。

Normal[XYZ ]
Update

正规[ XYZ ]更新

This vector setting defines the direction of a surface Normal that is calculated at the Position location. With this information, the angle of the incoming light can be included in the calculation of the brightness.

此向量设置定义在位置位置计算的表面法线的方向。有了这些信息,入射光的角度可以包括在亮度的计算中。

Time-Dependent

依时间而定

Enable this option, for example, if the light source also has animated parameters to ensure that the Node is updated automatically, even if nothing has changed with the Node’s settings or the position or orientation of the light source.

启用这个选项,例如,如果光源也有动画参数来确保节点自动更新,即使没有任何改变节点的设置或光源的位置或方向。