Nevermind! I followed the osgsimplepager example and it works great! Thanks.
On 12/20/06, Jason <[EMAIL PROTECTED]> wrote:
I roll my own via osgUtil::SceneView so I guess the database pager is out of the question. Any other ideas? On 12/20/06, Robert Osfield < [EMAIL PROTECTED]> wrote: > > Hi Jason, > > How have you put together your viewer? If you using > osgProducer::Viewer then you'll have database pager built in, but if > you roll your own via osgUtil::SceneView then you won't have support > for the database pager. > > The new osgViewer library already supports the database pager, but its > still under heavy development so it'd be worth watching and testing > rather than alot out using yet. > > Alternatively look at the osgsimplepager example. > > Robert. > > On 12/20/06, Jason < [EMAIL PROTECTED]> wrote: > > After trying this there is no change. When I use the osgviewer with my > > terrapage it loads up fine. > > > > > > On 12/20/06, David Guthrie < [EMAIL PROTECTED]> wrote: > > > > > > You probably haven't enabled the database pager. > > > > > > > > > Try something like this to enable it. > > > > > > > > > osgUtil ::SceneView *sceneView = (get your sceneView) > > > osg::Node* sceneNode = (your root node) > > > osgDB:: DatabasePager* databasePager = osgDB ::Registry:: instance() > > ->getOrCreateDatabasePager() ; > > > databasePager ->setTargetFrameRate( mTargetFrameRate) ; > > > databasePager-> registerPagedLODs(sceneNode ); > > > databasePager->setUseFrameBlock (false ); > > > > > > > > > sceneView->getCullVisitor ()-> setDatabaseRequestHandler( > databasePager); > > > > > > > > > databasePager-> setCompileGLObjectsForContextID(sceneView > ->getState() > > ->getContextID (), true ); > > > > > > > > > > > > > > > > > > > > > On Dec 20, 2006, at 10:07 AM, Jason wrote: > > > > > > > > > Hello, > > > > > > I am trying to load a .txp Terrapage file into my scenegraph and I > keep > > reading about an OSG Terrapage Loader plugin but I can't seem to find > any > > example code or instructions on how to do this. Would anyone mind > pointing > > me in the correct direction? As of now, I tried using osg::DB > readNodeFiles > > and I get messages such as: > > > > > > txp:: Loading models ... > > > txp:: ... done. > > > txp:: Loading light attributes ... > > > txp:: ... done. > > > > > > but nothing shows up in my scene graph. I even get a boundsphere > center > > from it as well but I still cannot see a thing. I suspect any > subgraphs that > > may be involved with the .txp are not getting loaded. > > > > > > Thanks, > > > Jason > > > > > > _______________________________________________ > > > osg-users mailing list > > > [email protected] > > > http://openscenegraph.net/mailman/listinfo/osg-users > > > http://www.openscenegraph.org / > > > > > > _______________________________________________ > > > osg-users mailing list > > > [email protected] > > > http://openscenegraph.net/mailman/listinfo/osg-users > > > http://www.openscenegraph.org/ > > > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://openscenegraph.net/mailman/listinfo/osg-users > > http://www.openscenegraph.org/ > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ >
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
