Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tileset importing wrong? #157

Open
bradenman14 opened this issue Feb 23, 2018 · 5 comments
Open

Tileset importing wrong? #157

bradenman14 opened this issue Feb 23, 2018 · 5 comments

Comments

@bradenman14
Copy link

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
Copy link

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
Copy link
Owner

Seanba commented Feb 24, 2018

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
Copy link
Author

bradenman14 commented Feb 27, 2018

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
Copy link
Owner

Seanba commented Feb 28, 2018

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
Copy link
Author

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants