Hello all. I have a large txp database (5GB) that i'm reading it by osdDB::readNodeFile and trying to show it together with QT environment.
My machine: OpenSuse 11.3 - osg 2.9.6 dev-release. I've noticed that sometimes my terrain does not show up on screen. most of the time, when it shows up, it throws me a couple of "NULL LightAttr 1420729759" when debbuging ( i bet this is no problem ). but , in an average of 1 time in 10 runs, my terrain simply not appear. do i have to use any method to wait for all necessary screen visible area tiles to be ready ? for example: # osg::ref_ptr<Node> my_terrain = osg::readRefNodeFile( "/path_to/file.txp" ); # if( !my_terrain.valid() ) # throw "error"; # # while( my_terrain.stillLoading() ); /// do nothing here till minimal tiles are loaded # view->setSceneData( my_terrain.get() ); # viewer->addView( view ); # # while( !viewer.done() ) # viewer.run(); PS: - When loaded on screen i can rotate and zoom with no problems. - When not loaded I cannot do anything. - Is there a "lock" or similar load indicator variable to be tested that comes from an internal load thread ? - Should i change the options for in the second parameter of readRefNodeFile( "file", Options ) ? Best Regards Andre Simões
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

