Re: Performer trouble

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Wed, 20 Nov 1996 01:05:49 +0000


Are you using perfly?

just press 'b' on the keyboard.

If it's your own code then read on, face culling is part of the
performer state information associated with geosets. You can
globally change this in the draw process, by doing this:

pfCullFace(PFCF_NONE);
pfOverride(PFSTATE_CULLFACE, PF_ON);

You may want to cull front faces, since it could simply be that your
database is 'insideout' ie the polygons are defined clockwise instead
of counterclockwise, so try substituting the PFCF_NONE token.

Ideally you should make changes like this to the state information of
those parts of the database you have problems with instead of simply
overriding this.

No face culling means both front faces and backfaces will be drawn.
This will typically mean that your surface normals will be wrong
from one direction so you may want to enable two sided lighting.

pfLModelTwoSide is the C call you have to make
with the lighting model.

Good Luck,
Angus.

--- Forwarded mail from Club Modellismo Storico Cagliari <cmsc++at++crs4.it>

Date: Tue, 19 Nov 1996 22:29:15 +0100
From: Club Modellismo Storico Cagliari <cmsc++at++crs4.it>
To: mogal++at++asd.sgi.com
Subject: Performer trouble

Hi, I'm trying to use Performer on Onyx InfiniteReality to visualize a
virtual reality, but the program don't show all faces of the object. I
think backface culling is always turn on. Can you help me?
Thank
Gianmauro Cuccuru

--

CLUB MODELLISMO STORICO CAGLIARI Via G.Randaccio, 31 09134 CAGLIARI ITALY http://www.crs4.it/cmsc ======================================================================= 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:59 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.