Hi Joakim,

On 6/28/06, Joakim Simonsson <[EMAIL PROTECTED]> wrote:
Aha, so does it mean that I should add a update callback to a parent node
that actively does this:

void MyRequestCallback::operator()(osg::Node* node, osg::NodeVisitor* nv)
{
     osg::Group* parentGroup = dynamic_cast<osg::Group*>(node);
     if(group)
     {
         osgDB::DatabasePager* databasePager =
osgDB::Registry::instance()->getOrCreateDatabasePager();
         databasePager->requestNodeFile(m_filePath, parentGroup, 0.0,
nv->getFrameStamp());
     }

     traverse(node, nv);
}

?

I guess it'll probably do the trick, I haven't tried anything like
these before though ;-)

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

Reply via email to