Diablerie
Diablerie copied to clipboard
Pack DT1 tiles more efficiently
Current layout (cave.dt1 for example):
This is what texture packer would do using the polygon algorithm
This is compatible with unity as they have a plugin for it.
Final png is 1976x900 and will use 6946kb of RAM.
@giviz Is texture packer designed to work in run-time? Are you talking about this tool?https://www.codeandweb.com/texturepacker/for-unity
I am talking about that one yes, it has a plugin for unity to load that kind of packing. Now the thing is, with that many textures it's kind of an issues and very slow (because of how the plugin itself work).
So far I'm using the tool to pack the tiles (there is a command line version of texture packer, so it's all scripted) and I'm not using their plugin to load the textures inside unity, but a modified version of your code with updated offsets to position the meshes of the tiles, which work fine.
But as of now, I'm just using the trimmed algo which output that texture
As they have a plugin for unity that allow to load the polygon output, I plan to look into it later on to switch my implementation to that algo as it seems better.
Here is a trimmed version of an other tiles, that's a better improvement on non floor tiles :