When I open an osg file, and  then save it as a .ive format. But when I open 
the .ive format again, the texture disappear!

In my program, I use four osg::Producer::Viewer, each for an separate window. 
So I find that every viewer use the same databasepager, since it is static. I 
doubt there must be some problems with this setup. I have set as the follows:   

    osgDB::ReaderWriter::Options* options = new osgDB::ReaderWriter::Options;
 
    options->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_ALL);
    osgDB::Registry::instance()->setOptions(options);
    m_DatabasePager = osgDB::Registry::instance()->getOrCreateDatabasePager();
    m_DatabasePager->setUnrefImageDataAfterApplyPolicy(false,false);
    m_Viewer->realize();

It seems that the image has been released after it is loaded. 



 What is the problem? 

 Thanks for your reply.
 
 Yigang



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

Reply via email to