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.
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.
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.