Converting Black and White Doom Graphic Files to PNG(SOLVED)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Exosphere
Posts: 168
Joined: Sun Jun 11, 2017 11:42 am
Location: New England, US

Converting Black and White Doom Graphic Files to PNG(SOLVED)

Post by Exosphere »

As the title suggests, I having some trouble to trying to convert the black and white Doom Graphic files to PNGs. Everytime I try to do the conventional method of converting non-PNG images to PNG while in SLAD3 (Right-click on image -> Graphic -> Export as PNG), the image remains in black and white. What am I doing wrong?

I don't know if this is important, but the images I am trying to extract are from a WAD, made in 2006.
Last edited by Exosphere on Mon Jul 10, 2017 11:27 am, edited 1 time in total.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Converting Black and White Doom Graphic Files to PNG

Post by Gez »

That's a very very very common rookie mistake. In short:
- Doom graphics don't contain their own palette information
- SLADE looks for a palette in the current archive, and if not in the base resource archive
- SLADE uses a grayscale palette as a fallback if it cannot find any other palette

So what happens is that you have Doom format images with no palette AND you have not set a Doom IWAD as a base resource archive AND you have not used the palette chooser to explicitly load the Doom palette, then you get grayscale. The quick fix is to use the palette chooser dropdown when you convert to PNG (there's one under source image, and one under destination image); the long-term fix is to set a base resource archive.

http://slade.mancubus.net/index.php?pag ... e-Resource
User avatar
Exosphere
Posts: 168
Joined: Sun Jun 11, 2017 11:42 am
Location: New England, US

Re: Converting Black and White Doom Graphic Files to PNG(SOL

Post by Exosphere »

Gez wrote:That's a very very very common rookie mistake. In short:
- Doom graphics don't contain their own palette information
- SLADE looks for a palette in the current archive, and if not in the base resource archive
- SLADE uses a grayscale palette as a fallback if it cannot find any other palette

So what happens is that you have Doom format images with no palette AND you have not set a Doom IWAD as a base resource archive AND you have not used the palette chooser to explicitly load the Doom palette, then you get grayscale. The quick fix is to use the palette chooser dropdown when you convert to PNG (there's one under source image, and one under destination image); the long-term fix is to set a base resource archive.

http://slade.mancubus.net/index.php?pag ... e-Resource
Thank you for the solution. I was able to fix it by setting the Base Reasource to the DOOM2.wad. :D
Locked

Return to “Editing (Archive)”