Re: Change scene

New Message Reply Date view Thread view Subject view Author view

Scott Herod (herod++at++evt.com)
Thu, 06 Aug 1998 11:18:49 -0600


Mario Veraart wrote:

> > Is there a simple methord to free
> > all
> > the resources taken by a scene node?
>
> Just call pfDelete() on the node that you want to delete and
> everything below it is deleted as well. Be aware that it will take a
> few frames until the resources are really free, this is because the
> cull and draw might be needing this stuff.

Is that really true? I don't think that removing a DCS for
example correctly deletes things like GeoStates attached to a
GeoSet under the DCS. As an example, attach something like the
following to the bottom of the simple.C code. I can send you
the entire source if necessary.

Scott Herod
herod++at++evt.com
sherod++at++colorado.edu

// ========== Delete Test ==================

  printf("GeoState ref count = %d.\n", geostate->getRef());
  printf("Delete DCS attempt = %d.\n", pfDelete(dcs));
   
  scene->removeChild(dcs);

  printf("Delete DCS attempt = %d.\n", pfDelete(dcs));
  printf("GeoState ref count = %d.\n", geostate->getRef());

  printf("Delete GeoState attempt = %d.\n", pfDelete(geostate));

// ========== Delete Test ==================

  pfExit();
  return 0;
=======================================================================
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 Tue Aug 11 1998 - 13:42:35 PDT

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