سؤال

I am trying to use LibGDX's texture packer gui for making a texture atlas of tiles for a video game. But I keep getting alpha bleed and I am wondering how to prevent that from happening? I have tried all the different filters and the only one which works was the Nearest filter but I need MipMaps so this would not work from a performance point of view. So is there a way to get rid of the alpha bleed with MipMaps?

I am using the 3.2.0 version of texture packer.

Here are images of what is happening with text explaining what is going on in each image.

Image zoomed out fully in game.

Slightly zoomed in.

Fully zoomed in and everything is fine.

هل كانت مفيدة؟

المحلول

I solved it. In TexturePacker make sure you have PaddingX and PaddingY set to 2 or higher and put a check mark on the Duplicate padding. This will tell TexturePacker to duplicate the pixels on the edge which will get rid of the sprite/alpha bleed.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top