Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

I need to render a model on a transparent background. The models have a light source so they should be casting a shadow on a surface (the XY plane). The purpose for this is to overlay the rendered images (out of blender) on an image of the actual surface, so I want to generate the render including a semi-transparent shadow.

I don´t have any problem rendering the models on transparent background, but I can not make a shadow appear. I tried adding a surface below the model so the shadow can fall on it, but now there's the problem of keeping the surface from rendering.

How can I render the shadow on a transparent background?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

On the shadow catcher object, add a material and enable Shadows only in Material > Shadow:

enter image description here

This will make it so that only the shadows cast on the object are shown, the rest of the surface will be invisible, showing the sky behind it.

If you set the alpha to Transparent in Render settings > Shading, the sky will be rendered as image transparency.

enter image description here

share|improve this answer
    
Exactly what I was looking for! Many thanks :) –  Xocoatzin Aug 10 at 22:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.