How to use Gimp Sprite Gutter plugin to adjust a tileset graphic - Quillraven/Quilly-s-Adventure GitHub Wiki

Whenever I integrated a map to my games using LibGDX, I faced the texture bleeding issue, which is super annoying. To avoid it, we need to add padding around all tiles. A value of 4 solved the bleeding issues in my games so far.

If you have single graphics then you can use texture packer to pack the graphics together to a single atlas with a certain padding.

If you have one big texture containing all graphics then you can use the Sprutter plugin for Gimp to add padding to the big texture.

Open the texture in Gimp and go to Filter/Sprite Sheet/add Gutter once you have installed the plugin. Use following settings:

  • Padding of at least 4
  • Spacing 0
  • Spacing at image edge no
  • Undo History no
  • Generate atlas no
  • Resize minimum

Once you have updated the original texture then you can use it in Tiled without a bleeding issue. For the tileset setting in Tiled use:

  • Margin = padding value used for sprutter plugin
  • Spacing = two times the margin value