- Home /
Pixel perfect sprites being distorted only at odd-numbered resolutions
Hi all,
I've got the camera and sprite movement set up to make the game 'pixel perfect', but as soon as either the horizontal or vertical resolution is set to an odd number, the pixels start shrinking and stretching.
I've tried budging the camera up or down by half a pixel to try and fix it, but this doesn't help.
Anyone else encountered this issue? Thanks for any help.
You know what, I just made a mistake in the code for nudging the camera - that does fix it. To correct another error as well, the height value makes no difference.
If anyone else has the same issue, just nudge the camera across (left or right) half a pixel if Screen.width
is odd.
If someone wants to copy and paste this comment into an answer, I'll mark it answered.
If at all possible, resolutions should always be POT (power of two).
Your answer
Follow this Question
Related Questions
How to letterbox the screen and have pixel perfection in a 2d game 0 Answers
How to de-pixelize pixel art (smooth out) 2d 0 Answers
My Text gets blurry with Pixel Perfect Camera and Upscale Render Textrures Active 0 Answers
Jitter/vibration on an object with constant velocity when using 2D Pixel Perfect Camera 1 Answer
Pixel Perfect in different resolutions 0 Answers