Marcus (Marcus++at++multigenuunet.UU.NET)
Mon, 19 Dec 1994 17:10:33 PST
All local instances in the scene graph are pfClones. The original
nodes are *never* attached to the scene graph. As a side effect
of this, the pfNodes that are exported via the Flight loader
callback (say a DOF's pfDCS) will not be found in the scene
graph if they are part of an instanced subtree.
Hmm ... this is weak ... instance loading needs improvement.
It's now on my list of things to do. In the meantime ...
To find all the pfDCS nodes that were cloned because of local
(and external) instancing, you'll have to perform a post load
traversal of the scene graph and look for them by type and
pathname. Assuming PFFLT_CLEAN is disabled (as you said)
, each cloned instanced will have a unique pathname. It'll be a
concatenation of the node names of the unique base nodes plus the
non-unique cloned nodes. You can build the pathname (and matrix
stack) as you traverse down. Still, matching up the cloned pfDCS's
with the corresponding DOF bead information could get complicated.
>From the point of view of the DOF callback, it's a one (bead) to many
(pfNode) relationship.
Regards,
Marcus Barnes, Member Technical Staff
MultiGen Inc., 1884 The Alameda, San Jose CA, 95126
PH: (408) 261 4118 FX: (408) 247 4329
EMAIL: multigen!marcus++at++uunet.UU.NET
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:45 PDT