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

New Message Reply Date view Thread view Subject view Author view

david.heskamp++at++lmco.com
Wed, 16 Oct 96 11:02:47 EDT


Thanks to all who responded to my problem.

Especially, thanks to Tim Moore for the advice (see included message
below). It worked, sort of...

After turning on the two-sided light model, I now get polygons illuminated
on both sides. However, the back sides are not colored, but are rendered
in shades of gray. Any more advice Tim?

--- Begin Included Message ---

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

--- End Included Message ---

Dave Heskamp

Lockheed Martin Tactical Defense Systems
1210 Massillon Road
Akron, Ohio 44315-0001
         
phone: (330) 796 - 5383
fax: (330) 796 - 7009
email: david.heskamp++at++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.