使用“mib_amb_occlusion”着色器执行遮挡过程时,可以选择从遮挡计算中排除一个或多个对象。
执行下列操作之一:
方法 1:隐藏
在对象的变换节点中,展开 mental Ray 区域。在“标志”(Flags)区域中,禁用“源于 Maya”(Derive From Maya)并启用“隐藏”(Hide)。
方法 2:添加 miLabel
例如,假设 $targetTransform 是变换,请按如下方式设定 miLabel:
addAttr -at short -longName miLabel -defaultValue <your value> $targetTransform;
将 miLabel 设定为对于场景唯一的值。换句话说,请选择当前未用于场景中的其他 mental Ray 标签的值。
例如,如果将 id_inclexcl 值设定为 8,则在遮挡渲染中仅会包括 miLabel 为 8 的变换。
但是,如果将 id_inclexcl 值设定为 -8,则会从遮挡渲染中排除 miLabel 为 8 的所有变换。
有关 mib_amb_occlusion 节点的详细信息,请参见 mental ray for Maya 节点部分。