Page History
This page provides information about the Surface Luminance extra attributes in V-Ray for Maya.
Overview
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Parameters
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Setup
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.
Section | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Steps:
- Create a surfaceLuminance node in Maya.
- With the node selected, from the Attribute Editor, add Attributes > VRay > Luminance Options.
- From the Extra VRay Attributes, choose the desired Luminance Mode.
- Create an ExtraTex render element.
- Set the Type to Float Texture.
- Connect the surfaceLuminance node to the Float Texture input plug of the ExtraTex render element.
Code Block | ||||
---|---|---|---|---|
| ||||
// 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; |
Scripting
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.
Code Block | ||||
---|---|---|---|---|
| ||||
// 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; |