pfBuffer question.

New Message Reply Date view Thread view Subject view Author view

Bruno Rassaerts (brassaer++at++luc.ac.be)
Fri, 16 May 1997 15:27:00 +0000


Hi,

I'm wondering if I understood the pfBuffers correctly...

My Performer application uses two processes. The first process does
the usual Performer stuff (setup, set viewpoint, pfFrame,...) and the
other process runs the interface. It looks something like this:

performer intializations
create scene with some lightsources

if (fork() != 0)
{
   while (notdone)
   {
      setviewpoint
      pfFrame ();
   }
}
else
{
   create new pfBuffer for adding objects
   select the buffer
   run interface
}

In the interface I create new objects in shared memory. After a object
is created I do a scene->bufferAddChild (obj); and
objectsBuffer->merge(). This works fine.

Now, the problem is deleting objects. I thought I could do it in the
same way:

//i'm still in the interface process so the current buffer should be
//the one I created
scene->bufferRemoveChild (obj);
objectsBuffer->merge ();

This is when Performer crashes...

-- 
  //       Bruno Rassaerts - EDM (Expertisecentrum Digitale Media)
 ('>    Wetenschapspark 2 - B-3590 Diepenbeek - Tel: +32-(0)11268411
 /rr         Fax: +32-(0)11269400 - eMail: brassaer++at++luc.ac.be
*\))_               URL: http://www.luc.ac.be/~brassaer/
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:15 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.