Jeremy Friesner (jaf++at++chem.ucsd.edu)
Wed, 2 Oct 1996 11:57:40 -0700 (PDT)
My latest dilemna is this: I'm doing collision detection in
a separate ISECT process, and when I've detected a collision,
I'd like to be able to get at some user-data that I've stored
using setUserData() on a pfDCS associated with the object
I've collided with.
Using pfHit::query(PFQHIT_PATH, &mypath) I'm able to get a
pfPath containing the pfDCS's above the objected I intersected
with... but getUserData() on these pfDCS's returns NULL... even
though I did do the correct setUserData() in the app process.
Looking at the memory locations of the pfDCS's returned by
query(), it seems that these pfDCS's are actually not even
the same ones I added to the scene graph. This makes some
sense, as the ISECT process probably requires its own copy
of the scene graph to run asynchronously.
The question, then, is how can I get the userData pointers
in my scene graph to propagate to the ISECT process's copy
of the scene graph? I do the setUserData() call right after
I create the pfDCS (before I addChild() the pfDCS to the
scene graph)
Thanks,
Jeremy
=======================================================================
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:42 PDT