Re: Some Basic Q's
John Rohlf (jrohlf++at++tubes)
Wed, 14 Sep 94 10:12:25 PDT
>
> In message <199409041910.MAA23723++at++netcom.netcom.com> you write:
> >
> >Hi, I've been using Performer 1.2 to write a
> >distributed interactive simulation application
> >and I have some basic questions which I have
> >yet to resolve.
>
> > [When you pfClone a node, how do you find the node in the cloned
> > graph that corresponds to a particular node in the original?]
>
> >The only other option I have thought
> >of is to write a little procedure to traverse the
> >scene graph below a passed pfNode for a passed node
> >name, returning a pointer to it when found.
>
> Yup. I came across this exact problem a few months ago, also while
> writing a DIS application (our commercial Stealth application). After
> asking on this mailing list, it became clear that there is no good way
> to do this using pfFind. So, as someone else on this list suggested,
> I wrote a function just like the one you describe above, which worked
> fine.
Try renaming the root of the cloned subgraph to ensure that pathnames
will be unique:
clone = pfClone(truck, 0);
pfNodeName(clone, "truck1");
wheel1 = pfFind("truck1/wheel");
This should work for now. The next release of
Performer will contain more sophisticated database query routines.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:32 PDT