Hi there! I’m having trouble with getting my Cinemachine camera pixel perfect. After some searching on google I found the suggested settings for getting this working but I think I’m having some sort of Render Pipeline issue. Some threads mentioned this but I don’t know how to fix it
I’ll attach some images to show my settings and the issue. I’m getting a warning on the Pixel Perfect Camera attached to the CinemachineBrain about it not being compatible with the Scriptable Render Pipeline, but I just don’t know how to fix this. I’m not sure what I have to change/remove from my project or how to do it to make this work.
Or maybe I should be looking into another solution for my issue? I would really appreciate some help, thanks in advance!
Hi,
What packages do you have installed? Could you take a screenshot of your packages? (Window → Package Manager, Packages: In Project)
I think you need to remove Pixel Perfect package from your project, because your render pipeline has a Pixel Perfect component. Cinemachine is expecting the render pipeline’s Pixel Perfect component.
Thanks for the reply! So I did this. I removed 2D PixelPerfect. I added the component to my main camera called Pixel Perfect Camera (Experimental). No longer getting the warning message.
The issue is still there though, it’s maybe a little bit less obvious but very much still getting that sort of mirage effect when I move, and sometimes even on stopping I can see the different sized pixels on screen.
I tried to use the Pixel Snapping option on the Pixel Perfect Camera (Experimental), but while that does fix the mirage/pixel size issue, it makes everything feel very stutter-y.
Try this experiment: does the problem go away if you remove Cinemachine and replace it with a simpler camera script (possibly just parenting your camera to the player)?
Ok so I turned off the Cinemachine cameras, and just added a regular camera as a child to the player. The pixels are all now the same size and there is no mirage effect.
So I guess it’s either an issue with the Cinemachine cameras or with the Lerp movements? Since the player’s child camera has no smoothing or anything.
Either a package (you’ll have to test it in an empty project to make sure you got everything), or just zip up your project if it’s not too big (don’t include the Library folder - it’s very big and just gets regenerated if it’s missing). You can PM it to me. Give me clear repro steps (which scene to open, and what to do to see the problem).
I made a new simple project on the same Unity version as my current project (2019.4.6f1)
I got the Cinemachine package, and made a simple scene. Still having the same issue with the pixel sizes, but now, I don’t have the Cinemachine pixel perfect extension as an option for the virtual camera.
I also don’t have the Pixel Perfect Camera (Experimental) script for the Cinemachine Brain.
I can send you this if you want, since it’s still having the issue, but I’m not sure why those things are missing.