This page describes the use of ray traced shadows on Max lights within V-Ray.
The VRayShadow plugin can be used to achieve raytraced shadows with standard 3ds Max lights and V-Ray. Note that in most cases, the standard 3ds Max Ray Traced Shadows will not work with V-Ray. You must use the VRayShadow shadow generator instead. In addition to supporting blurry (or area) shadows, they will also cast correct shadows from objects with V-Ray displacement, as well as from transparent objects.
||Create a standard 3ds Max light|| > Modify panel > General Parameters rollout > choose VRayShadow from dropdown
Transparent shadows – Determines the behavior of the shadows when there are transparent objects in the scene. When this option is on, V-Ray will calculate shadows regardless of the light's Object Shadows settings (Color, Density, Map, etc.), however the color of shadows from transparent objects will be correct. When this option is off, the shadows will take into account the Object Shadows parameters of the light, but shadows from transparent objects will be monochromatic (shades of gray only). For more information, see The Changing Shadow Colors example below.
Bias – V-Ray can compute the shadows at a point that is slightly displaced towards the light from the actual surface being shaded. This may be useful to prevent "surface acne" (black spots on the surface because of incorrect self-shadowing).
Area shadow – Turns area shadows on and off.
Type – Determines the way in which the area shadows are calculated:
Box – V-Ray computes the shadows as if they were cast by a light source with the form of a box.
Sphere – V-Ray computes the shadows as if they were cast by a light source with the form of a sphere.
U size – Specifies the U size of the light source V-Ray takes into account when computing area shadows (if Sphere light source is selected, U size corresponds to the sphere's radius).
V size – Specifies the V size of the light source V-Ray takes into account when computing area shadows (this parameter has no effect when Sphere light source is selected).
W size – Specifies the W size of the light source V-Ray takes into account when computing area shadows (this parameter has no effect when Sphere light source is selected).
Sub divs – Controls the number of samples V-Ray will take to compute area shadows at a given point. More subdivs mean less noise, but will render slower. For more information, see VRay Shadow as Raytraced and Area Types/ Subdivisions vs Quality Bias example below. Note that this parameter is available for changing only when Use local subdivs is enabled in the Global DMC Settings.
Example: Area Shadow Types: Box vs Sphere / U, V, W Sizes
When the Sphere type is chosen, the VRayShadow takes under consideration only the U size value. The V and W sizes don't affect the final result. In other words, this means that our light source has a Sphere form and emits rays equally in all directions.
Type Sphere, U: 1, V: 1, W:1
Now the light source has a Box form. In this case VRayShadow takes under consideration all the U, V, W size values. See how the shadow is strong according to the U axis and is much softer to the V one.
Type Box, U: 1, V: 10, W:5
Now the shadow is looking very different compared to the previous one. You can notice how the size values has influenced the final result of it.
Type Box, U: 10, V: 1, W:5
Example: VRayShadow as Raytraced and Area Types /Subdivisions vs Quality / Bias
Increasing the Subdivisions leads to better shadow quality. Of course that also leads to higher render time, as V-Ray calculates more samples, You can still notice some grain in the shadow.
Transparent Shadows: On, Area Shadows: On, Subdivisions: 24
With these settings the VRayShadow acts like a Raytraced Shadow. In this case the Subdivisions have no effect on the final result. Notice that VRayShadow takes in concern only the geometry of the objects and the transparency of their materials (we have colored shadows).
Transparent Shadows: On , Area Shadows: Off, Subdivisions: 8
Again VRayShadow acts like a Raytraced Shadow, but this time with Transparency off. Now we still get the transparent level due to the material, but we don't have the colors any more.
Transparent Shadows: Off , Area Shadows: Off, Subdivisions: 8
Now with this value of Subdivisions we have a much better shadow quality. Using this parameter wisely can save lots of render time.
Transparent Shadows: On , Area Shadows: On, Subdivisions: 48
Biased shadow. Bias moves the shadow toward or away from the shadow-casting object (or objects). If the Bias 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 Bias is too high, shadows can "detach" from an object. If the Bias value is too extreme in either direction, shadows might not be rendered at all.
Transparent Shadows: On, Area Shadows: On, Bias: 0.4 , Subdivisions: 8
Example: Changing the Shadow Color
In this case the Color value (R,G,B) in the Shadow Parameters rollout has no effect. In order to change the shadow color, the Transparent parameter has to be off.
Transparent Shadows On
Transparent Shadows Off, Shadow Color Green
Transparent Shadows off, Shadow Color Red