Search Unity

Mask 3D Mesh but keep occlusion ?

Discussion in 'General Graphics' started by givizator, Oct 25, 2019.

  1. givizator

    givizator

    Joined:
    Oct 23, 2018
    Posts:
    30
    Hi guys,

    I'm looking for a method to set a mesh to be invisible (masked) but still block the visibility on things behind it.

    My goal is to use my 3D models to generate 2D sprites (with Sprite Baking Studio) for a Paper Doll setup.

    The end result would be similar to : https://github.com/clintbellanger/flare-game/tree/master/art_src/characters/hero

    I would setup the character to be "invisible" and have the amors and weapons rendered on sprite with holes where the characters is masking them.

    But I have no idea how I could set the character into that "invisible" mode ?

    Any help is appreciated !

    Thanks

    PS : I'd like to not use Blender for that, mostly because I dont know how to use it but also because all my spriting setup is already done inside Unity...