Versions Compared

Key

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

...

 

Tutorial steps


In this tutorial, we turn a plane into a shadow catcher/matte object. There are two ways to do that:

Fancy Bullets
typecircle
  • by using the V-Ray Object Properties
  • by using the VRayMtlWrapper material

Open the scene you will use for this tutorial and let's delve into each method.

 

Using V-Ray Object Properties


 

Section
Column
width55%

Select the object, which will become a shadow catcher. In our case we select a plane.

Right click on it in the viewport and select V-Ray properties.

Alternatively, you can also use the Make a V-Ray shadow catcher through the V-Ray Object Properties () button on the V-Ray toolbar, which loads the same settings for you.

Column
width5%
 
Column
width40%
 

 


 

Section
Column
width55%

In the Matte properties section:

Fancy Bullets
typecircle
  • enable the Matte object option;
  • enable the Matte for refl/refr option;
  • set the Alpha contribution to -1.0 (this makes the received shadows take away from the alpha information for compositing later).

 

In the Direct light section:

Fancy Bullets
typecircle
  • enable the Shadows (this option makes the object receive shadows);
  • enable the Affect alpha option (this makes the received shadows affect the alpha, and the Alpha Contribution specifies whether to add to the alpha if set to 1.0, take away if set to -1.0 or leave the alpha unchanged if set to 0.0).

 

This turns the plane into a Matte object. This means that it is not directly visible in the scene; instead the background color is shown in its place. Please note that this effect works only on objects that have these V-Ray properties set.

Column
width5%
 
Column
width40%

Image RemovedImage Added

UI Text Box
typeinfo

Optionally, the reflections that the car geometry receives can be overridden with another texture or a color. To achieve this, enable Secondary matte environment option from Render Setup > V-Ray tab > Environment rollout > Secondary matte environment where a different HDRI can be used as Secondary Matte texture.

Expand
titleClick here to expand an image of the parameters involved.
Section
Column
width25%
 
Column
width50%

Column
width25%
 
Here's how the reflections and refractions are changed by the Secondary matte environment. The use of a secondary matte texture is not mandatory and can be omitted. 
Expand
titleClick here to expand the final images.
Section
Column
width25%
 
Column
width50%
Before after
afterLabelon
beforeLabeloff
Panel
borderStylenone
Panel
borderStylenone
Column
width25%
 

 

 

...