I've only recently started using OpenSceneGraph, so am probably mistaken about 
this, but I feel there's some issues with osgDB::DatabasePager. It seems the 
design of osgDB::DatabasePager allows for multiple instances of it to exist 
side-by-side. Scene creates one instance in it's constructor, and if you call 
Registry::getOrCreateDatabasePager without setting a pager up, it creates 
another instance. The first uses the Database::create function, whereas the 
second uses a simple 'new'.

This has caused us some issues as we only expected there to be a single 
instance of osgDB::DatabasePager. What is the reason for explicitly allowing 
this functionality? It may simply be to do with the way we have the 
DatabasePager setup, but my lack of a higher view of the code is making it hard 
to understand what's supposed to happen.

Can anyone clarify how the DatabasePager is supposed to be used for me?

Kind regards,
Rick Appleton
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to