Exporting doom sprites from WAD as PNGs

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
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Exporting doom sprites from WAD as PNGs

Post by Tormentor667 »

...or something like that. Is there a tool that automatically mass-exports sprites from a WAD file as PNGs for use in PK3 folders? I tried SLumpEd, it works but you have to set "PNG" for each single sprite... and it isn't fun to do this about 5000 times.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Exporting doom sprites from WAD as PNGs

Post by Graf Zahl »

To my knowledge there isn't.

I am using a tool for this that uses several non-redistributable programs to do its work so that isn't much help for you. Can't you just upload the file somewhere (e.g. Stronghold or KDiZD FTP)? Then I can run my tool over it and send it back.
User avatar
Remmirath
Posts: 2562
Joined: Sun Dec 23, 2007 3:53 am
Graphics Processor: nVidia with Vulkan support
Location: My house
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Remmirath »

The SlumpEd method works for me. It automatically selects the png format when i click on export, so i can uber-quickly click on Export. :P
User avatar
Enjay
 
 
Posts: 27087
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Enjay »

Tormentor667 wrote:it works but you have to set "PNG" for each single sprite... and it isn't fun to do this about 5000 times.
BagHeadSpidey made a tool which can be used for setting the offsets nice and quickly. You have to export all the sprites as Doom format lumps, and then again as BMP files. Then you run BHS's tool, pointing it to the directory where the files are, and it will convert the BMPs to PNGs and use the Doom lumps to set the offsets in the PNGs.

http://forum.zdoom.org/viewtopic.php?f=19&t=16273

I'm not sure if UNWAD can do something similar, perhaps without the intermediate steps of BMP/LMP.
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: Exporting doom sprites from WAD as PNGs

Post by hnsolo77 »

unwad saves em as png's, i just checked it myself
User avatar
Enjay
 
 
Posts: 27087
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Enjay »

I suspect that it does, but does it preserve the offsets?
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: Exporting doom sprites from WAD as PNGs

Post by hnsolo77 »

just checked it, and yes it appears to do exactly that

well i did not see any problems at least with an in-game test
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Tormentor667 »

I tried UnWad and it does exactly what I needed, this program needs to be recommended and needs to get its own Windows GUI ;) Thanks guys
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Exporting doom sprites from WAD as PNGs

Post by Graf Zahl »

Good to know. Maybe I can retire my crap tools now. ;)
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Tormentor667 »

You should really try it, it is fast, easy to use and works wonders for lazy boys like me :P
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Macil »

Note that there are a few issues with it, mainly it sometimes not sorting graphics into their folder, or not giving the extract pngs the correct extension (and giving them a .lump extension).
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by bagheadspidey »

Agent ME wrote:Note that there are a few issues with it, mainly it sometimes not sorting graphics into their folder, or not giving the extract pngs the correct extension (and giving them a .lump extension).
I just committed a new revision to fix those problems, but I don't have any wads with TX_START / TX_END markers to test it with. Would you mind checking it out for me when you get a chance?
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by Tormentor667 »

Agent ME wrote:Note that there are a few issues with it, mainly it sometimes not sorting graphics into their folder, or not giving the extract pngs the correct extension (and giving them a .lump extension).
I already noticed that. This also happens to sounds which are not in the "Doom Sound Format" (e.g. different wave formats, mp3, ogg, flac)

@Baghead - Any chance of getting these added? :)
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Exporting doom sprites from WAD as PNGs

Post by bagheadspidey »

Torm: Try it now, it should be a lot better about putting the right extensions on things.
Locked

Return to “Editing (Archive)”