From: Brian Furtaw (brian++at++sgi.com)
Date: 07/24/2000 06:00:08
Take a look at the man pages for pfdMakeSharedScene(),
pfuMakeSceneTexList() and pfuDownloadTexList(). You want to load your
scene share common state elements(textures, material colors) then create
a texture list. Then download the textures to texture memory. Perfly
does this you actually see the textures being loaded as Perfly starts
up.
// At startup you can
pfScene *scene; // Loaded scene
pfList *texList; // place to hold the pointers to all your textures.
// After you run pfdLoadFile() to load all your flight files
pfdMakeSharedScene(scene); // To share the GStates in a scene
// To preload the textures into texture memory,
// before your simulation starts running.
texList = pfuMakeSceneTexList(scene);
pfuDownloadTexList(texList, PFUTEX_SHOW);
Brian
christopher.g.dorosky++at++lmco.com wrote:
>
> pfQuery:
>
> If an OpenFlight model is repeatedly loaded (several hundred instances) and
> placed in the scene graph at different places, will the texture be shared in
> texture memory, or will the texture load itself once for each model
> instance, hogging texmem?
>
> Thanks!
>
> Chris
>
> Christopher Dorosky
> Lead Electronic Systems Engineer - Real Time Simulation
> Lockheed Martin Missiles and Fire Control - Dallas
> christopher.g.dorosky++at++lmco.com
> 972-603-2349
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
--
----oOOo---- ----oOOo---- ----oOOo---- ----oOOo----
Brian Furtaw (brian++at++sgi.com)
Graphics Guru Office:(301)572-3293 Fax: (603)250-0370
12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision
Silver Spring, Maryland 20904 Volumizer/Optimizer/React/PCI Device
Drivers
This archive was generated by hypermail 2b29 : Mon Jul 24 2000 - 06:04:13 PDT