Hi Huron, The osgDB::DatabasePager is built around the the osg::PagedLOD node that is placed into the scene graph itself, you don't need to use callbacks at all - once you've built the database everything will happen automatically for you. There has been lots of discussion about PagedLOD over the years so have a look through the archives.
Another route would be to implement your own paging, and in svn/trunk there is an example, osganalysis, that pages in a series of models that are specified on the command line. It's surprisingly easy to put together custom paging as all the threading and GL object compilation classes exist already and you can used them off the shelf. However, this example doesn't do any load balancing (expiry old subgraphs) like the DatabasePager/PagedLOD does, so I'd still recommend going the PagedLOD route. Robert. On Thu, Nov 4, 2010 at 9:08 PM, Huron Sam Perera <[email protected]> wrote: > Hi, > > I am converting an application that uses Performer to work with > OpenSceneGraph in place of Performer. In my application, the paging is done > by adding a Callback using pfDBaseFunc in which all paging is performed. I > looked for a similar Callback in the DatabasePager class and could not find > one. So, how can I convert the functionality of my pfDBaseFunc callback? > > > Thank you! > > Cheers, > Huron > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=33480#33480 > > > > > > _______________________________________________ > 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

