Hello!, I’m using Sprite Shape 7.0.5 in Unity 2021.3.5f1.
To show the issue I made a simple closed shape using a black square for all parts (sprites and corners)
In real levels, I’m using multiple points on each segment to add variety (this makes the issue more visible for this example, so it comes handy)
Scene view:
Issue video:
personalastonishinghalicore
It’s hard to catch it on video but you can see the lines/gaps appearing mostly at top right and top left corners, but sometimes it also happens on ground/ceil. This is causing a sort of “detached corners” effect on my real shapes when camera passes by.
Any help would be appreciated.
Thanks!
Looks like pixel rounding error. Not sure exactly what is causing the issue, but one thing I would try is to mess with how you are moving your camera. If you’re moving it via FixedUpdate (due to character movement with physics maybe?), then you could try moving the camera in LateUpdate to follow the player. Or perhaps add a tiny amount of interpolation/damping to the camera movement. Sometimes tweaks like that solve visual oddities. Again, not sure how to really solve the actual visual bug, just food for thought.
Thanks @LiterallyJeff , I tried tweaking the camera update but nothing seems to fix it. Adding damping only makes the lines more visible on the slow camera movement (I removed it for the video).
I tried also antialiasing and other graphics settings, modifying sprite’s import settings…no luck.
This only happens on sprite shape, it doesn’t on tilemap or simple sprites.
I found it! Camera->Output->MSAA was set to off, setting it to use settings from render pipeline and set MSAA 8x in render asset does the trick. Thanks!
1 Like