TexturePacker - sprite blip

Hi,

I’m using the awesome TexturePacker to pack my sprites together, but I’m getting artifacts as shown in video below: (Far left of sprite a line appears as though this is from another sprite)

4_nhfkSmPkc

Code is all correct, will this be because I’m using the free version?

Thanks

looks like typical texture bleeding when using a texture atlas, a couple of options you could try to avoid the problem:

  • leave a space/margin between different sprites on your texture atlas
  • if you can, use GL_NEAREST instead of GL_LINEAR when loading your atlas texture
  • handle the issue in your shader so that it doesn’t pick up pixels from adjacent textures

Hi,

Will try your suggestions.

Thanks

Hi,

Nearest filter sorted it. Thanks