Versions Compared

Key

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

This page provides information about the Surface Luminance extra attributes in V-Ray for Maya.

Floatingpagetoc

 

Overview

...

V-Ray's extra attributes for the Surface Luminance node allow control of luminance calculation.

...

||Select Surface Luminance node|| > Attribute Editor > Attributes menu > VRay > Luminance options



 

Parameters

 

...

Section
Column
width62%

Luminance Mode – Controls how luminance is calculated. 

Disabled – No luminance is calculated.
Direct Only – Calculates luminance from direct lighting. It creates a grayscale mask over the points of objects lit by direct lighting.
Diffuse Only – Calculates luminance from indirect lighting (GI). It creates a grayscale mask over the points of objects lit by indirect lighting. 
Direct+Diffuse – Calculates luminance from direct and indirect lighting. This creates a grayscale mask over the points of objects by direct and indirect lighting.
Matte Shadow – Creates a grayscale mask over all shadowed points of objects. Unlike the standard Matte Shadow render element, this mode creates a two-sided mask covering both the lit and unlit points of the objects.

Subdivs – Controls the subdivisions for the diffuse lighting, when the Luminance Mode is set to Diffuse only or Direct+Diffuse.

Contribute to GI – When enabled, the direct light contributes to the GI calculations. The effect is visible only when the texture is used for diffuse calculation with either

...

the Diffuse Only

...

 or the Direct+Diffuse

...

 mode.

Column
width5%

 

Column
width33%

Image Added

 

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.

...

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;