2D Toolkit Forum
2D Toolkit => Support => Topic started by: brutang on January 04, 2015, 11:01:45 pm
-
I'm getting this issue on some tilemaps, mainly backgrounds, etc. I set the padding on the tilemap collection everywhere from default all the way up to 10. Anything I'm missing?
Image attached to demonstrate what I mean; i get a 1px line horizontally and vertically through the tile connections as my character is moving.
Thank you
-
Set sprite collection padding to 1, set to extend. That should improve it somewhat.
The appears when the geometry isn't aligned to a pixel, and either 1. the vertex gets transformed to the adjacent pixel, or 2. the uv sampling is incorrect. In the case of the latter the above should fix it.
-
http://screencast.com/t/JyJbvfdE0dou
http://screencast.com/t/5OEjWmwwy
same issue. I also went in and selected every tile individually and did extra padding: 1 - no different.
-
Are you displaying this tilemap pixel perfect on screen? Are you using an ortho camera / tk2dCamera?
If you're still having the issue then its probably not pixel perfect or aligned properly to a pixel, in which case you'll need to snap your camera position to pixel boundaries.
-
If you're still stuck, post a repro in the private support forum and I'll take a look.
-
Regular ortho camera (not tk2d camera although i switched to that and have the same issue).
Not sure what you mean by displaying it pixel perfect, sorry. Thanks for the help so far!
EDIT: Fixed it by changing Pixels Per Meter to 99.9 on Sprite Collection settings.