Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
Column
width10%

 

Column
width40%

Column
width40%

Column
width10%

 

 

Steps:

  1. Create a surfaceLuminance node in Maya.
  2. With the node selected, from the Attribute Editor, add Attributes > VRay > Luminance Options.
  3. From the Extra VRay Attributes, choose the desired Luminance Mode.
  4. Create an ExtraTex render element.
  5. Set the Type to Float Texture.
  6. Connect the surfaceLuminance mode node to the Float Texture input plug of the ExtraTex render element.

...

AttributeTypeRangeExample (MEL)
vrayLuminanceMode
integer0-4 (where 0 - Disabled | 1 - Direct Only | 2 - Diffuse Only | 3 - Direct+Diffuse | 4 - Matte Shadow)

setAttr surfaceLuminance1.vrayLuminanceMode 4;

vrayLuminanceSamples
integer0-1000setAttr surfaceLuminance1.vrayLuminanceSamples 16;
vrayLuminanceGIContrib
booleantrue | falsesetAttr surfaceLuminance1.vrayLuminanceGIContrib false;