Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tilesets with individual image files for each tile #3

Open
danielscherzer opened this issue Oct 5, 2018 · 2 comments
Open

Tilesets with individual image files for each tile #3

danielscherzer opened this issue Oct 5, 2018 · 2 comments

Comments

@danielscherzer
Copy link

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?

@Ragath
Copy link
Owner

Ragath commented Oct 5, 2018

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.

@danielscherzer
Copy link
Author

danielscherzer commented Oct 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants