Despite the fact that all settings are set correctly (assets pixel per unit, reference resolution) the background is still distorted. Sometimes, when I move the mouse cursor away from the game window, everything starts working normally. I tried reinstalling Unity, it doesn’t help.
PPC on
PPC off
I also note that it is not possible to change the Size of Camera with PPC enabled. The value immediately returns to the value that was calculated by PPC.
There are multiple threads on this forum about pixel perfect not being correct, jittering etc. search them up please
Most likely, even though your pixel perfect camera settings are correct, you haven’t prepared your sprites and gameobjects for pixel perfect camera
Cheers
1 Like
@Ukko_Kivi did you try to set resolution instead of 16:9 aspect ratio?
@privatecontractor Yes, but in this case the rest of the sprites start to distort.
I dug through a bunch of articles on websites and forum posts with this problem, because I’ve been suffering with it for 2 months now. And I saw an article about making sprite.
Pixel perfect can only happen as a result of meticulous care from the moment you generate the asset through import and setup, prefabs (no scaling, no rotating), to setting up the scene, the resolutions, the camera, literally every single step has to happen as if you were preserving fingerprints at the scene of a crime.
Every single number you choose, select, modify, or compute must be PERFECT. If you slip even one part of that, miss even the tiniest detail, odds are you won’t have a pixel perfect game.
Every time you add an asset, change a process, do anything, you must retest and requalify every step of the process you used. If you don’t, you run the risk of moving ahead with a defect in your setup or your assumptions that will cause you to make choices in other parts of the process that will never work with pixel perfect. The longer you move forward with a defective setup, the harder it will be for you to fix and understand the issues at hand.
Read the documentation and then TEST your understanding of the docs. If the docs say one thing, prove that you actually have a working understanding by both making it work, then changing something to break it, and verifying that you really do actually understand what is happening.
There is no substitute for this. Pay attention to detail and test after every single change until you understand all the parts that change and how they change and when. Use source control rigorously in order to back out unwanted changes that break your pixel perfect assumptions.
Not only that but pixel perfect means different things to everybody. Some people call low resolution games “pixel perfect.”
Good luck!
I have 3 items in my project, the camera doesn’t work even with 1 sprite. What is meant by “literally every single step has to happen as if you were preserving fingerprints at the scene of a crime” I don’t understand at all, because most of the settings either can be changed in a rather wide range and nothing will change, or they are blocked by the PPC component, for example orthographic size. I have set Pixel per unit for sprites, Compression and filter mode disabled, pivot unit mode switched to pixels. What other sprite settings I need to change, if any, I don’t know.
Fortunately there are hundreds if not thousands of relevant reference videos for you to start from.
Good luck!
You really think I haven’t watched them all in two months? If there was a solution to my problem, I wouldn’t have gone to the forum.