PDA

View Full Version : Image Partitioner / atlas tool



JernejL
20-02-2011, 05:18 PM
http://www.mathpudding.com/tdc/tpacker.jpg
http://www.mathpudding.com/tdc/bleedingedge.jpg

A simple tool based on vampyre imaging lib & nitrogen's Tpartitions unit from his font studio.

Features best-fit mode for alpha transparent sprites of same size to use only the relevant non-transparent portion (partitions much better), and a bleeding-edge option where the border is repeated for x amout of pixels instead of blank space, this is used when you tightly pack map tiles which musn't bleed into adjacent sprites (like if you used texture clamping but that doesn't work in texture atlases)

Source on demand (i would release it with this but it uses some custom classes which i don't have time to find and organize atm.. )

http://www.mathpudding.com/tdc/ipartitioner.rar

AirPas
21-02-2011, 05:03 PM
thanks for sharing