- Home /
Masking sprites in 3d
I have a game where I plan to have the player represented as a 2d sprite that can walk around a 3d box. essentially, my plan is to have each face have a sprite mask set to reveal the player, so that when the player walks off the edge they disappear, and the next faces player sprite moves onto the edge at the same time, creating the illusion that the player walked around the corner. my problem is that the sprite mask seems to reveal all sprites that should be hidden. Trying to set a custom range for the sprite mask makes the surface cut off the player sprite based on where the camera turns.
TL;DR: I need a way to mask a set of sprites to appear only within an area on a face, without having them appear when over other copies of this mask. Additionally, this is being used with a camera that is moving in 3d, rotating around a 3d object.
Your answer
Follow this Question
Related Questions
Camera movement causes 2D sprites to shake/glitch/jitter 1 Answer
2D sprite with rigidbody - movement stalling in 3D environment 2 Answers
Unity Based Telegram Channel? 0 Answers
Should I create an image for each element in a 2D game? 2 Answers
Make 2D sprites adjust layers based on distance in a 3D World 0 Answers