[info-performer] spherepatch3s with transparent (clip)textures

New Message Reply Date view Thread view Subject view Author view

From: Patrick J Melody (melody++at++cmf.nrl.navy.mil)
Date: 12/17/2002 13:35:14


If you are using a cliptexture configured with:

int_format PFTEX_RGB5_A1
ext_format PFTEX_UNSIGNED_SHORT_5_5_5_1
img_format PFTEX_RGBA

and some of the texels in the tiles have a 0 alpha bit, what do you
have to do to make those texels render as transparent? I am using this
in the context of a spherepatch3 -- I would like to be able to see through
the spherepatch to what is underneath. I tried loading the spherepatch3
with the texture set as /usr/share/Performer/data/tree.rgba (a tree
billboard texture that has transparency in it) and then running through
all the spherepatch3's geoset geostates and doing a
gstate->setMode(PFSTATE_TRANSPARENCY, PFTR_ON);
but that doesnt seem to work.

any ideas? thanks

- patrick melody


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Dec 17 2002 - 13:36:31 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.