Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Shemamforash on February 02, 2014, 11:33:37 AM
-
I've had this issue for a while now, figured I would work out how to solve it after a little while- I didn't. I get this weird bleeding effect between two of my sprite textures. I've played around with borders and padding but to no avail. Using point filtering solved it but then the sprites look awful! I have attached a picture of the effect below. Also as a side-question, what is the difference between padding and borders? Does padding only affect the Atlas texture?
-
So the reason this happens is because when you do bilinear or trilinear filtering, it filters the outermost pixel with the surrounding pixels which technically are outside the sprite area.
Switching to point filtering will fix this, because it no longer filters with the surrounding pixels.
If you turn off the alpha trim in the atlas maker, and add a 1 pixel transparent border to the origin asset then it should be fixed as well. Of course then your origin files have to accommodate this.
-
Hmm... so I added the border to all my assets- turned of alpha trim. Updated the Atlas and switched to point filtering, and it hasn't gone! Looks slightly different now- I have attached an image.
-
Strange.. the deformation on the white icon seems to indicate that it's compressed. Make sure it's in true color.
I'm not quite sure what's happening with it otherwise.