Sprites shimmer with camera smoothing

Hi,

I have searched online for a solution to this issue, but surprisingly I have not found much on the topic nor any solution. I would have expected more people to encounter this issue.

The problem I am encountering is that when smoothing is applied to the camera (in this case the 2d Cinemachine camera) some sprites shimmer. The sprites have been created for a maximum resolution of 3840 x 2160 (the background is 7680 on the x axis given that there is scrolling). The screen resolution currently being used is 1920 x 1080. The PPU is 100 and the camera size is 10.8.

I hope that someone can shed some light on this problem since I have tried a number of things without success.

Grateful for any help.

Thanks

I’ve found that MipMaps with Bilinear / Trilinear Filtering helped me in a similar situation. MipMaps may be unnecessary if these sprites are sized perfectly already.

If that doesn’t work, then it may help to produce a video / gif of the phenomenon.

Hi,

Thanks for the reply. Unfortunately, it did not fix the problem.

I could not upload an avi, but I uploaded a gif. Not great quality, but it shows the issue.

6608692--751951--shimmer (1).gif

does this happen on the build aswell?

Looks like the pixels are morphing due to the camera moving in sub pixel amounts ( less than 1 pixel per translation)

yes, the build has the same issue.

I think you are probably right about the camera moving in sub-pixel amounts. Especially since it does not happen if I remove smoothing. However, the camera stopping too abruptly without it. I have no idea how to resolve this though.

people wont notice it when you fully populate your screen with objects, odds are you played hundreds of games that had these artifacts and you never stopped to notice it

when you have only 1 box and are looking really closely at it it becomes apparent but there is technically no way to solve pixel dismorphism when using subpixel camera movement, something has to be displayed in the space where there is supposed to be an half pixel ( either blur the image or hard code the camera to never pass through these positions )

Well, this could be seen on other sprites, where it was in fact more noticeable. This became very noticeable when I commenced using the 2d lights. However, I changed the Renderer on the Main Camera and it seems to have improved. I can still see some ‘shimmering’ on the box, but it is not as noticeable. The other sprites have stopped ‘shimmering’, which makes me think there may be an issue with the box sprite itself.