Timothy Moore (moore++at++WOLFENET.com)
Tue, 15 Oct 1996 18:18:35 -0700 (PDT)
Hello:
I want to see the inside of an object. When I turn face culling off...
pfCullFace(PFCF_OFF);
...the faces appear black from the inside and properly colored on the
outside. Does anyone know how to make the inside faces appear colored just
as the outside faces are colored.
You need to have a lighting model in effect which supports two-sided
lighting. You can either do this through globally changing the
lighting model e.g.:
pfLModelTwoSide (lmodel, PF_ON);
pfApplyLModel (lmodel);
somewhere in the draw process (like in the initialization callback) or
by setting the lighting model attribute of the GeoState associated
with the GeoSets whose backfaces should be rendered:
pfGStateAttr (gstate, PFSTATE_LIGHTMODEL, lmodel);
Tim
tmoore++at++lads.is.lmco.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:46 PDT