I have an other question, maybe stupid, but is it possible to directly
share a texture object ?
For example if my image is not a power of two, it resize it each time
it made a new texture, so is it possible to automaticaly reuse a
texture generated from the same image ? Or am I asking too much ?
You can share state, in fact I'd strongly recommend it, and there is even a ShareDuplicateStateVisitor in the osgUtil::Optimizer dedicated to sharing state.
You do have to run the ShareDuplicateStateVisitor, the OSG won't automatically know that it can collapse two osg::Texture objects into one, you need to go off an build a map of all the state, then look for duplicates, then share these - all some the the ShareDuplicateStateVisitor does for you.
Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
