The frames I've converted to true-color PNGs don't show up at all. I haven't set any offsets, just used XWE beta to import the raw data over the old indexed BMPs. Is this a bug, or just a mistake on my part?
[not a bug]PNGs don't work for weapons?
Moderator: Graf Zahl
-
Caligari_87
- Posts: 45
- Joined: Tue Nov 08, 2005 18:26
- Location: Salt Lake City, Utah
[not a bug]PNGs don't work for weapons?
I noticed this while converting Haloguns2 to be GZDoom exclusive, to take advantage of true color.
The frames I've converted to true-color PNGs don't show up at all. I haven't set any offsets, just used XWE beta to import the raw data over the old indexed BMPs. Is this a bug, or just a mistake on my part?

The frames I've converted to true-color PNGs don't show up at all. I haven't set any offsets, just used XWE beta to import the raw data over the old indexed BMPs. Is this a bug, or just a mistake on my part?
-
wildweasel
- DRD Team Admin (Inactive)
- Posts: 2132
- Joined: Wed Jun 29, 2005 22:00
- Location: the Admincave!
-
AFADoomer
- Posts: 43
- Joined: Fri Sep 02, 2005 3:23
-
Zeg-Vok
- Posts: 233
- Joined: Wed Sep 21, 2005 18:04
- Location: Up the creek without a paddle
-
BlackFish
- Posts: 108
- Joined: Thu Sep 01, 2005 18:33
-
Graf Zahl
- GZDoom Developer

- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
Re: PNGs don't work for weapons?
Caligari_87 wrote:I haven't set any offsets,
And that's the problem.
-
Enjay
- Developer

- Posts: 4759
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
You don't. You set the offset in the image. On the GZdoom download page, Graf links to a command line tool by Randy that allows you to set offset values that get stored inside a PNG. Then you just put the png into your WAD or ZIP. In fact, I'm pretty sure the Doom graphic format holds its own offset information too. So I'm guessing that if you had a normal Doom graphic in a WAD with offsets you wanted to preserve, you could export the graphic as a raw data lump and stick it into a ZIP and still have the offsets work. (Although just putting the WAD into the ZIP would probably be easier.) I've certainly transferred graphics from one WAD to another using that method and it worked.Zeg-Vok wrote:How does one set the image offset in a pk3/zip file?
-
Graf Zahl
- GZDoom Developer

- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
You can. Some lumps in GZDoom.pk3 are doing just that. And yes, the offsets are stored at the start of the graphics lump.Enjay wrote:So I'm guessing that if you had a normal Doom graphic in a WAD with offsets you wanted to preserve, you could export the graphic as a raw data lump and stick it into a ZIP and still have the offsets work.
-
Caligari_87
- Posts: 45
- Joined: Tue Nov 08, 2005 18:26
- Location: Salt Lake City, Utah
Okay then. I've set offsets and the weapons still don't appear. I'm getting a little frustrated now.
My graphics are 320x240 full-color PNG. I want them to overlap the screen 100%. Will someone give me a command line to do this? Please? I saved them in the GIMP 2.2 with the default options for PNGs, save resolution and save creation time.

My graphics are 320x240 full-color PNG. I want them to overlap the screen 100%. Will someone give me a command line to do this? Please? I saved them in the GIMP 2.2 with the default options for PNGs, save resolution and save creation time.
-
Graf Zahl
- GZDoom Developer

- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
-
Caligari_87
- Posts: 45
- Joined: Tue Nov 08, 2005 18:26
- Location: Salt Lake City, Utah
-
Enjay
- Developer

- Posts: 4759
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
No, you set transparency in the PNG. Exactly how you go about this depends on the software you are using to make the PNG. I know how to do it in Paint Shop Pro 7.04
When saving, after selecting PNG as your file type, click the options box
click run optimiser
click the transparency tab
Set up your transparency (I use the "Areas that match this colour" option).
Click OK
Remember, there is no spoon. Umm, there is no transparent colour in the Doom graphics format. Cyan is just a colour commonly used to mark an area that will be converted to transparent when the file is changed to a Doom graphics lump. It doesn't have to be cyan and a few programs use another colour instead.
When saving, after selecting PNG as your file type, click the options box
click run optimiser
click the transparency tab
Set up your transparency (I use the "Areas that match this colour" option).
Click OK
Remember, there is no spoon. Umm, there is no transparent colour in the Doom graphics format. Cyan is just a colour commonly used to mark an area that will be converted to transparent when the file is changed to a Doom graphics lump. It doesn't have to be cyan and a few programs use another colour instead.
-
Caligari_87
- Posts: 45
- Joined: Tue Nov 08, 2005 18:26
- Location: Salt Lake City, Utah
-
Graf Zahl
- GZDoom Developer

- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
-
Caligari_87
- Posts: 45
- Joined: Tue Nov 08, 2005 18:26
- Location: Salt Lake City, Utah