Sprites imported to Atlas look weird

The sprites have some extra pixels around them when they are added to Atlas.


But it seemed to work just fine when I added it to the game object.

I don’t know what I did wrong or if this will cause any problems in the future.

Check ‘Extrude Borders’ description:

1 Like

Oh, that is so simple. Thank you a lot. :sweat_smile:
After setting it to 0, everything looks fine.

No no, you want to extrude the borders of each image in the atlas to avoid texture bleeding! Padding/extruding the edges of each image will make sure that when the GPU samples the texture it will not sample from adjacent images.

Edit: This is primarily a concern when rendering an image scaled, not when rendering at 1:1 scale.

3 Likes

My game resolution is 128x128 so the game will be scaled up for the player. So extrude the borders is good?
Sorry, I just started learning Defold and Lua for a few days, so everything is kind of confusing. :sweat_smile:

Yes.

Be sure to read this manual: Adapting graphics to different screen sizes

1 Like

Thank you :grinning_face_with_smiling_eyes:

1 Like