Re: Billboards

New Message Reply Date view Thread view Subject view Author view

ceti (ceti++at++worldnet.net)
Fri, 18 Oct 1996 12:41:43 +0100


>. If you would be so kind as to share your recurse function, I would really
>appreciate it. Again, thanks for your help and suggestions.

First, sorry for the basic cast that doesn't work ...

for the function :
/*****************************************************************************/

void transpa(pfNode *node)

/*****************************************************************************/

{
int i;

pfGeoState *fortranspa;

if(pfGetNumChildren(node)==1)

        {

        fortranspa=pfGetGSetGState(pfGetGSet(node,0));

        pfGStateMode(fortranspa,PFSTATE_TRANSPARENCY,PFTR_HIGH_QUALITY);

        pfGStateMode(fortranspa,PFSTATE_ALPHAFUNC, PFAF_NOTEQUAL);

        /* eventualy play on alpharef */
                   /*pfGStateVal(fortranspa,PFSTATE_ALPHAREF, 0.5f);*/
        pfGSetGState(pfGetGSet(node,0),fortranspa);

        }

else

        for(i=0;i<pfGetNumChildren(node);i++)

                transpa((pfNode *)pfGetChild(node,i));

}

/*****************************************************************************/

==================================================================
      _/_/ _/ _/_/_/ _/ _/ _/_/_/ _/_/_/ _/_/_/
    _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
   _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/
  _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
  _/_/ _/_/_/ _/_/_/ _/ _/_/_/ _/_/_/ _/ _/
                                                               
     BILLARD Olivier - Ingeneer R&D - C&I Software
     1 avenue de la mer - 44380 PORNICHET - FRANCE
     Tel: +33 2 40 11 68 72 Fax: +33 2 40 61 68 14
  Email: ceti++at++worldnet.net URL:http://www.worldnet.net/~ceti
=================================================================
                          \\\|||///
                         \\ - - //
                          ( ++at++ ++at++ )
       +----------------oOOo-(_)-oOOo----------------------+
| " We don't inherit the world from our ancestors, |
| it's only a loan from our children ." |
| Antoine de Saint Exupery. |
       +-------------------------Oooo----------------------+
                         oooO ( )
                        ( ) ) /
                         \ ( (_/
                          \_)

=======================================================================
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:53:46 PDT

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