Nicolas Gauvin (nicolas++at++cae.ca)
Sat, 20 Jul 1996 10:58:18 -0400
This may not work since chances are that the door has not been defined as a
pfDCS by the Multigen loader. It could be a pfGroup, pfSCS, pfGeode or whatever
node type that makes sense.
Here are the flt->pf equivalences for pf2.0 (taken from the readme file)
MultiGen bead IRIS Performer node
------------- -------------------
group pfGroup
animation group pfSequence
level of detail pfLOD
degree of freedom pfDCS
external reference pfGroup
light source pfLightSource
switch pfSwitch
object pfGroup (or pfSCS if transformed)
road pfGroup (or pfSCS if transformed)
road path pfGroup (or pfSCS if transformed)
sound pfGroup (or pfSCS if transformed)
polygon pfGeode + pfGeoSet + pfGeoState
lightpoint polygon pfGeode + pfGeoSet + pfGeoState + pfLPointState
template polygon pfBillboard + pfGeoSet + pfGeoState
transformation pfSCS
As you can see, only degree of freedom (DOF) beads are translated into pfDCS.
You could try a more general search:
door = (pfNode*) newhouse->find("door", pfNode::getClassType());
And then do the appropriate actions to insert a pfDCS on top of this node
depending on its type (using isExactType).
--
Nicolas Gauvin CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca fax: +1 514 340 5496
=======================================================================
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:12 PDT