Tiled: Export tileset images to tileset with single image

Created on 1 Oct 2016  路  2Comments  路  Source: mapeditor/tiled

hi,
is there any function in tiledmap to export tileset collections of images to tileset with single image ?
some engine doesn't support tilesets with embedded images but i can't found any way to do this.

feature

Most helpful comment

The problem here is that for tilesets based on a single image, each tile needs to be the same size, at least when this is meant to be used when some engine has not been updated yet to support image collection tilesets. So tiles would need to be padded with empty pixels when there are also larger tiles in the set.

Since this isn't a very good way to handle this I'm reluctant to add such an export option. People would see it and think it is a good idea, while it would be mainly a workaround.

The best solution would be to use a texture packer to efficiently pack the images in the tileset, and to update the engine to support loading image collection tilesets and render the tiles using the generated atlas.

I'm considering whether maybe Tiled should include a simple texture packer, so that engines supporting Tiled maps could support this and the whole process would be more streamlined.

All 2 comments

The problem here is that for tilesets based on a single image, each tile needs to be the same size, at least when this is meant to be used when some engine has not been updated yet to support image collection tilesets. So tiles would need to be padded with empty pixels when there are also larger tiles in the set.

Since this isn't a very good way to handle this I'm reluctant to add such an export option. People would see it and think it is a good idea, while it would be mainly a workaround.

The best solution would be to use a texture packer to efficiently pack the images in the tileset, and to update the engine to support loading image collection tilesets and render the tiles using the generated atlas.

I'm considering whether maybe Tiled should include a simple texture packer, so that engines supporting Tiled maps could support this and the whole process would be more streamlined.

I met an example of a map using a texture atlas, in the example taken from the project libgdx.

I think this is a good idea, but I do not know how widespread such use is.

@bjorn Do you think about supporting this in the editor?
Does this use conform to the TMX format specification?

Was this page helpful?
0 / 5 - 0 ratings