possible image converter in the werks
Posted: Thu Aug 21, 2003 11:24 pm
Yeah, you heard me.
Got some inspiration from MacBeth's .spr replacement, and my own angst over getting images in the proper format for spray w/o using photoshop (which didn't pan out anyway).
My goal is to make an image converter that takes .gif, .bmp, or some other mundane 8-bit formats and composes them into those tough-to-make .raw files that Spray wants.
Things I know the program will do (or will try to do):
* Read palettes directly from the source image and save them as .act for Spray to use.
* Option to read palettes from a single, universal image (for those willing to use a global palette).
* Save both the palettes and output images with height and width information in the filename (and in the way that you can use the "import by name" function in Spray).
Only things that'll be goofy with the program are the following:
* Will be made in Java, so it wont be as convienient to run.
* Wont check to see if the size of the images is okay.
* Wont check to see which format the images are - name extentions accordingly.
* Use at own risk, it's a VERY simple program (ie, no exception throwing, no window interface... it simply asks for filenames as it goes along).
* Wont do any image modifications - like halving or color changing.
* You'll need an accompanying 8-bit image for the alpha values (will assume names).
* As is implied... will only do the dirty work before spray gets ahold of the images; wont actually make the .spr files for you.
For now, the only assistance I need:
* The formats of the imported images (gif, bmp...)
* The format of the ".act" photoshop palette
* The outputted structure of the .raw files.
* maybe some advice on read/write algorithms (if I get stuck).
(all substantial help with the above will be rewarded in the credits)
I decided that it'd be possible to make a program like this because Spray's maker listed the basics behind the .raw file needed (every other byte = the alpha value; interleaved; no header)
Basically, it's a toddler's project. I'm not trying very hard because I've got other things to concentrate on (just like the creator of spray, I only want something that just works).
I think i'd make alot of people happy to not need photoshop to make images for FOT... and if it doesnt, i've got another program for my CS portfolio.
Got some inspiration from MacBeth's .spr replacement, and my own angst over getting images in the proper format for spray w/o using photoshop (which didn't pan out anyway).
My goal is to make an image converter that takes .gif, .bmp, or some other mundane 8-bit formats and composes them into those tough-to-make .raw files that Spray wants.
Things I know the program will do (or will try to do):
* Read palettes directly from the source image and save them as .act for Spray to use.
* Option to read palettes from a single, universal image (for those willing to use a global palette).
* Save both the palettes and output images with height and width information in the filename (and in the way that you can use the "import by name" function in Spray).
Only things that'll be goofy with the program are the following:
* Will be made in Java, so it wont be as convienient to run.
* Wont check to see if the size of the images is okay.
* Wont check to see which format the images are - name extentions accordingly.
* Use at own risk, it's a VERY simple program (ie, no exception throwing, no window interface... it simply asks for filenames as it goes along).
* Wont do any image modifications - like halving or color changing.
* You'll need an accompanying 8-bit image for the alpha values (will assume names).
* As is implied... will only do the dirty work before spray gets ahold of the images; wont actually make the .spr files for you.
For now, the only assistance I need:
* The formats of the imported images (gif, bmp...)
* The format of the ".act" photoshop palette
* The outputted structure of the .raw files.
* maybe some advice on read/write algorithms (if I get stuck).
(all substantial help with the above will be rewarded in the credits)
I decided that it'd be possible to make a program like this because Spray's maker listed the basics behind the .raw file needed (every other byte = the alpha value; interleaved; no header)
Basically, it's a toddler's project. I'm not trying very hard because I've got other things to concentrate on (just like the creator of spray, I only want something that just works).
I think i'd make alot of people happy to not need photoshop to make images for FOT... and if it doesnt, i've got another program for my CS portfolio.