[not a bug]PNGs don't work for weapons?

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Caligari_87
Posts: 45
Joined: Tue Nov 08, 2005 18:26
Location: Salt Lake City, Utah
Contact:

[not a bug]PNGs don't work for weapons?

Post by Caligari_87 »

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?

8)
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel »

I can't seem to get it to work either. I created a true-color PNG with transparencies (actually just a black-to-transparent gradient) and imported it as a test, but that didn't work at all, just as you described.
AFADoomer
Posts: 43
Joined: Fri Sep 02, 2005 3:23

Post by AFADoomer »

They work for me... I had to mess with the offsets a little, but they work fine.

[edit] Just realized... I have mine in a .pk3, not a .wad, so that may be making a difference.
User avatar
Zeg-Vok
Posts: 233
Joined: Wed Sep 21, 2005 18:04
Location: Up the creek without a paddle
Contact:

Post by Zeg-Vok »

How does one set the image offset in a pk3/zip file?
User avatar
BlackFish
Posts: 108
Joined: Thu Sep 01, 2005 18:33

Post by BlackFish »

is it possible to scale these weapon frames (ie make hires weapons)?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: PNGs don't work for weapons?

Post by Graf Zahl »

Caligari_87 wrote:I haven't set any offsets,

And that's the problem.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Zeg-Vok wrote:How does one set the image offset in a pk3/zip file?
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.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

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.
You can. Some lumps in GZDoom.pk3 are doing just that. And yes, the offsets are stored at the start of the graphics lump.
User avatar
Caligari_87
Posts: 45
Joined: Tue Nov 08, 2005 18:26
Location: Salt Lake City, Utah
Contact:

Post by Caligari_87 »

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.

8)
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Caligari_87 wrote: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.

They have to be 8 bit. True color graphics can only be defined through the HIRESTEX lump.
User avatar
Caligari_87
Posts: 45
Joined: Tue Nov 08, 2005 18:26
Location: Salt Lake City, Utah
Contact:

Post by Caligari_87 »

Okay then, that'll work. If each PNG uses it's own palette, will cyan still be the transparent color? I can't use the Doom palette for these graphics (ugly).

8)
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

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.
User avatar
Caligari_87
Posts: 45
Joined: Tue Nov 08, 2005 18:26
Location: Salt Lake City, Utah
Contact:

Post by Caligari_87 »

Okay, thanks. Now, about the offsets...what should I use for a 320x240 full-screen weapon?

8-)
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Start with 160,240 and adjust it until it fits. Exact values may differ slightly between weapons.
User avatar
Caligari_87
Posts: 45
Joined: Tue Nov 08, 2005 18:26
Location: Salt Lake City, Utah
Contact:

Post by Caligari_87 »

Thanks, I'll quit bugging everyone now. :)

8-)
Locked

Return to “Closed Bugs”