- Home /
Why are my spirtes getting extra pixels colored in?
I have just started trying to use the 2D features of Unity and I am having a problem with my sprites showing up correctly. I have a square sprite with a black boarder like the image below (The sprite was made with pixels in GIMP with a 256x256 canvas and a 64 ppi).
When I look in the game view, the squares have extra black boarder on the sides depending on their position on screen. See below.
I have a feeling this is a rendering issue, but I don't know how to go about fixing it. I have my sprite settings to Sprite Mode: multiple, Pixels per Unit: 16, Filter Mode: point, Max Size: 2048, Format: compressed.
I have tried other setting and nothing seems to fix this issue. A filter mode of bilinear seems to take away the problem, but then I have fuzzy sprites which is not good.
Any suggestions on whats wrong and how I can go about fixing it?
Answer by saschandroid · Aug 11, 2015 at 06:39 AM
In the first image you posted (gimp) it looks like the black borders ARE of a different thickness (left & top vs. right & bottom). You should check this in gimp and also the border settings in the sprite editor (unity).
I agree the bottom looks a bit larger, but I think it is the yellow outline throwing things off because I just checked and it is the same on all sides.
It's worth noting that I do get proper looking sprites if I use a filter mode of bilinear or trilinear, but then my sprites look fuzzy.