Render only visible parts of certain objects?

Hello.

I am trying to create sprites of a character, and then have sprites of different armor and clothing that will be drawn over the “naked” sprites in a 2D game.

https://s2.postimg.org/y5xr480dl/ezgif.com-gif-maker.gif

Please excuse the poor animation, haha.

How would one create sprites of only the gauntlet, but also have blender consider what parts of the armor objects(shoulder, upper arm, forearm, and hand) would be obscured by the base human shaped mesh and cape? I would need sprites with the gauntlet on the other arm behind his torso for example.

Does anyone know of any tutorials that would help me with this, or have any advice they would like to share?

Thank you.

I think the effect you want can be achieved easily using the render layer, mask layer functionality. Looks like this:


You can also look into ‘holdout’ material.