Hi,
the osgDB::DatabasePager discards a database request if its frameNumber
is earlier
than the current frameNumber. Your requestNodeFile method has to
continuously
call osgDB::requestNodeFile even if the tile has already been requested.
Adrian Egli OpenSceneGraph (3D) wrote:
Hi all ,
One of our application is working with a derrived class of database
pager. Our class has just over written
::requestNodeFile(const std::string& inFileName,osg::Group* group,
float priority, const osg::FrameStamp*
framestamp,osg::ref_ptr<osg::Referenced> &databaseRequest)
method. There we get a request form osgDB core (osgUtil::cull visitor)
and we generate a event to generate the right tile from a database. the
event gets handled in a second thread, once he has finish
generating the right tile, we insert the information into a list. once
a requested tile is in a liste we can make use of the common database
pager
requestnodefile method. so we just call
DatabasePager::requestNodeFile(inFileName,group,priority,framestamp,databaseRequest);
so it seams to work, but unfortunatelly there are
in some cases missing requestnodefile calls, means the database pager
should still have such missing tiles, but i don't get right informed,
or the database pager doesn't page in the tiles, may there is
something wrong with the framestamp. or is there something implement to
give a maximum of time to page in a tile. ? after such a time slot
there will no longer paged in the requested tile. ?
adrian
--
********************************************
Adrian Egli
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
|
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org