rh-log.txt wrote:September 27, 2003
- Changed the transparent color index from 255 back to 0. 0 is more convenient
because:
1) Images that are used as alpha masks (primarily decals) already
use color 0 as transparent, so they no longer need special processing.
2) PNG images need 255 fewer bytes to mark color 0 as transparent than they
need to mark color 255 as transparent. But this won't really be important
until I add support for PNG images (which will probably happen, but who
knows when).
The only reason I switched to 255 was because that was what BUILD used, so by
using the same transparent index, I could memory map its tiles read-only and
use them directly.
Decals Should Be Included
- Ty Halderman
- ... in rememberance ...
- Posts: 282
- Joined: Thu Jul 17, 2003 9:53 pm
- Location: New Orleans LA
- Contact:
Related?
With the attached program I wrote. It is a very simple command-line utility that can create alPh and grAb chunks in a PNG image. It can also recompress them in an effort to make them smaller. (Definitely do this if you save the PNG with PhotoShop, because its PNG writer is horribly inefficient.)Enjay wrote:how do I set up an PNG to have offsets that will be read by Zdoom?
Code: Select all
Usage: setpng [options] <source file> <output file>
Options can be:
-alph Create alPh chunk in output file
-noalph Remove alPh chunk from source file
-grab <x> <y> Set contents of grAb chunk in output file
-z Recompress IDAT chunks
Code: Select all
setpng -grab 16 16 oldfile.png newfile.png
Code: Select all
setpng -alph oldfile.png newfile.png
Code: Select all
setpng -alph -grab 16 16 -z oldfile.png newfile.png
- Attachments
-
setpng.zip
- This program creates ZDoom-specific chunks in a PNG image.
- (38.36 KiB) Downloaded 1063 times
- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact:
- Nanami
- Posts: 1066
- Joined: Tue Jul 15, 2003 5:13 pm
- Location: That little island pritch created.
- Contact:
Yeah, I made them real late and night and couldn't think of anything else to use. Besides, they're shards of ice so I didn't think a fading blue decal would be logical.Chilvence wrote:I thought your decals were good - Id change the frost one though, I think it would be nicer as a fading blue blob of something.