transparency doesn't work on PNGs [Yes it does]

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

transparency doesn't work on PNGs

Post by SargeBaldy »

http://oregonstate.edu/~lloydo/png.zip
look around map01 for awhile.
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

None of the PNGs in that wad have a transparent color set. That's your problem.

To verify that PNG transparency does work, run with -iwad strife1 (if you have Strife) and look at all the unknown thing sprites. UNKNA0 is stored in zdoom.wad as a PNG.
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

Post by SargeBaldy »

yeah i noticed my mistake, i was under the mistaken impression that xwe used cyan as it's transparent color only to just notice that it uses indigo.
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

I should also mention that the palette does not need to exactly match Doom's, so you can save space by not writing a 256-entry PLTE chunk unless you actually use 256 different colors in your image. However, it's still a good idea to restrict yourself to colors that are in the game palette so that there is an exact match between every color in the PNG and every color in PLAYPAL.
Post Reply

Return to “Closed Bugs [GZDoom]”