V-Ray for Maya Matte / Ray Visibility

Software:
Maya 2018 | V-Ray 3.6

Basic object render visibility can be set through Maya’s Render ‘Stats settings’ in the object shape node.

For more control and Matte Object / Shadow catching options, add VRay Object Properties to the Object (See Example)

To Create a Shadow Catcher:

1) Add VRay Object Properties to the objects (see image)

2) In the VRay Object Properties attributes, check ‘Matte Object’

3) Check Shadws

vray_maya_matte1.jpg

Shadow Catcher Notes:

* Artifacts in shadows while using Light Cache GI (no problem with Brute Force GI)

* When using a Dome Light, the Dome light Back ground will not show through the Matte Object but the Environment background to solve that connect the Dome light texture also to the VRay Enviroment Override.

* In order for ‘Affect Alpha’ to work and produce transparent image, ‘Alpha Contribution’ must be set to -1.

 

Materials:

Matte Shadow and Ray Visibility can also be set through shaders, by using a VRayMtlWrapper:

Untitled-3.jpg

And also by using a VRayRaySwitch texture:

Untitled-4.jpg

Animating visibility in Blender

Software:
Blender 2.78

When setting key-frames to an object’s Visibility or “restrict view-port visibility” property,
Its easy to forget that it doesn’t affect the visibility in rendering but only in the view-port display.
This gave me some really nasty glitches in production when rendered animation turned out different than what I had expected.

Simple solution to that is:
Whenever an object’s visibility needs to be animated,
First thing to do is to set a Driver for the “restrict rendering” property, that would be controlled by the “restrict view-port visibility” property.
That way the animation done on view-port visibility will automatically also control rendering visibility.
What’s needed is a simple single property driver which is very simple to setup and the huge headaches can be avoided that way.

There are plenty of video tutorials about setting up drivers in Blender:
https://www.youtube.com/results?search_query=blender+2.7+drivers

Renderability_Controlled_by_Visibility