Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
495 stars 120 forks source link

Tiled2Unity Seams (Another One - I'm Sorry!) #153

Closed cmcnab7487 closed 5 years ago

cmcnab7487 commented 6 years ago

Hi,

I'm currently following an RPG tutorial in Unity "https://gamedevacademy.org/how-to-create-an-rpg-game-in-unity-comprehensive-guide/" which has been not very comprehensive.

I've managed to recreate the map used in the tutorial myself but I've come across a couple of issues. First of all, I notice seams when exporting from Tiled2Unity (picture included). My anti-aliasing is off in my Unity project and I tried buffering my tiles by making them a little bigger (which is why some of the tiles look odd in the picture) but still I have the seams. I also tried texel-bias but nothing seems to make a difference (command in picture 2).

Bonus follow up question: the person who made this tutorial had 32x32 tiles with a map of 15x20 tiles, working out to a total of 6400x480 resolution. However, after importing the map to Unity, they've selected a scale of X0.021 Y0.021 Z4.432491 - this seems wrong to me, shouldn't it be 1/32 for the scaling? Although this looks too big when I set it, any idea how they got to these numbers?

Thanks in advance! tiled2unity tiled2unity_2

cmcnab7487 commented 6 years ago

RESOLVED: There turned out to be a single tile that was causing the seams to appear (the green background with the little white flower things). I had to slice the tile again, buffer the size of the tile and then redraw the background. Same thing was also happening to the rocks. I've included a sample to show the new map. 3