Skip to main content
7 of 17
added 270 characters in body
user avatar
user avatar

You can do a shadow catcher using a shadow pass and different render layers to create an alpha channel for the scene:

  • Move the plane object (shadow catcher) to layer2.

  • Make a copy of the other objects and move them to layer 2.

The idea is that on layer 1 you only have your objects but not the plane. And on layer 2 a copy of your objects and the plane that will act as shadwow catcher.

enter image description here

  • On all of the objects in layer 2, except for the plane, disable Ray visibility for camera. We just want the plane to be visible, the other objects should be transparent but we keep the shadows they project on the plane:

enter image description here

  • Make sure your lamps and camera are active in layers 1 and 2.

enter image description here

  • Set two render layers:

    One for the objects in layer one that excludes information from layer 2.

    A second render layer for the shadows that includes a shadow pass and excludes layer 1.

enter image description here

  • Enable Film. Transparent.

enter image description here

  • In the compositor combine the alpha channel of the object's layer and the inverted shadow pass to create a new alpha channel for the scene, this one will include the shadows as part of the alpha.

enter image description here

You can control the transparency of the shadows by changing the color on the empty socket of the mix node. If you make that color white the shadows will be fully opaque, if you make it black you'll have no shadows.

enter image description here

user1853