pfBuffer problems

New Message Reply Date view Thread view Subject view Author view

Mark Visconti (visconti++at++cis.ohio-state.edu)
Tue, 20 Feb 1996 09:52:59 -0500 (EST)


   I'm trying to use the pfBuffer calls for dynamic database paging.
(All pfBuffer code is running in the DBASE process)

   Initially, I tried this using the OpenFlight 2.0 loader (R14.2
dated 1995/12/02 11:37:02. in DSO form), and experienced the traditional
nb_cleanup() crash. I tried the node->getBound() suggestion as well as
calling pfBuffer::merge() every time bufferAddChild is called. When
this failed, I tried using one of our inhouse loaders. With it,
everything (so far) works fine. I also tried the .obj format
successfully.
   I was able to get "non-crashing" code by calling pfBuffer::merge()
after every pfdLoadFile("*.flt") call.

For flight files

This works

pfNode *node0 = pfdLoadFile("file.flt"); // AddChild never called on this
pfBuffer::merge();
pfNode *node1 = pfdLoadFile("file.flt");
scene->bufferAddChild(node1);
pfBuffer::merge();

but this sequence

pfNode *node0 = pfdLoadFile("file.flt"); // AddChild never called on this
pfNode *node1 = pfdLoadFile("file.flt");
scene->bufferAddChild(node1);
pfBuffer::merge(); // Crashes in nb_cleanup()

does not.

For .obj files (and our inhouse loader) either method is fine. Is
there something I'm missing or is it necessary to call pfBuffer::merge()
after loading any geometry ?

Thanks,
Mark Visconti
AcuSoft


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:52:26 PDT

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