Cannot load textures larger than 2048x2048 #714
Replies: 3 comments 2 replies
-
There's currently no way to load larger than 2048x2048. Generally it'll be better to render a tilemap by using one image for each tile or load tile images from a texture atlas, it's more flexible and take less memory (if your big tilemap image have lots of identical tiles it'll be wasting memory loading those identical pixels). What tool are you using to create the tilemap? It'll be great if it can export a file that specifies which tile is at which position and use that to add individual tiles in kaboom |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in this? |
Beta Was this translation helpful? Give feedback.
-
Created a PR for this #833 |
Beta Was this translation helpful? Give feedback.
-
When trying to load a sprite larger than 2048 pixels, kaboom throws an error:
texture size (1152 x 2640) exceeds limit (2048 x 2048)
I have a lot of assets (especially tilemaps) that are way larger than that. Of course, I don't render the whole thing at once, but cutting assets into smaller chunks and recalculating where tiles are is a lot of work.
Is there a way to load those? Or is that limitation going to change in future versions?
Beta Was this translation helpful? Give feedback.
All reactions