Timothy Moore (moore++at++WOLFENET.com)
Tue, 17 Dec 1996 10:30:15 -0800 (PST)
I'm not completely sure how to use the Geostatetables, but my
understanding was that it was on a per channel basis only. In this
situation I need it on a node basis as well as a channel basis. So if your
previous suggestions are still the ones to persue, let me know.
pfGeoState tables are assigned per channel, so they are quite useful
in solving your problem. Here's the approach:
Assign each pfGeoState used in each aircraft model a unique index
across all the models. Don't share the indices i.e, a pfGeoState that
is used in two different models gets a different index for each model.
Set the indices in the pfGeoSets using pfGSetGStateIndex.
For each channel, create a pfGeoState table sized to your maximum
index plus 1. The table entries that correspond to pfGeoStates of the
aircraft of interest for that channel hold those pfGeoStates; all the
other entries hold a pfGeoState that will render polygons as black.
That pfGeoState could have a pfMaterial with ambient and diffuse
components of (0,0,0).
Done :-)
Tim
=======================================================================
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:54:10 PDT