Steve Baker (sbaker++at++link.com)
Fri, 8 May 1998 10:41:25 -0500 (CDT)
In the past, I connected user data to the object
and used the pfCopyFunc callback to find the new
copy of the object.
I now realise that this should never have worked (although
it did work - right up to the very last beta prior to
Perf 2.2 MR). Now it fails miserably - presumably
because the pfCopyFunc callback is also copying the
data into CULL/ISECT/whatever - and I can't tell
which address is the right one for APP.
There has to be a better way to do this - but I can't
think what it is.
I need to do this for many reasons - here is an
example: Suppose my database loader (DBASE task)
knows (from something in the file I'm loading)
that it has to create a pfDCS which is required to
rotate at 10 degrees per second. DBASE knows the
address of the pfDCS in it's pfBuffer prior to the
pfMergeBuffer. However, in frames after the pfMergeBuffer,
the APP process needs to know the address of that
pfDCS so it can call pfDCSRot each frame with
appropriately increasing angles.
Unfortunately I can't just pass the address that DBASE
has into the APP process since it was in a different
pfBuffer.
I suppose I could attach some kind of unique tag onto
that new DCS and then walk the scene graph in APP
searching for that tag. However, in the large scene
graphs I have, that would be pretty time-consuming.
Anyway, this is a very specific example and I need
a very general solution to passing object addresses
between processes.
Help!
Steve Baker (817)619-8776 (Vox/Vox-Mail)
Raytheon Systems Inc. (817)619-4028 (Fax)
Work: SBaker++at++link.com http://www.hti.com
Home: SJBaker1++at++airmail.net http://web2.airmail.net/sjbaker1
=======================================================================
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:57:22 PDT