Skip to content

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

Open

Activity

LNunley

LNunley commented on Mar 26, 2014

@LNunley

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

fallahn commented on Mar 26, 2014

@fallahn
OwnerAuthor

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

fallahn commented on Mar 27, 2014

@fallahn
OwnerAuthor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      'Half-pixel' fix causes artifacting on some platforms · Issue #13 · fallahn/sfml-tmxloader