Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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

marked as duplicate by David Dec 14 '15 at 0:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 15 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 '14 at 22:43
Newb here. I don't see the surface, Wire, volume, Halo tabs. I have blender version 2.71 – David Silva Smith May 26 '15 at 9:13
@DavidSilvaSmith Make sure you have the render engine set to Blender Internal and that you have created a material – gandalf3 May 26 '15 at 9:44
Do you have a solution for how to do that in Cycles engine? I asked here… – fabrice d Feb 29 at 7:25
@fabriced There are numerous workarounds, but there is no true equivalent in cycles. Yet. It's currently being developed, and hopefully will be part of the 2.8x project – gandalf3 Feb 29 at 9:26

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