Tileset with 32x32 tiles without margin(0) and without spacing(0) will render with artifacts

Create issue
Issue #28 resolved
Former user created an issue

No description provided.

Comments (9)

  1. Guilherme Augusto Almeida Filo Maia repo owner

    This can happen given how the gpu process textures, that is why it is recommended to have at least 1px between tiles :)

    But you can try to fix this by stepping/moving the camera in pixel amounts, that depends on your pixels per meter setting

  2. Eric Howard

    I'm having a similar issue that is very evident with animated tiles. Will the 1px margin solve this issue or will the seams still be visible?

    tiled-artifacts-animation.png

  3. Eric Howard

    Great, thank you for that.

    Quick question about the spacing and margin settings. Using this image as a guide:

    tiled-margin-spacing.png

    I've updated my tileset with 1px margin and 2px spacing between tiles:

    tiled-new-spacing.png

    And I'm getting artifacts only on vertical spacing:

    tiled-spacing-cracks.png

    Did I misinterpret the use of margin and spacing?

  4. Guilherme Augusto Almeida Filo Maia repo owner

    Hm, do you mind sending me one test map and the tileset so I can test it here?

    If you take a look at the examples you'll see there are both tilesets with margins and spacing and without them and it should work fine...

  5. Guilherme Augusto Almeida Filo Maia repo owner
    • changed status to open

    Thanks to your setup I could find the error, where I was using the Margin setting where Spacing should be used for calculations :P

  6. Log in to comment