Wayne Price (wayne++at++miramar.demon.co.uk)
Mon, 19 Jan 1998 23:14:10 +0000
> I am looking for a mechanism that will reduce the load/build time
> of a run-time scene graph. On my Max Impact it takes about 1 minute
> to create the scene graph from various local .flt files.
> I would like to reduce this significantly (4-5 seconds) without
> having to buy an Octane (which loads the database in quite fast).
Use the command 'pfconv abcde.flt abcde.pfb'. This creates a Performer
Fast Binary format file. They are _much_ faster than Multigen .flt
files.
> Is there a Performer call that will write the scene graph out
> (hopefully in binary) and then a Performer call that will
> read the scene graph back in without using pfdLoadFile calls?
Yes...
pfdStoreFile(rootNode, "abcde.pfb");
pfdLoadFile("abcde.pfb");
These wil look at the extension and determine which pfStoreFile_xxx call
to use and which format is output. There are only a limited number of
output formats supported though (.pfa, .pfa, .dwb and .medit last time I
checked - see pfconv man page).
Wayne
--
________________________________________________________________________
Wayne Price W.Price++at++miramar.demon.co.uk Acropolis Solutions Ltd
Mobile: +44 (0) 370 376383 Home: +44 (0) 1483 531235
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:35 PDT