Hey there,
I've been trying to create some new room graphics to try things out.
However, i encountered a few problems, but eventually solved them by
examining the room example a bit more closely.
First off, i read the documents on the wiki, which pretty much told
me i had to convert the images to indexed format and somehow merge
the palettes together, so i'd essentially end up with a combined
palette like this:
[room colors] [actor colors]
After failing miserably trying to use the gimp, i tried looking
around for command-line batch processing tools that might be able to
do the job. The only one i found was imagemagick. Whilst it could
generate palette'd images, it didn't seem to be able to offset the
colors of the actor images properly.
I then took a closer look at the room example, and noticed in
devil.scost that there was a palette range for the costume:
palette([0-31]);
Which pretty much solved my issue of needing to offset the palettes
in the actor images. The only remaining problem was that i needed to
concatenate the palettes together, which is when i found the "palcat"
tool included in scummc. For some reason, it wasn't compiled by
default, but i managed to compile it manually, i.e.:
gcc palcat.c scc_img.c scc_fd.c scc_util.c scc_param.c -
DIS_LITTLE_ENDIAN -I<build dir> -o palcat
Then all i had to do was run it, i.e.:
palcat -o combined_room.bmp room.bmp actor_image.bmp
Then change the offset in devil.scost, which in my case needed to be:
palette(200-231);
The end result was that the devil didn't look like a gooey grey mess.
Although i forgot to include the colors for the verb's and text
(whoops), so i really should have added those into the mix.
I was surprised that i could not find any decent image editors or
batch processing tools for editing images with palettes. It would be
nice if there was a magic tool that would take in a list of palette
ranges, along with a set of images associated with them, handle the
down-sampling, and generate a master palette. e.g.:
palgen -prefix real_ -group 0,200 -image room.bmp -group 200,255 -
image actor*.bmp -o master.pal
Which could generate the images real_room.bmp and real_actor*.bmp,
which would share the generated palette, master.pal.
Though then again, i don't have the time to make such a tool, so i
should probably just stick with palcat & co.
Anyone else have any tips or suggestions for handling the scummc art
pipeline?
-SJU
_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general