Giter Club home page Giter Club logo

Comments (4)

fallahn avatar fallahn commented on September 23, 2024

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

from tmxlite.

DmitruMoth avatar DmitruMoth commented on September 23, 2024

How can i implement this to existing sfml demo?

from tmxlite.

fallahn avatar fallahn commented on September 23, 2024

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.

from tmxlite.

DmitruMoth avatar DmitruMoth commented on September 23, 2024

Thanks, i will try to fix this problem
p.s. rounding make it worse

from tmxlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.