Edward Peters (elpeters++at++ncsa.uiuc.edu)
Mon, 24 Feb 1997 13:57:10 -0600
I'm using Performer 2.1 on an IR Onyx running IRIX 6.2
I'd like to map an rgba texture onto a piece of geometry, so I've added
the following calls when I build my geoset and its corresponding
geostate:
gState->setVal(PFSTATE_ALPHAREF, 0.0);
gState->setMode(PFSTATE_ALPHAFUNC, PFAF_EQUAL);
gState->setMode(PFSTATE_TRANSPARENCY, PFTR_ON);
>From the Performer Programmer's guide, I'd expect areas of my texture
with alpha=0 to be transparent, but instead nothing is drawn (the whole
thing is transparent!) If I remove the above calls I get normal texture
mapping (but no transparency).
Can anyone offer suggestions? Texturing is awfully complicated, and as
verbose and readable as all the gl and performer man pages are :) I'm
coming to the end of my ability to comprehend.
Thanks in advance.
Ed Peters
elpeters++at++ncsa.uiuc.edu
(Grad. research assistant, NCSA)
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:43 PDT