From: Johan Stenlund (johan.stenlund++at++Opticore.com)
Date: 01/31/2003 04:25:51
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
Johan Stenlund wrote:
>
> Hi!
>
> I'm new at Performer and I need help with an easy (probably) thing.
> The thing is that I have a model with tristrips where some of the polygons
> are back facing and some are front facing. I have noticed that Performer
> by default, only draws frontfacing materials, and cull away all back
facing
> polygons. I know how to disable backface culling, but the backfacing
> polygons are
> then drawn black. How do I enable drawig both front and back materials?
-- 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
----------------------------------------------------------------------- List Archives, Info, FAQ: http://www.sgi.com/software/performer/ Open Development Project: http://oss.sgi.com/projects/performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com -----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 04:28:05 PST