1
$\begingroup$

This question and its answers give nice ways of creating plane shadow catchers that make the CG objects "interact" with the HDRI world.

My question is very similar, but different in the sense that I don't want the HDRI world ground to catch my shadows. Instead, I want a transparent plane to catch my shadows. Something similar to this short video tutorial, which succeeds under lamp lighting, but fails to do so under HDRI lighting.

$\endgroup$
3

1 Answer 1

2
$\begingroup$

A Hacky way to do this is by using a few render layers and object or material IDs

For a scene like this, where the object is lit exclusively by the environment (no lamps on the scene)

enter image description here

Make a copy of all of the objects, move them to a new layer and set new layer to use a single white material.

enter image description here

Set the render layers so that each render layer corresponds to the layers for the scene and excludes the other layer.

For the Layer that will hold the shadow only make the objects invisible to camera, so that the only information on for the layer will be a plane and the shadow. Make sure you enable material Index for the first render layer.

enter image description here

enter image description here

Give the object on the first render layer a material ID: enter image description here

In the compositor set the Render layer with the shadow over white using alpha over. This will become the base image to use for whatever compositing you want to do.

enter image description here

If you combine it with the Material ID/Index Pass you can then create an alpha channel with the object and the shadow, to be used to key the original image.

enter image description here

enter image description here

$\endgroup$
1
  • $\begingroup$ +1 for the great answer (as always!). I believe this follow-up question must be trivial, but how do you make only the shadow catcher plane transparent? I don't want the background to be transparent. Many thanks! $\endgroup$ Commented Jan 1, 2017 at 5:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .