part1cle Posted May 6, 2020 Share Posted May 6, 2020 As shown in the video, I get weird artifacts when trying to resize the renderer to an odd number. Is there a proper way to prevent this from happening? 2020-05-06 12-10-46.mkv Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 6, 2020 Share Posted May 6, 2020 > Is there a proper way to prevent this from happening? No, only workarounds, because that is a combination of many small settings. first you have to check if number of pixels and css width is the same in those cases for you, maybe resize went wrong then, if you used width/2 for camera- that might be a problem, sprites at half-integer screen coords, set "roundPixels=true" for those sprites, maybe it helps , but no guarantees there are several other small things that can fix that the idea is to use one of stupid workarounds, like, "dont resize to odd numbers, always use even" , or "always floor() your camera pivot coords" "proper way" is to actually understand why all that is happenning and write your code cleanly according to absolute knowledge that only a few pixi people have. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 6, 2020 Share Posted May 6, 2020 Here's another pic about one of such problem but from a unity coder: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.