PopeSpaceous / Solitary

A 2D Puzzle Platformer built with Unity
Other
6 stars 10 forks source link

Fix Uneven Pixels on Sprites #110

Open PopeSpaceous opened 5 years ago

PopeSpaceous commented 5 years ago

When Playing the game, the Main character's features expand and contract oddly. image image

This is not because of the sprite work. Not sure what is causing it, could be in the animation tree.

lejara commented 5 years ago

Its least likely to be the animation tree since its job is to only change to another sprite.

What you see are uneven pixels, I suspect that it has to do with how the main camera renders the sprite and how the sprite settings are set.

Creating to a pixel perfect camera and adjusting the character sprite to match the spec could fix the problem. Or at least the amount of pixels spanning the sprite need to be 1:1 even pixels with the camera

PopeSpaceous commented 5 years ago

@lejara I think it might be the resizing of the images. Because they have to enlarge them, some quality might be lost.

lejara commented 5 years ago

yea, just resizing might fix it. But we need to know that sweet spot for scale, since this type of problem can affect all sprites. Thats why i think changing the camera a bit can save us a lot of work for existing and new sprites in the future.

I think our main goal for this problem is to determined and set a even scale by pixel for all sprites

lejara commented 5 years ago

This could help us to achieve that goal https://blogs.unity3d.com/2015/06/19/pixel-perfect-2d/

lejara commented 5 years ago

Updating to the current LTS Unity version could save us time in fixing this problem, since they added 2D pixel perfect rendering into their API in Unity 2018.2 and above https://unity3d.com/unity/whats-new/unity-2018.2.0

112

lejara commented 5 years ago

Definitely going to need to overhaul all the sprites scaling. The PPU for each is sprite is all over the place, they need to be the same number, but changing them would change the size of the sprite drastically. This is going to take some time