Seanba / Tiled2Unity

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

Isometric Map exporting the tiles in wrong rendering order #154

Open jacobmrhodes opened 6 years ago

jacobmrhodes commented 6 years ago

Tiled2Unity Github Bug.zip

This bug was originally submitted to Tiled (https://kenney.nl/assets/isometric-city)

I am attempting to create an isometric map using Tiled and I am going to export it to Unity using Tiled2Unity. Bjorn said this issue is with Tiled2Unity and not Tiled.

When I attempt to export my isometric map, the rendering order is incorrect. Depending on which tile render order I have enabled, the tiles will be stacked in the wrong way. See images below. None of the tile render orders actually fix the issue though.

I have tried enabling the 'Use Depth Buffer' option in Tiled2Unity but that did not resolve this issue.

Attached is the zip file that contains the TMX, TSX and PNG sprites I am using.

I'm not sure if this is important or not but I am not using a sprite sheet for this Tiled map because the spritesheet is not split evenly so it would be tedious to manually cut each sprite out (https://kenney.nl/assets/isometric-city)

image

Tile Render Order - Right Up image

Tile Render Order - Left Down image

Seanba commented 6 years ago

Ah, I think I know what's going on here. Tiled2Unity has to build separate meshes on a per-texture basis and because each of your tiles is it's own texture we're losing the ability to group tiles together with a specific render order.

FWIW, I'm working on a (totally) new version of Tiled2Unity in my spare time that will fix this kind of thing. It is based on the newer Tilemap features of Unity and will also fix issues like this by creating a shared texture atlas. I hope to have more on that soon but my work and family life has gotten a bit busy lately.

jacobmrhodes commented 6 years ago

That makes sense. This behavior is more by design than it is by defect. Out of curiosity, any ballpark when you might have the newest version of Tiled2Unity out? A few weeks or a few months?

Seanba commented 6 years ago

I hope more like a couple of weeks than a couple of months. Some of it will depend on Unity, however, as we'll need some fixes from them that are currently in beta.

Lanslow commented 6 years ago

Hi, any news about this problem? I have currently the same, so I export my map as Image in Tiled software but it would be useful to export it with Tiled2Unity. Hope you know a solution! Thank you in advance