WeAthFoLD / MetaSprite

A fast, self-contained, highly customizable Aseprite-to-Unity importer.
MIT License
197 stars 31 forks source link

Use better atlas packing algorithm #3

Closed WeAthFoLD closed 6 years ago

WeAthFoLD commented 7 years ago

There are (much) better packing algorithms other than shelf packing, such as skyline, subdividing etc. We can achieve higher space efficiency by optimizing atlas packing algorithm.

dryn27 commented 6 years ago

Hey! I love your asset. It's really awesome :D I was wondering... is there a way to not optimize the atlas? I'd like to have every frame on aseprite imported as it is, with no triming if posible. Thank you for this awesome asset that you are sharing for free. It is soooo incredible ^^

WeAthFoLD commented 6 years ago

@dryn27

Hi, glad you liked my work! Using full atlas without cropping sounds like useful in some scenarios, and can be implemented trivially in MetaSprite (just needed to skip the bounds recalculation section). What about adding an option in import settings to tweak it?

dryn27 commented 6 years ago

Yes! Please! That would be amazing ^^

WeAthFoLD commented 6 years ago

Implemented in ffb9a7e9c63a7aeecd71fd2235f9a1dc8804e7c3. Sorry for taking so long I finally find some time to take a break =w=

dryn27 commented 6 years ago

Thank you! >o<