0

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?

uzul
  • 103
  • 2

1 Answers1

2

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.

legoparrot
  • 326
  • 1
  • 3
  • Thank you very much for this detailed answer, that's exactly what I'm looking for – uzul Nov 12 '17 at 02:20
  • 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. – Outandil Jun 11 '18 at 09:01
  • @Outandil See https://blender.stackexchange.com/q/1303/12 – iKlsR Jun 11 '18 at 13:12