Hi Terry, On Fri, Jun 27, 2008 at 5:01 AM, Terry Welsh <[EMAIL PROTECTED]> wrote: > Is it possible to load multiple model files that use the same texture > but only have the texture get loaded once? It seems like a good way > to save memory and reduce state changes.
The loaders don't cache images and textures, but it is possible to combine duplicate state once the data is loaded. The osgUtil::Optimize::RemoveDuplicateState can be used on a whole scene graph, and the osgDB::SharedStateManager can be used when you are incrementally loading subgraphs. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org