The Mesh light is a type of VRayLight that takes its shape and size from a mesh object.
The Mesh Light is a type of Area Light (VRayLight) that turns a mesh object into a light source. It is useful for representing light sources that are not planar or spherical, such as string lights or lanterns.
Note: It is best to enable GI when using a Mesh light. This will allow V-Ray to use combined direct and GI sampling of the mesh light for best results. Without GI, the light may produce noisy results for surfaces that are very close to it. Currently there are some restrictions when using mesh lights; refer to the Notes section below.
© Eidos Montreal
Create menu > Lights > V-Ray > V-Ray Mesh Light >
Click and drag in a viewport
||Create panel|| > Lights > Choose V-Ray from dropdown > VRayLight >
click and drag in a viewport > Change Type to Mesh
||V-Ray Toolbar|| > V-Ray Mesh Light button >
Click and drag in a viewport
A mesh light is being used as a lamp in the images below.
Mesh light in viewport
Mesh light rendered
Parameters - General Rollout
On – Turns the VRayLight on and off.
Type – Specifies the shape and function of the light:
Plane – The VRayLight takes the shape of a planar rectangle. See the Plane, Disc, Sphere Light page.
Sphere – The VRayLight has the shape of a sphere. See the Plane, Disc, Sphere Light page.
Dome – The VRayLight emanates from a spherical or hemispherical dome around the scene extents.. See the Dome Light page.
Mesh – Allows the usage of any mesh object as the shape of the light. This page describes the parameters and usage for this type of light.
Disc – The VRayLight takes the shape of a planar disc. See the Plane, Disc, Sphere Light page.
Targeted – When enabled, a separate target object is attached to the light source. This option does not change the lighting behavior of the Mesh light. This option can be changed only on the Modify panel.
Units – Specifies the light units. Using correct units is essential when you work with the Physical Camera | VRayPhysicalCamera. The light will automatically take the scene's unit scale into consideration to produce the correct result for the scale you are working with. The possible values are:
Default (image) – The color and multiplier directly determine the visible color of the light without any conversion. The light surface will appear with the given color in the final image when seen directly by the camera (assuming there is no color mapping involved).
Luminous power (lm) – Total emitted visible light power measured in lumens. When this setting is used, the intensity of the light does not depend on its size. A typical 100W incandescent light bulb emits about 1500 lms of light.
Luminance (lm/m²/sr) – Visible light surface power measured in lumens per square meter per steradian. When this setting is used, the intensity of the light depends on its size.
Radiant power (W) – Total emitted visible light power measured in watts. When using this setting, the intensity of the light does not depend on its size. Keep in mind that this is not the same as the electric power consumed by a light bulb for example. A typical 100W light bulb only emits between 2 and 3 watts as visible light.
Radiance (W/m²/sr) – Visible light surface power measured in watts per square meter per steradian. When this setting is used, the intensity of the light depends on its size.
Multiplier – Multiplier for the light color, and also the light intensity for some Units settings.
Mode – Specifies the mode in which the color of the light will be determined:
Color – When this option is selected, the Color swatch specifies the color of the light rays and of the light source itself when visible in renderings. For Units settings other than Default (image), this color is normalized so that only the color hue is used.
Temperature – When this option is selected, the color of both light rays and the light source itself is specified by the Temperature value expressed in Kelvin.
Texture – Enables the use of a texture for the light surface. The button under this option selects the map to use. The texture intensity is also affected by the Multiplier value.
Res – Specifies the resolution at which the texture is resampled for importance sampling.
Parameters - Mesh Light Rollout
Flip normals – If enabled, the normals of the mesh source will be inverted thus producing light on the opposite side.
Pick mesh – Click to select any triangle mesh object from the scene as the shape of the light. If no mesh is specified, the light assumes a box shape.
Replace mesh with light – If enabled when you pick the mesh, the mesh becomes a light source and the mesh object no longer exists in the scene as a mesh object. When this option is disabled, a copy of the picked mesh's structure is created at the location of the VRayLight icon, and this becomes the light source.
Extract mesh as node – Use to restore when you have created a mesh light replacing the actual geometry with the light you can get the original geometry back by clicking on this button.
Parameters - Options Rollout
Exclude – Excludes objects from being illuminated or from shadow-casting for the light.
Cast shadows – When enabled (the default), the light casts shadows. Turn this option off to disable shadow casting for the light.
Double-sided – This option has no effect for Mesh light sources.
Invisible – Controls whether the shape of the light source is visible in the rendered image. When this option is disabled, the light source is rendered in the color specified by the Color or Temperature setting in the Intensity rollout. This option only affects the visibility of the light when seen directly by the camera or through refractions. The visibility of the light with respect to reflections is controlled by the Affect reflections option.
Note: Regardless of whether this option is enabled, the light source will still be taken into account by Global Illumination calculations, which might cause secondary GI rays to be blocked by or bounced off the light's surface. To make the light completely invisible to GI, place a VRayColor texture map into the light's texture slot and set the alpha value for the VRayColor map to 0.0.
No decay – Normally the light intensity is inversely proportional to the square of the distance from the light (surfaces that are farther from the light are darker than surfaces which are closer to the light). When this option is enabled, the intensity will not decay with distance. For more information, see the No Decay vs. Real-World Light Behavior example on the Plane, Disc, Sphere Light page.
Skylight portal – When enabled, the light behaves as a portal or conduit for the environment behind it. With this option, the light takes its intensity and color from the environment behind it rather than from the Color and Multiplier parameters. For more information, see The Skylight, Self-Illuminated Panels and VRayLights example on the Plane, Disc, Sphere Light page.
Simple – Available only if the Skylight portal option is enabled. When this option is enabled, the portal will only use colors from the environment map and not from any scene objects behind the portal. When this option is disabled, the portal light takes its color from both the environment map and objects behind the light source. If this option is disabled, the light traces additional rays to render the objects, which might slow down the rendering. Enabling this option makes the rendering of portal lights faster.
Store with irradiance map – When enabled and Irradiance map is used as a GI engine, V-Ray will calculate the effects of the VRayLight and store them in the irradiance map file. The result is that the irradiance map is computed more slowly but the rendering takes less time. You can also save the irradiance map file and reuse it later.
Affect diffuse – Determines whether the light will affect the diffuse portion of the materials. The Multiplier value on the Intensity rollout controls the light's contribution to the diffuse portion of the materials.
Affect specular – Determines whether the light will affect the specular portion of the materials. The Multiplier value on the Intensity rollout controls the light's contribution to specular reflections.
Affect reflections – Specifies whether the light source will appear in reflections.
Parameters - Sampling Rollout
Subdivs – This parameter is disabled by default since most users will not need local control of subdivs, however this parameter controls the number of samples V-Ray takes to compute lighting locally for this light. Lower values create more noise, but render faster. Higher values produce smoother results but take more time to render.
To activate this parameter and specify a value, use the Use local subdivs parameter under the V-Ray tab > Global DMC rollout in the Render Setup window. Note that the actual number of samples also depends on the Global DMC Settings. By default, this parameter is controlled by the Min samples parameter in the Advanced user mode of the Global DMC rollout.
Shadow bias – This value moves the shadow toward or away from the shadow-casting object (or objects). Lower values move the shadow toward the object(s) while higher values move it away. If this value is too low, shadows can "leak" through places they shouldn't, produce moire patterns or make out-of-place dark areas on meshes. If this value is too high, shadows can "detach" from an object. If the value is too extreme in either direction, shadows might not appear in the rendering at all.
Cutoff – Specifies a threshold for the light's intensity, cutting off the light's effect on a surface when it falls below this value. Lights lose intensity due to GI bouncing or decay. When light hits a surface but its intensity falls below the cutoff, the effect of the light on that surface is not computed. This can be useful in scenes with many lights, where you want to limit the effect of the lights to some distance around them or reduce computations (and thus reduce rendering time) where the light's impact is negligible. Larger values limit the light's effect on objects to a smaller area around the light source, while lower values increase the range of the light's effect. If you specify 0.0, there is no cutoff and the light will be calculated for all surfaces regardless of intensity loss. The default value is 0.001.
Parameters - Viewport Rollout
Enable viewport shading – When enabled, the effect of the light is visible in the viewport.
Viewport wire color – When enabled, the light's wireframe is displayed in the specified color in viewports.
Icon text – Enables or disables the preview of the light name in the viewport.
Advanced Options Rollout
This option does not generally need to be changed.
Use MIS – Enables or disables Multiple Importance Sampling for the light. When MIS is enabled (the default), the light's contribution is split between direct illumination on the one hand, and GI (for diffuse materials) or reflections (for glossy surfaces) on the other, providing both direct illumination and GI are enabled for the light. This means that portions of the light's contribution will end up in the GI render elements (or the reflection render elements respectively). In certain specific situations this is undesirable and this option can be used to always calculate the light contribution through direct illumination.
Note: Disabling the Use MIS option might increase noise, especially in glossy reflections. Only disable it when you have a specific reason for doing so.
Example: Multiple Importance Sampling of Area Lights
This example demonstrates multiple importance sampling of area lights with direct and indirect lighting in V-Ray. A Mesh light is shown here, but the same principle applies in varying degrees to all other types of VRayLights. It is also valid for objects to which a Light Emitting Material (VRayLightMtl) has been assigned with the Direct Illumination option enabled. Multiple importance sampling can be disabled with the respective parameter in the Advanced section (see below).
GI is off. Areas close to the light are noisy,
while areas far from the light are smooth.
It will take a lot more samples to clear the noise.
Only GI (Brute force). Areas away from the light are noisy,
while areas close to the light are smooth.
It will take a lot more samples to clear the noise.
Direct illumination and GI – combined sampling through MIS.
Both areas close to the light and areas away from it are smooth.
When using Mesh lights, it is best to have GI enabled. This allows V-Ray to use combined direct and indirect sampling for the light, which greatly reduces the noise for surfaces close to the light.
Currently, Mesh lights do not work properly if the mesh source object has motion blur applied to it. This will be implemented in a future release. Motion blur works properly for Plane, Disc and Sphere lights.
- When the Store with irradiance map option is check on any V-Ray Light it is then no longer treated as a direct light source and will not be available within the Light Select Render Element.
- When a Mesh light is visible in a rendering, the edges of the light source can appear to be aliased. This happens because the light source color is usually very, very bright, far beyond the range of what an ordinary monitor can display, and antialiasing involves changing the colors of pixels at the edges of objects to a color midway between two other colors. When V-Ray applies antialiasing to a light source's edges, any colors midway between the light color and surrounding object colors are still very bright, beyond what a monitor can display, and the antialiasing pixels appear to be the same color as the light source. To solve this problem, use a VRaySoftbox texture on the light source, or use Lens Effects to soften the edges of the lights after rendering.