transparency doesn't work on PNGs

Sat Oct 25, 2003 2:29 pm
look around map01 for awhile.

Sat Oct 25, 2003 3:52 pm

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.

Sat Oct 25, 2003 3:56 pm

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.

Sat Oct 25, 2003 4:03 pm

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.