Page 1 of 1

Fudge - A lövely texture packer

Posted: Thu Jun 05, 2014 9:04 pm
by Gaeel
Fudge

Image
Quick title-screen thrown together, all textures are on one spritesheet (ground, title, imp, soul and random junk that I added in to test the system)
Credits to my colleagues Wilbefast and Shapter who are working on Soul Harvest

For those of you who do sprite-heavy games and would like to use some sweet, sweet spritebatching, or just more flexible animation and stuff, you might find yourself wanting to have nicely packed textures and a juicy way to manipulate them.

So I started a project during Mini-Ludum Dare #51 "Tool Jam", with this in mind.

It's far from stable API, and further from feature-complete, but you can get it here, and I'll let you guys know when it's a bit tighter: https://github.com/Bradshaw/Fudge

This is the kind of image it outputs, alongside all the metadata necessary to be useful :
Image
Image produced by dumping images from a bunch of different projects into fudge

Features:
  • Smart (enough) packing for efficient graphics-memory usage
  • Monkey-patched love.graphics.draw for sweet easy code
  • Automatic quad and spritebatch management
  • Automatic animation management
  • Optional NPOT canvases for modern hardware <3
  • Export to image and LON (Lua had a baby with JSON)
Coming soon
  • Export to JSON and XML for use with other engines
  • A standalone texture packer
  • More animation tools (generate from filenames, dedicated methods, etc...)
  • Anti-texturebleed padding for scaled/rotated drawing
If you have any questions or ideas, let me know.
I don't think this is quite ready to be used in a big project, and it'll need documenting too, but take a look at the main.lua and see if you think that this kind of thing would be fun to use ;)

Re: Fudge - A lövely texture packer

Posted: Fri Jun 06, 2014 10:55 am
by Roland_Yonaba
This sounds like a nice tool. Thanks for the work.
Maybe it will get more visibility if posted in the "Projects and demos" section ?

Re: Fudge - A lövely texture packer

Posted: Mon Jun 15, 2020 11:37 am
by pgimeno
Since the repository is gone, I have set up a mirror here: https://notabug.org/pgimeno/fudge

Re: Fudge - A lövely texture packer

Posted: Mon Jul 27, 2020 9:13 am
by Gaeel
Woop, yeah, sorry, I took it down because I'm not happy with the name any more
If anyone has a recommendation for a fun name, I'd be happy to put it back up on Github and/or my own repository host