TiledLib.Net icon indicating copy to clipboard operation
TiledLib.Net copied to clipboard

Tilesets with individual image files for each tile

Open danielscherzer opened this issue 7 years ago • 2 comments

If one uses tilesets with individual image files for each tile, like ground.zip These image files have no representation (especially no filePath) in the ITileset or possibly Tile data structures. What is the recommended way of handling such use cases?

danielscherzer avatar Oct 05 '18 15:10 danielscherzer

This is currently an unsupported use-case. Normally you want to bundle images together on the same texture to make in-game rendering faster, hence why this has not been handled previously.

When you have a pre-processing step using this to automatically bundle images together this feature becomes more relevant. I do intend to support the entire Tiled spec though, so you can expect to see the missing pieces added in the near future.

Ragath avatar Oct 05 '18 16:10 Ragath

Thank's for the info. So its more of a feature request for the future. Regarding speed: For this use case I use 2d texture arrays (OpenGL) wich handle filtering on the tile borders and roughly the same speed as with one big texture atlas. But loading is probably still slower.

danielscherzer avatar Oct 05 '18 16:10 danielscherzer