Re: URGENT: Problems with pfAlphaFunc

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Thu, 13 Mar 1997 00:45:56 +0000


Whooaa, :-)

You call the override to soon.

You override the alpha func then try and change it, you must do things in
another order. Also you don't say what geostate you try and change. You
don't need to override if you set the appropriate geostate information in
the scene graph.

If you are in the draw process you could try:

pfOverride(PFSTATE_ALPHAFUNC, PF_OFF);
pfOverride(PFSTATE_ALPHAREF, PF_OFF);
pfAlphaFunc( (int)(40.0/255.0), PFAF_GREATER);
pfOverride(PFSTATE_ALPHAFUNC, PF_ON);
pfOverride(PFSTATE_ALPHAREF, PF_ON);

Or you could simply remove the override from your code if you have
the geostate you are interested in already. You should make
the geostate changes in the application.

Cheers,
Angus.

On Mar 12, 3:24pm, soraia raupp musse wrote:
> Subject: URGENT: Problems with pfAlphaFunc

> 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);
>

=======================================================================
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.