Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm currently working on a texture pack for minecraft (but this question is not restricted to that). All terrain textures are squared and stored in one big terrain.png, see e.g. here (FYI that's from Glimmar's Steampunk pack). I'd like to store each texture in an individual file and have same automated process pack them into the terrain.png later on (maybe leaving the not yet created ones their default). At the moment I do this manually by copy/pasting them with gimp (at least the raster helps a lot here) but I'd really like to do this automatically. Basically this seems to be what happens behind the scenes of the Painterly pack customizer already. So,

Is there a tool that replaces some squarespolygons* in a png file with new ones (also png), the position of which might be configured in a separate file?

edit Some automated resizing for different resolution versions might be nice as well...


*) might as well ask the general case

share|improve this question

2 Answers 2

My favorite spritesheet packer is Texture Packer: http://www.texturepacker.com/

There's a free version that works pretty well, but the paid version adds features like resizing.

Another option is Zwoptex: http://zwoptexapp.com/

share|improve this answer

Try out Nick Gravelyn's Sprite Sheet Packer. I don't know if you can control scale with it, but you can easily automate that in script with ImageMagick

share|improve this answer
    
Unfortunately, ImageMagick will only pack sprites if they are all the same size... –  Daniel Blezek Apr 27 '11 at 19:00
1  
I should have clarified and mentioned that I intended ImageMagick to be a pre- and post- packer tool. The idea would be to do any per-sprite pre-scaling with ImageMagick, run Sprite Sheet Packer, and then run ImageMagick again on teh final results to shrink the output to your desired size if necessary. –  michael.bartnett Apr 27 '11 at 20:47
    
the packer looks nice for writing my own game (so +1) since it outputs the dynamically calculated sprite positions, but since they are already defined by Notch, I need a tool to pack in customizable positions –  Tobias Kienzler May 3 '11 at 16:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.