Re: colors on both sides ???????

New Message Reply Date view Thread view Subject view Author view

Timothy Moore (moore++at++WOLFENET.com)
Tue, 15 Oct 1996 18:18:35 -0700 (PDT)


   From: david.heskamp++at++lmco.com
   Date: Tue, 15 Oct 96 15:54:33 EDT

   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


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.