I'm using blender to render sprites for a game. I have a character mesh, and a T-Shirt mesh, rendered with a transparent background. enter image description here

I want to render the T-Shirt without the character, disabling the character I get this: enter image description here

How to make the polygons that were hidden by the character transparent?


Set the pass index of the shirt to 1 (material tab>settings>pass index). Enable material index for the render layer (render layers tab>passes>material index). Go into the compositor (top bar where it says default, change it to compositing). Select use nodes and set up this node setup:enter image description here

For the top image input on the Alpha Over node set A: to 0.

  • $\begingroup$ Thank you very much for this detailed answer, that's exactly what I'm looking for $\endgroup$ – uzul Nov 12 '17 at 2:20
  • $\begingroup$ I'm trying to make the same operation as described here... All is fine, the only problem I'm having is that I can't get rid of the white background. $\endgroup$ – Outandil Jun 11 '18 at 9:01
  • $\begingroup$ @Outandil See blender.stackexchange.com/q/1303/12 $\endgroup$ – iKlsR Jun 11 '18 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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