I have had the problem of sprites showing through the character at different angles (see the boar-sketch from a week or so ago), and I'll log some things I've tried here:
Billboarding
A billboard is a type of 2D object that always faces the camera - think the enemies in the first Doom game, or often things like tree-crowns and shrubbery sprites; in essence, things that you are not supposed to see from the side (because they are flat).
I couldn't get this to work properly though, even though after research I tried making my own billboard shader. While the model did turn, it was apparent that it did so, and was distracting on the eyes.
Separate Camera
I tried using a separate camera as well. In Unity, separate cameras can be used to view different objects, and so I attempted adding an orthographic camera, and setting its culling to only the Sprites-layer I had created, but this did not work either, as the model still showed through parts of itself.
One tough way to fix all of this would be to, instead of animating the sprites in-Unity, I could draw each animation and export each frame as a separate picture - but this is simply not feasible in the timeframe, nor is it fun.
This was all a problem I had not anticipated, because my previous game was orthographic, and created parallax scrolling through scripts.
Ingen kommentarer:
Send en kommentar