pdiddles03 Posted April 11, 2018 Share Posted April 11, 2018 Has anybody ever run into an issue where if they use a tiling sprite and use spritesheet image as a texture, they get a very fine 1px line between the repeat? is there a way to fix this? Link to comment Share on other sites More sharing options...
Mickety Posted April 12, 2018 Share Posted April 12, 2018 Haven't used that yet but a screenshot would be interesting to take a look at Link to comment Share on other sites More sharing options...
AndreasLoew Posted April 12, 2018 Share Posted April 12, 2018 To fix this you have to do 2 things 1) Make sure that you use rounded coordinates. E.g. make sure to use x=12 and not x=12.45 2) Add 1 pixel border around your sprites that repeat the pixel colors for the borders. This additional pixel line must not be part of the sprite - it's outside on the sprite sheet. The reason for this is the following: OpenGL based renderers might drag in transparency from the sprite's neighbor pixels. The result is a thin line of transparency - the artifact you are talking about. You can use TexturePacker for this - it automatically extrudes your sprites for you. No manual work required. Link to comment Share on other sites More sharing options...
Recommended Posts