You can use alpha channel to modulate the transparency of the texture on
the object. You can then see the underlying color (defined in geometry)
or even make the object translucid.
I attach a small test program I wrote when I was looking into alpha blending.
Try:
java Transparent glow4.jpg glow4_a.jpg
java Transparent glow4.jpg glow4.jpg
or any combination of your own pictures...
it will produce a rotating rectangle in front of a grid. The rectangle has an
RGBA
(RGB+alpha) texture produced from the two jpg files. The first jpg is used for
the RGB the second is used to create the alpha mask.
I use a transparency attributes to hide the underlying default color of the
rectangle.
Hope this will help !
Frederic Gillet
Xbind, Inc.

Transparent1.jar

Reply via email to