1
$\begingroup$

I need a Cycles render of only shadows cast by objects.Compositor nodes for shadows-only rendering

The compositor node setup shown in the screenshot works with a simple test scene in which light is provided by the World Background and the render layer delivers a shadow pass. The result is acceptable in the test- but in a scene with a lot of mesh geometry, the same setup delivers a completely black image. Is this caused by some limitation of computing capacity- can there be too much geometry in a scene, or can lighting be too complicated, for Cycles to deliver a separate shadow pass?

$\endgroup$

2 Answers 2

1
$\begingroup$

Select the object you want to use for shadow data, go to the Object Settings tab, scroll down and enable the Shadow Catcher. Then, if you want it to overlay it on another scene, make a second Render Layer and select the scenes you want to use by pressing shift+LMB. Go to compositing and add an Alpha Over node and two RenderLayer nodes. Plug the first layer's Alpha channel into the Alpha channel of the Alpha Over node, plug its color into the bottom socket and the second layer's color into the top color socket.

$\endgroup$
3
  • $\begingroup$ Note that the built-in shadow catcher does not preserve any indirect light values. $\endgroup$
    – brockmann
    Commented Jan 18, 2020 at 9:44
  • $\begingroup$ The shadow catcher will not deal with ''self shadow'' of objects, but with the shadow projected on other objects. $\endgroup$
    – user1853
    Commented Jan 18, 2020 at 13:04
  • $\begingroup$ I understand that. $\endgroup$ Commented Jan 19, 2020 at 16:51
0
$\begingroup$

For a rendering with shadows only, I found this node setup useful:Compositing nodes that deliver shadows only

In the scene the objects both cast and receive shadows, so I copied all the objects onto a separate layer that is visible during the rendering but not active in the output of the rendering. Thus the rendering reproduces only objects with Shadow Catcher activated.

$\endgroup$

You must log in to answer this question.

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