Page 1 of 1
DM 2 Amiga graphics
Posted: Sun May 01, 2011 11:06 am
by Joramun
Hello everyone,
I have a big problem for which I need help for:
I have a bundle of Amiga DM2 Graphics, which are all in an indexed color palette.
In order to properly use them (in DSB), I need to:
1) convert them to RGB
2) replace the background by the shiniest pink color
3) double their resolution
I'm talking about 3000 bitmaps !
I have no idea how to do that efficiently.
Why do I want to do that:
- DM2 Amiga graphics are much more DM-style than DM2 PC graphics, and IMHO, they are way better.
- They are not "Comic styled" and have a nice color palette which fits well with other DM graphics.
- DSB is simply the best DM clone ever.
Re: DM 2 Amiga graphics
Posted: Sun May 01, 2011 2:52 pm
by ChristopheF
http://www.imagemagick.org/
This is a free set of command line tools that you can use for batch processing images. There are LOTS of command line options.
Your only difficulty will be to find the commands and parameters that you need.
Re: DM 2 Amiga graphics
Posted: Sun May 01, 2011 4:02 pm
by ian_scho
I can second the imagemagick library suggestion - the forums were helpful with my queries and the app saved my bacon at work!
Re: DM 2 Amiga graphics
Posted: Sun May 01, 2011 11:09 pm
by Gambit37
I'm pretty sure I already did #1 and #3 in the Zip file in the custom dungeon resources thread?
http://dmweb.free.fr/Stuff/files/cus ... iga-x2.zip
Re: DM 2 Amiga graphics
Posted: Mon May 02, 2011 10:17 pm
by Sphenx
Gambit, your files are doubled (ok) in pgn (so indexed, not full rgb), and do not have purple background.
Joramun, you need a #FF00FF background right?
Re: DM 2 Amiga graphics
Posted: Mon May 02, 2011 11:06 pm
by Gambit37
Why do they need to be made true colour anyway? They don't. If they are being used in DSB, then keep them indexed, the file sizes are much smaller. The engine converts to true-colour internally. And DSB can use any PNG with transparency (1bit or 8bit), so you don't need to change the background colour to pink, just set it to transparent in your image program and it will work fine in DSB.
If you want, I'll update the ZIP so that the images are transparent. The other changes don't need to be made.
EDIT: Looking at my source DM2 doubled images, most of them already have their 1-bit transparency set. All monsters, items, etc, should therefore already work fine in DSB.
Re: DM 2 Amiga graphics
Posted: Tue May 03, 2011 7:35 am
by Sphenx
Gambit, I like to be pragmatic and I tested with a few images from your packages into DSB (0.47). It appears to me those PNG came with a black background within the game with no transparency. Even changing it to pink wasn't making it transparent. I had to save it to BMP with pink to have it work correctly (at least for some creatures).
Joramun, since you don't want the cartoon creatures, I suggest you to use the PC-9821 graphics.dat (or even beta) over the Amiga one, since it *has* some cartoon creatures.
Specially, you will have to change:
Vexirk King
Dark Vexirk
Skeleton
Axeman
Axeman Thief
Ghost
Wolf
That's it.
- DSB is simply the best DM clone ever.
I thought it was some kind of versicle to summon Sophia ...
Re: DM 2 Amiga graphics
Posted: Tue May 03, 2011 8:58 pm
by Gambit37
Oh, sorry. I'm clearly making assumptions. RTC handles 1bit and 8bit transparency no-problem, using the LIBPNG library. Since DSB also uses the same library, I assumed it would work the same way, but maybe Sophia hasn't implemented full support for all transparent types?
Re: DM 2 Amiga graphics
Posted: Thu May 05, 2011 9:23 pm
by Joramun
Sphenx, I can't find any resource on the DM2 version you're talking about. I'm interested though.
Gambit, your ressource are ok. I'll try the transparency, and if it doesn't work, I'll use image magick to correct that.
Re: DM 2 Amiga graphics
Posted: Fri May 06, 2011 5:01 am
by Bit
Just to point on it, the Irfan viewer can batch convert too!