Hi Yinang,
It looks like you found the UnrefImageData option, but I'd suspect
that this is still the problem. You'll need to put a check into the
the writing of the .ive and download of texture objects to see whats
happening on your system.
Robert.
On 6/11/06, Yigang Wang <[EMAIL PROTECTED]> wrote:
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/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/