- Home /
2d sprite alignement cause lines between sprites
Hey Guys,
I have a problem with my sprite alignement. I have for example a sprite that is 1 unit by 1 unit. I then make a tile, I place a sprite at 0, one at 1, 2, 3 etc. Even though the sprites are 64x64 and set to 64 pixels to unit, it still create small lines between my sprite, they are not aligned perfectly. My filter mode is set to point. Does anybody have an idea on how to solve this ?
Thanks a lot for your time.
Claude
Trying setting the pixels to units to 63 ins$$anonymous$$d, I remember that solved an issue like that for me
Answer by qwerta · Oct 19, 2015 at 09:41 AM
This is an old question, but it came up as a first result in a Google search, so I might as well add a solution that worked for me.
Go to Edit -> Project Settings -> Quality
and make sure your quality is Good
or lower. At higher quality levels, Anisotropic Rendering and Antialiasing get enabled by default and I think it's one of these two settings that causes the artifacts between the rendered sprites.
Answer by Pyrian · Jun 10, 2014 at 02:07 AM
This happened to me when using a sprite atlas. If I used separate assets for each sprite or had the tiles actually adjacent on the atlas, the lines went away. Compression artifacts, maybe?
Your answer
Follow this Question
Related Questions
Issue with outline size using sprite tiles 1 Answer
Strange renderissues with tiled sprites 1 Answer
Drawing interconnected sprites among the line in 2D. 1 Answer
Need help with size of Tiles! 2 Answers
Tilemap: Resizing Tiles? 1 Answer