Sprite Atlasing?
Community Forums/General Help/Sprite Atlasing?
| ||
Has anyone used it, is it any good and is it easy to create? :) |
| ||
What is sprite atlasing? Did a quick search on Google but couldn't find any clear explanation. Wikipedia also doesn't have it covered, and if it isn't on Wikipedia, it doesn't exist :-P. |
| ||
I assume he means a texture atlas, applied to quads which are used in place of sprites. If you've ever looked at the images used as textures for a complicated model you've probably seen a texture atlas. It's a bunch of little images packed into one big one. This page gives you the basic idea. |
| ||
Looks to me like a normal tileset/spritesheet? No? |
| ||
If the little subimages are all the same size then this is easy. But if not then packing them efficiently is a challenging task. That's why they have tools for it. |
| ||
http://www.ooeyug.com/texpac if there is interest I could update it... I still use a slightly modified version. |
| ||
So it's a sprite sheet? |
| ||
I'm pretty sure there's a box packing routine in the code archives somewhere.... |
| ||
Here! http://blitzbasic.com/codearcs/codearcs.php?code=1208 By the most helpful of fellows in Fredborg! |
| ||
Thanks guys will have a look :D |