Hi Boon Wah, On 3 September 2012 16:03, Boon Wah <[email protected]> wrote: > Hi Roberto, > > If I really needs to force the database pager to load a few specific > tiles as part of the pre-processing stage, what is the API in database pager > that I can make use of?
There isn't an API in the DatabasePager to specifically this, the DatabasePager only responds to file requires that the PagedLOD in the scene graph generate during the cull traversal. You could configure your scene graph to ensure that the required tiles are requested via the PagedLOD above them, perhaps by doing a dummy cull traversal that does the file requests, or perhaps just do these requests directly, it'll be a bit hacky though. What you are wanting is non standard so whatever you do you'll be rather off road. > This is because for my application, I may need a certain node to be > already loaded to save on the loading time. This pre-cache can actually > reduce the latency to load the tile by a few hundred ms which is actually > quite crucial for my application. The DatabasePager is for runtime usage in real-time applications rather than pre loading data, you can play games with monitoring the pager to see if it's still active, the osgposter example does this so perhaps this might be helpful for you non standard usage. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

