Re: Change scene

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Thu, 6 Aug 1998 14:06:00 +0200 (MET DST)


>
> Hello pfFriends,
>
> in my visual simulation program, it is required that in one simulation
> session(from pfInit to pfExit) there should be three or four scenes(each
> with an airport) available but only one scene needed under scene graph.
> During simulation the scenes should be swaped according to the control
> message.
>
> My questions are:
> 1. If I load all these scenes(each in a .flt file) with pfdLoadFile(),
> but
> only pfAddChild one, then will the others take the system
> resources(texture
> memory and system memory)?
Everything that is loaded with pfdLoadFile() takes up resources in the
performer shared region.

> 2. If I only load the needed one, then at swap the old one should be
> deleted and free all the resources. 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.

Mario
=======================================================================
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.