Blinking between tiles in SFML Demo #146
Replies: 5 comments
-
This is a well documented issue with SFML vertex arrays, rather than the map loader itself. This post has some details why it happens: https://en.sfml-dev.org/forums/index.php?topic=15338.0 (or just search for SFML tile tearing) A good solution I've found is to render the map with a shader, like this https://github.com/SFML/SFML/wiki/Source%3A-ShaderTileMap |
Beta Was this translation helpful? Give feedback.
-
How can i implement this to existing sfml demo? |
Beta Was this translation helpful? Give feedback.
-
Short answer: not easily, it would pretty much be a re-write. The example is really just that: an example. Have you tried some of the suggested solutions in the forum topic, such as rounding your view's position to the neareset whole pixel? You could also render the visible set of chunks to a render texture first, then use that to make a sprite which you can scroll. |
Beta Was this translation helpful? Give feedback.
-
Thanks, i will try to fix this problem |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
So, problem is here:

map.zip
Beta Was this translation helpful? Give feedback.
All reactions