Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Half-pixel' fix causes artifacting on some platforms #13

Open
fallahn opened this issue Mar 25, 2014 · 3 comments
Open

'Half-pixel' fix causes artifacting on some platforms #13

fallahn opened this issue Mar 25, 2014 · 3 comments
Labels

Comments

@fallahn
Copy link
Owner

fallahn commented Mar 25, 2014

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

@fallahn fallahn added the bug label Mar 25, 2014
@LNunley
Copy link

LNunley commented Mar 26, 2014

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!

@fallahn
Copy link
Owner Author

fallahn commented Mar 26, 2014

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
Copy link
Owner Author

fallahn commented Mar 27, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants