sfml-tmxloader icon indicating copy to clipboard operation
sfml-tmxloader copied to clipboard

'Half-pixel' fix causes artifacting on some platforms

Open fallahn opened this issue 11 years ago • 3 comments

Details: http://en.sfml-dev.org/forums/index.php?topic=3023.msg103857#msg103857

fallahn avatar Mar 25 '14 09:03 fallahn

Hi, is this going to be fixed soon? I'm creating an engine for some friends and I to use to make a game, and I was planning on using this parser as a part of it. Unfortunately, on my system (Arch Linux) this issue is very pronounced: http://i.imgur.com/NU88tCx.png

Please update on the status of this bug, thanks!

LNunley avatar Mar 26 '14 18:03 LNunley

Unfortunately this will be ongoing until I get some time to look at it. The current kludge is to comment out lines 540-543 in MapLoaderPrivate.cpp but this may (read: will, probably) cause tearing artifacts when scrolling the view.

fallahn avatar Mar 26 '14 20:03 fallahn

Some more possible work arounds: The effect is more pronounced when zooming with sf::view. Rather than zoom try doubling the size of the tmx map, and corresponding textures, to save zooming with the view.

Comment out the adding of the half pixels (MapLoaderPrivate.cpp, lines 540-543) then make sure that the view position is rounded to the nearest whole pixel when moving around the map.

fallahn avatar Mar 27 '14 10:03 fallahn