On 5/21/06, Serge Lages <[EMAIL PROTECTED]> wrote:
I found what is going wrong, to work I need to set :

osgDB::Registry::instance()->getOptions()->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_ALL);

If not, when I load a node form a file, the object caching is disabled
during the node loading, so for the images inside the node, it's also
disabled, at least the variable _objectCache in Registry is empty, so
even if I set useObjectCache tu true, it can't found anything.


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 ?

--
Serge Lages
http://www.magrathea-engine.org
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to