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.

--
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