GLBasic forum

Main forum => GLBasic - en => Topic started by: mentalthink on 2012-Mar-31

Title: HI, interesting tool for pack graphics in only one image
Post by: mentalthink on 2012-Mar-31
Hi guys, well I think this tool it´s good, I don´t know about this type of applications... it´s simple, but I think effective... take a lot of image and puts correclty in another more greater image, making an ?¿Atlas?¿...

Well it´s totally free, and I think can be used whit loadanimation very well...
http://spritesheetpacker.codeplex.com/

A simple test.
(http://img403.imageshack.us/img403/8013/imageppg.png) (http://img403.imageshack.us/i/imageppg.png/)

PS: The Sprites not are ordened but it´s only for the name of each .png.
A very interesting point, it´s the size of the image, this it´s about 68K, and the add of every frame it´s about 220 Kb... I think a make a lbit more little the map...
Title: Re: HI, interesting tool for pack graphics in only one image
Post by: Wampus on 2012-Mar-31
Good stuff mentalthink.  :) Very useful for packing sprites into a sprite sheet / texture atlas too. Free is always a big bonus. :)

There is a commercial sprite packing tool called Texture Packer I use sometimes. It has a lot of options that are useful to me. The sprite packing algorithm seems robust too.

Hmm, I just realised scaling sprites to a new sprite sheet before running an app could improve performance hugely on slower devices. Ideally you want 1:1 sprite drawing as much as possible. However, unless the resolution you work with is ideal then some scaling is necessary. With PowFish I scale all the sprites up or down each frame. No need to do that if I create a new sprite sheet when a new resolution is detected. To do that I'd have to use a bin packing algorithm like Texture Packer uses built into an app itself. Think I'll code the algorithm to do that today. If anyone needs it I can post it to the Math section.
Title: Re: HI, interesting tool for pack graphics in only one image
Post by: MrTAToad on 2012-Mar-31
Yes, that could be useful
Title: Re: HI, interesting tool for pack graphics in only one image
Post by: belial on 2012-Apr-01
Cool tool!
Title: Re: HI, interesting tool for pack graphics in only one image
Post by: Wampus on 2012-Apr-02
Quote from: MrTAToad on 2012-Mar-31
Yes, that could be useful

I've posted some code in http://www.glbasic.com/forum/index.php?topic=7896.0 (http://www.glbasic.com/forum/index.php?topic=7896.0). Hope you find it useful.