URGENT: Problems with pfAlphaFunc

New Message Reply Date view Thread view Subject view Author view

soraia raupp musse (soraia++at++lig.di.epfl.ch)
Wed, 12 Mar 1997 15:24:28 +0100


Hi,

I have a simple question: I must create some transparence in my texture.
I want to use the alphafunc to eliminate some pixels of my texture. I've tried:

        pfOverride(PFSTATE_ALPHAFUNC, PF_ON);
        pfGStateMode (gstate, PFSTATE_ALPHAFUNC, PFAF_GREATER);
        pfGStateVal (gstate, PFSTATE_ALPHAREF, 40.0/255.0);

        Or

        pfAlphaFunc(40.0/255.0, PFAF_GREATER);

But, it isn't work very well.

If you have some example, please, send me.

Thank you,
Soraia

-- 

''' (o o) ---------oOO-------OOo------------------------------------------------------- Soraia Raupp Musse | --- PhD student --- ----------------------------------------------+------------------------------ Swiss Federal Institute of Technology | E-mail: soraia++at++lig.di.epfl.ch Computer Graphics Lab (EPFL - LIG) | Phone: +41(21) 693-6648 CH-1015 Lausanne, Switzerland | Lab: +41(21) 693-5248 http://ligwww.epfl.ch/soraia.html | Fax: +41(21) 693-5328 ----------------------------------------------+------------------------------ ProjK -- http://ligwww.epfl.ch/~soraia/ProjK.html ----------------------------------------------+------------------------------

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:53 PDT

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