Re: trouble with transparent textures

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Tue, 25 Feb 1997 03:44:13 +0000


On Feb 24, 1:57pm, Edward Peters wrote:
> Subject: trouble with transparent textures
>
> Howdy,
>
> 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);

Whoaa...

I just noticed, your alpha function and alpha ref values are basically
saying "only draw pixels with an alpha value of zero" this means you
won't see any because they'll be transparent. Try PFAF_NOTEQUAL for
more reasonable results.

Cheers,
Angus.
=======================================================================
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:43 PDT

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