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/

Reply via email to