This page provides information about the Surface Luminance extra attributes in V-Ray for Maya.
V-Ray's extra attributes for the Surface Luminance node allow control of luminance calculation.
The most common workflow for the Surface Luminance node attributes is to connect the node to a floating texture input slot of an ExtraTex render element. This way you can control the Luminance mode showing in the ExtraTex channel.
||Select Surface Luminance node|| > Attribute Editor > Attributes menu > VRay > Luminance options
|
The Luminance Options are most commonly used to generate an extra render element with masks for the lit and unlit points of objects in the scene. The common setup is to use the surfaceLuminance node as a texture connected to an ExtraTex render element.
|
Steps:
// The connection is made from the outValue output of the surfaceLuminance node to the vray_float_texture_extratex input of the ExtraTex render element. connectAttr -f surfaceLuminance1.outValue vrayRE_Extra_Tex.vray_float_texture_extratex; |
This group of extra V-Ray attributes can be added and removed from the surfaceLuminance node with script commands. This section also outlines the names of the attributes that are added and their value types.
// Add Luminance Options attributes to surfaceLuminance1 vray addAttributesFromGroup surfaceLuminance1 vray_surface_luminance 1; // Remove Luminance Options attributes to surfaceLuminance1 vray addAttributesFromGroup surfaceLuminance1 vray_surface_luminance 0; |
Attribute | Type | Range | Example (MEL) |
---|---|---|---|
vrayLuminanceMode | integer | 0-4 (where 0 - Disabled | 1 - Direct Only | 2 - Diffuse Only | 3 - Direct+Diffuse | 4 - Matte Shadow) |
|
vrayLuminanceSamples | integer | 0-1000 | setAttr surfaceLuminance1.vrayLuminanceSamples 16; |
vrayLuminanceGIContrib | boolean | true | false | setAttr surfaceLuminance1.vrayLuminanceGIContrib false; |