From: Goncalo Carvalho (g.carvalho++at++gsa.ac.uk)
Date: 01/31/2003 06:29:11
pfHey,
gstate->setAttr( PFSTATE_FRONTMTL, mtl );
gstate->setAttr( PFSTATE_BACKMTL, mtl ); where mtl is of type
pfMaterial*
lmodel->setTwoSide( PF_ON );
gstate->setAttr( FPSTATE_LIGHTMODEL, lmodel ); where lmodel is of type
pfLightModel*
Goncalo
Johan Stenlund wrote:
>
> Hey,
>
> How will this code look like in C++ ?
>
> //Regards, Johan
>
> -----Ursprungligt meddelande-----
> Från: Goncalo Carvalho [mailto:g.carvalho++at++gsa.ac.uk]
> Skickat: Friday, January 31, 2003 11:06 AM
> Kopia: 'info-performer++at++sgi.com'
> Ämne: Re: [info-performer] help with drawing backmaterial !
>
> Hey,
>
> Use the token PFSTATE_BACKMTL in the geostate setAttr. You will probably
> need to enable a two sided
> lighting model with a pfLightModel.
>
> Goncalo
>
-- Goncalo Carvalho Digital Design Studio - Glasgow School of Art House for an Art Lover - Bellahouston Park 10 Dumbreck Road Glasgow G41 5BW United KingdomTel: +44 (0) 141 353 4616 Fax: +44 (0) 141 353 4422 Mobile: +44 (0) 7766 295867 mailto:g.carvalho++at++gsa.ac.uk
This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 06:34:18 PST