Hi Suvajit,
From your description I suspect that your problem is caused by the osg
object cache.
try
osgDB::Registry::instance()->clearObjectCache();
before the ReadFile() to see if that's the problem.
If that helps you might want to just supress the usage of the cache for
this readfile call:
osgDB::ReaderWriter::Options* opt =
osgDB::Registry::instance()->getOptions();
if (!opt) opt = new osgDB::ReaderWriter::Options();
opt->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_NONE);
osgDB::Registry::instance()->setOptions(opt);
readFile()
opt->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_ALL);
osgDB::Registry::instance()->setOptions(opt);
Cheers,
Laurens.
On 4/28/2010 3:49 PM, Suvajit Sengupta wrote:
Hi Robert,
Yes, I am calling the viewer->frame() after updating the model assuming that
after the model is built then only I can call for update and render traversal.
Now the question to me how to re-render a scene ? Looking for some
directions.
...
Thank you!
Cheers,
Suvajit
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27368#27368
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org