Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
497 stars 121 forks source link

Tileset importing wrong? #157

Open bradenman14 opened 6 years ago

bradenman14 commented 6 years ago

Hey guys! Just found out about this fabulous peice of software and I was so happy! But now, when I'm using it, I am running into a sprite error. I am getting my sprites all messed up in import! OH NO! So, this is my Tiled Project,

image and this is my unity project. image Any reason that the sprites would be messing up like this? Help would be much appreciated! THANKS!

matthuston commented 6 years ago

There are a number of threads with similar issues, it's just one of those things you have to overcome in Unity which was a 3D game engine before it was a 2D game engine. There are a variety of solutions including fixing the artwork (adding 1 pixel extra on all sides for instance). Turning off anti-aliasing in your game might help too. Search around the other issues here as well as Sean's website itself, should be pretty useful.

Seanba commented 6 years ago

FWIW, I am working on a totally new version of Tiled2Unity that will, among other things, finally take care of seams through the creation of atlas textures.

In the meantime this may help: http://tiled2unity.readthedocs.io/en/latest/fixing-seams/

bradenman14 commented 6 years ago

So when I turned off anti aliasing, the textures did get better, but the lines never went away. Do you think this could be a tileset error? Here is the tileset tiles color1

and here is the result without anti aliasing on. image From what it looks like, it seems that the borders of the tiles are getting intensified as well. Does that have anything to do with it at all?

Seanba commented 6 years ago

Turning off anti-aliasing is a big help but you can still get seams depending on your camera settings. The link has a couple of other solutions to try: http://tiled2unity.readthedocs.io/en/latest/fixing-seams

bradenman14 commented 6 years ago

I figured it out! What I did, was take the tileset, get rid of the background color in paint.net, and then imported the tileset back into tiled. Then, I didn't have any seams at all. Perhaps its the background color remover that is having issues.