White border around 2D Texture / Sprite

Hello, I have downloaded free texture from the internet, edited it a bit and imported in my UE5. Now, my sprite has white border around, which is really strange and iritating. And I cannot resolve it. I tried the same texture in UE4, and all works fine. Image below:

It happens to almost any PNG image I import. Here is another example

image

Now to give a bit more info.
My Workflow:

  1. Import the texture
  2. Right Click → Apply Papper 2D Settings
  3. Change texture group to UI because I don’t want to use Pixel art.

What I tried to fix the issue:

  • Changing Filter to Nearest fixes the issue, but I don’t want Pixel art game, so this is not good for me. This also causes texture jittering when character is moving.
  • Changing tiling mode to Clamp didn’t work
  • Tried playing with all compression options, still no luck
  • Tried to add the outer glow to my texture, which did fix things a bit, but still there was an issue as now glow line colors moved to another place.

And finally here is the original image, so you can download it, and try it out yourself. It is free image, so I am allowed to share it here.

Any help is appreciated

How is this:

test2_8

If you set it to UserInterface2D compression

Thanks for your answer. Actually that was my original compression settings, as you can see in this screenshot. And issue is still the same

Can you share exact workflow? Maybe you did something else I havent.

Is the image I posted looking OK on your end?

Yes, actually it does. Even in the gameplay. But what did you do with the PNG itself? How did you change it?

Thanks a lot man!

Btw. I literraly tried to draw a black circle using Pen in Photosho, and when I imported it, it also had white borders.
image

I don’t know why UE5 treats them weirdly, I lack the technical know-how. But I did run into this once or twice in UE4. My solution back then was to save with 8-bit depth, which worked fine for the assets I needed:

  • here, courtesy of paint.net but any software should be able to do it

I’d like to blame engine filtering method but I really do not know enough to be confident about it.

1 Like

Thanks a lot for your help @Everynone !!! You literally saved me. I was trying to resolve this one UE end for almost a week.

In case anyone else needs to do the same thing from the Photoshop, what I did, and it worked is to use, in the menus Image → Mode → Indexed Color, and then it started working for me. Using Only 8 bit on default Color setting did not work for me at all.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.