Versions Compared

Key

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

This page gives information on the Light Select Render Element.

 

Overview

...

Section
Column
width60%

The Light Select Render Element represents the lighting contribution from a list of selected lights. It can output their direct contribution (in Raw, Diffuse, Specular or normal Illumination mode) or their Full effect on the scene illumination (including GI, SSS, reflection, refraction, etc.). Multiple VRayLightSelect elements can be rendered for a single scene, and lights may be included in more than one VRayLightSelect element. However, a good practice is to have one Light Select element for each light source in your scene. This way, specific lights in the result render can be adjusted (color, temperature, brightness, etc.), while compositing without the need of re-render.

For example, by generating a Light Select element for all of the backlights in a scene, an artist may adjust the backlighting of the rendered scene easily in the composite without affecting the rest of the scene's illumination.

The Light Select Render Element can also work with VRayLightMtl, self-illuminating VRayMtl, and also 3ds max Physical material with non-black emission color.

 

UI Expand
titleUI Path: ||Render Setup window|| > Render Elements tab > Add button > VRayLightSelect

 

Column
width5%
 
Column
width35%

Image RemovedImage Added

 

Parameters

...

Section
Column
width60%

Include lights – A list of lights included in the VRayLightSelect Render Element. Available when Select by is Lights and Type is Include.

Exclude lights – A list of lights included in excluded from the VRayLightSelect Render Element. Available when Select by is Lights and Type is Exclude.

Include layers – A list of layers included in the VRayLightSelect Render Element. Available when Select by is Layers and Type is Include.

Exclude layers – A list of layers excluded from the VRayLightSelect Render Element. Available when Select by is Layers and Type is Exclude.

+ (Add) – Adds a light to the VRayLightSelect Render Element.

 - (Remove) – Removes a light from the VRayLightSelect Render Element.

Remove all – Removes all lights from the VRayLightSelect Render Element.

Type – Specifies how the list of lights works from the following:

Include – Includes the listed lights in the render channel.
Exclude
 – Excludes the listed lights in the render channel.

Select by – Specifies how to select items in the list.

Lights – Directly select lights from the scene.
Layers  Only Considers only lights from the selected layers (and their sub-layers) are considered. This is useful with XRef scenes.

VrayVFBVRayVFB – When enabled, the render element appears in the V-Ray Virtual Frame Buffer.

Deep output – Specifies whether to include this render element in deep images.

Color mapping – Applies the color mapping options specified in the the Color mapping rollout (Render Setup window > V-Ray tab) to this render element. This option is enabled by default.

Multiplier – Sets the overall intensity of the render element, where 1.0 is the standard multiplier.

Denoise – Specifies whether to denoise this render element if if VRayDenoiser render  render element is present.

Material – Specifies an illuminating material whose contribution is rendered in the VRayLightSelect element. V-Ray respects these materials: VRayMtl with non-black self-illumination, VRayLightMtl, and 3ds Max native Physical Material with non-black emission color.

Mode – Sets what type of lighting contribution is generated in the element as follows: 

Anchor
Mode
Mode

Direct illumination – Contains diffuse and specular information from the specified lights. 
Direct raw – Lighting within the VRayLightSelect element behaves as a raw render element.
Direct diffuse – Lights output only their diffuse contribution and contain no specular information.
Direct specular – Lights output only their specular contribution and contain no diffuse information.
Full – Lights provide full output for all information available in the scene such as GI, SSS, reflection, refraction, etc.
Indirect – Lights output only the indirect scene lighting.
Indirect diffuse – Lights output only indirect scene lighting that originated from the diffuse contribution of the specified lights.
Indirect specular – Lights output indirect scene lighting that originated from the specular contribution of the specified lights.
Subsurface – Lights output only the information calculated from Subsurface Scattering materials.
Light path expression – Allows capturing custom light transport paths with regular expressions. See the Light Path Expression page for more information.

Light path expression – Specifies custom light transport paths when Mode is Light path expressions.

Presets – Provides a list of presets for light path expressions.

Column
width5%

 

Column
width35%

Image Modified

 

Common Use: Changing Lighting in Composite

...

Below is an example of how to use the Light Select Render Element in a composite.

For this example, each light the Dome Light is assigned two VRayLightSelect render elements: The first element's Mode is set to Direct diffuse, and the second element's Mode is set to Direct specular. This gives a finer degree of control to allow separate tuning of each the light's diffuse and specular contributions. In addition, two of the lights were light is rendered with a third element with the Mode set to Full.

The images below use 4 lights. These are two Plane lights with a Light Softbox Map (lights #1 and #2), a softbox Plane light with no specular contribution (light #3), and a Dome light.

For Light #3, although the diffuse contribution is low, it is essential to the overall lighting of the scene in this example. This light has no specular contribution, so the Light Select specular element would render as black. 

VRayLightSelect Render Examples

 

Section
Column
width10%27%
 
Column
width40%45%

Image Removed
Light Select Dome Light Diffuse element 

 

Column
width40%
Image Removed
Image slider
Panel
borderStylenone

Image Added

Light Select Dome Light

Specular

Diffuse element

 
Panel
 
Column
width10%

 

Column
width40%
Image Removed 
borderStyle

 

Column
width10%

 

Section
none

Image Added

Light Select Dome Light

in Full Mode

 

Column
width40%

Specular element

Panel
borderStylenone

Image Added

Light Select Dome Light in Full mode

Image Removed 
Light Select Light #1 in Full Mode

 

Column
width10%28%

 

Section
Column
width10%

 

...

width40%

Image Removed
Light Select Light #1 Diffuse element

 

Column
width40%

Image Removed 
Light Select Light #1 Specular element
(specular contribution is minimal)

 

Column
width10%

 

...

Example: Compositing

VRayLightSelect is useful for editing the lights in a scene using a compositing or editing program. See the Beauty element before and after compositing.

Before after
darktrue
Panel
borderStylenone

Image Added

Panel
borderStylenone

Image Added

Section
Column
width10%

 

Column
width40%

Image Removed 
Light Select Light #2 Diffuse element

Column
width40%

Image Removed 
Light Select Light #2 Specular element
(specular contribution is minimal)

 

Column
width10%

 

Section
Column
width10%

 

Column
width40%

Image Removed
Light #3 (no Specular contribution) Diffuse element

 

Column
width40%

Image Removed
Combined Light Select Diffuse elements
(Same result as VRayLighting Render Element)

 

Column
width10%

 

Section
Column
width10%

 

Column
width40%

Image Removed
Combined Light Select Specular elements

 

Column
width40%

Image Removed 
Combined Light Select Diffuse and Specular elements
(Diffuse and specular contributions from all lights)

Column
width10%

 

Section
Column
width5%

 

Column
width30%

Image Removed
Beauty element prior to changes

 

Column
width30%

Image Removed
Warmed and increased intensity of Dome light
and warmed Plane light

 

Column
width30%

Image Removed
Cooler Light #1 Diffuse contribution
and warmer Specular contribution

 

Column
width5%

 

Compositing Equation

...

The following diagram shows the compositing formula to recreate all the scene Lighting from light sources when each light in the scene is accounted for in exactly one VRayLightSelect render element in Direct diffuse mode.

...

Section
Column
width10%

 

...

Column
width80%

 Image Added

Column
width10%

 

 

 

The diagram above illustrates that the sum of all VRayLightSelect Render Element set to Direct diffuse mode represents the VRayLighting render element which can be used in the Back to Beauty composite. For the above equation to work correctly, all enabled lights need to be accounted exactly once in the VRayLightSelect render elements. This happens with either specifying each light in a separate element, or combining them in a practical manner in several elements and avoiding repetitions.

...

When the VRayLightSelect render element is set to Full mode, the sum of all lights' output composes the Beauty pass. This is only true when the environment is black and no environment override is used. There should be no self-illuminating materials, because they can't be added as contributing light sources in the VRayLightSelect render element. Caustics are not included in the calculation of VRayLightSelect Render Element.

...