Show README syntax highlighted
alphatools
~~~~~~~~~~
These programs, collectively known as alphatools, are a couple of tools that
process two non-alpha mapped images to produce one or two alpha mapped images.
If you want more detail on how exactly these programs work, contact the author -
details below.
Both are console programs, both work on png files, and both need libpng.
mergealpha
~~~~~~~~~~
The first program, mergealpha, takes two images, one of something in the
foreground with a white background, the other with the same thing in the
foreground but a black background, and produces an image with a translucent
background and proper alpha blending in-between.
mergecloth
~~~~~~~~~~
The second program, mergecloth, extends the idea of mergealpha. Say I want an
image of a person or some sort of real-time stragety game unit to have clothes
or coloured insignia that I can manipulate seperately so that I can change its
colour, without resorting to running the whole image though a dumb colour
filter. (See FreePop and you might get a clue what I'm talking about.) The
process here involves rendering the image twice, once with blue clothes with a
black background, the other with red clothes with a white background. The red
and blue lets the program know what parts are the clothing, and the white and
black dictates the alpha levels in the background.
Run the two images through mergecloth and it will produce two image files, one
containing a white alpha mapped representation of the cloth/insignia overlay,
the other containing an alpha mapped background.
author
~~~~~~
Brendon Higgins
2006
blhiggins@gmail.com
See more files for this project here