Angus Dorbie (dorbie++at++sgi.com)
Wed, 13 Jan 1999 12:19:37 -0800
Performer will reuse the textures, and you don't need geometry to
download, that's the point (at least in part). You may want to ensure
that the filters for your textures are the ones you desire since
subsequent changes will affect state and cause some overhead, the big
one would be MIP map filtering. My concern is that some methods of
building a scene graph would not associate this with the texture,
MultiGen for example does this in their OpenFlight files using a .attr
file for each image, however if this kind of state data is held in the
geometric model for your database then you may have to change filters
once you load the geometry and that would be undesirable.
Cheers,Angus.
Jesse Stockwell wrote:
>
> Hello.
>
> I'm writing an OTW scene for a flight simulator.
>
> I've got a database that the aircraft are supposed to fly over. This
> database is pretty darn huge. I can't load it all into memeory at
> once. I want to preload the textures that I'm using on the terrain to
> increase realtime performance.
>
> What I'm hoping I can do, is load the texture files into pfTexture
> nodes, add the nodes to a list, and then call pfuDownLoadTexList(); on
> that list and load them into memory. Then Performer will use those
> textures when displaying the database, and won't bother loading them
> into hardware memory again.
>
> I know that this works fine if I get the texture list from my scene,
> and the scene contains all the pfGeoSets that use the textures. If I
> load the texture files, will I still take a performance hit when I go
> to display my database, because there wasn't any geometry for the
> textures to be bound to when I called pfDownLoadTexList()?
>
> Will the textures be used at all? I give the textures that I load in
> from file the same names that they would have had if they'd been
> loaded in when I loaded the terrain. So.. I'm hoping Performer will
> use the textures already loaded from file, instead of loading the
> textures again when I load portions of the database.
>
> Any advice would be appreciated.
>
> Jesse
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- "Only the mediocre are always at their best." -- Jean GiraudouxFor advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/
This archive was generated by hypermail 2.0b2 on Wed Jan 13 1999 - 12:19:40 PST