Generates spritesheets with LASIK method
For anyone who is interested: I've written a script for Photoshop (tested for CS2 and CS3), that takes images in a folder and generates spritesheets with them, including the mask.
What it basically does is the following:
- Let's the user select a folder, image width+height, frames x, frames y and a prefix (used for sequential image names).
- Aligns all the images in a new document, based on their filename
- Creates an alpha channel for the transparent parts of images
- Resizes the file to 20%
- Applies an Unsharp Mask (300,1,0)
- Resizes the document to 50%
- Exports a spritesheet and spritemask PNG in the original folder
There isn't a lot of validation going on and/or selectable options (unsharp mask prefs, output paths etc), but it does the job wonderfully.
If anyone wants to give it a shot, just holler and I'll make it available as a download. It saves quite a lot of time, especially if you have a decent render setup for your images (I use Blender with sequential filenames), takes about 2 minutes to go from rendering to a full spritesheet!).
Example spritesheet mask: