Convert
转换
Layer 图层Convert
转换
This Field Layer is designed for advanced users who want to convert channels.
这个字段层是为想要转换频道的高级用户设计的。
This layer uses sub-fields (open the channel converter and place Fields in the Source field), takes individual channels (values, color, orientation or even components) of this sub-field and converts them to others. For example, the sub-field’s color component red can be used to control the channel converter’s value channel.
该层使用子字段(打开通道转换器并在 Source 字段中放置字段) ,获取该子字段的单个通道(值、颜色、方向甚至组件)并将其转换为其他通道。例如,子字段的颜色分量红色可用于控制通道转换器的值通道。
Make sure that the sub-field’s channels as well as the channel converter itself are active when the respective channel should be converted.
确保子字段的通道以及通道转换器本身在各个通道转换时处于活动状态。
If parameter name and option match, the respective values will be passed through unchanged (e.g., Value is set to Value or Red is set to Red).
如果参数名和选项匹配,相应的值将不变地传递(例如,Value 设置为 Value 或 Red 设置为 Red)。
To get a feeling for how the channel converter works, place a Constant Field Layer in Source. This will define exactly one value, one color and one direction. This makes it easier to understand how the channel converter works.
要了解通道转换器的工作原理,请在源代码中放置一个常量场层。这将确切地定义一个值,一种颜色和一个方向。这使得理解通道转换器如何工作变得更加容易。
例子
![]() |
![]() |
2 separate but congruent spheres. The sphere on the left defines direction via a Normal tag, which is converted to colors by the sphere on the right in a Vertex Color tag using a channel converter.
两个独立但一致的球体。左边的球体通过 Normal 标签定义方向,该标签通过一个通道转换器被右边的 Vertex Color 标签中的球体转换为颜色。