Thank you. How do I pass that into my group to be displayed, in qosgwidget its called sceneDecorator, but it is just a group?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zach Deedler Sent: Friday, December 08, 2006 9:59 AM To: 'osg users' Subject: RE: [osg-users] Timing So you haven't tried the PagedLOD? The code below will load your model in a background thread. If you place the object 0 to 500 meters from the eyepoint it will start paging in. Between 500 and 10000 it should show the text of the model instead. Beyond 10000 it is culled out. I believe at all times you should have mouse control. You may also just try dynamically changing the 'pagedLod->setFileName(1, subFileName);' call to just be the current node you are interested in seeing. The previous one should automatically get removed? (unsure though) float minRange=0; float maxRange=500; float textRange=10000; //Create paged LOD osg::PagedLOD* pagedLod = new osg::PagedLOD; //Set the fileName. pagedLod->setFileName(0, ""); pagedLod->setRangeMode(osg::LOD::DISTANCE_FROM_EYE_POINT); pagedLod->setRange(0, maxRange, textRange); //Create text for representing low level detail osg::Geode* geode = new osg::Geode; osgText::Text* text = new osgText::Text; text->setFont("fonts/times.ttf"); text->setCharacterSize(20); //Set position of text to center of node. text->setPosition(node->getBound().center()); text->setAxisAlignment(osgText::Text::SCREEN); //Set text to subFilename text->setText(subFileName); //Add text to drawable geode->addDrawable(text); //Add drawable to paged lod pagedLod->addChild(geode); //Set LOD's page range pagedLod->setRange( 1, minRange, maxRange ); //Set LOD's center to center of loaded model. pagedLod->setCenter( node->getBound().center() ); pagedLod->setFileName(1, subFileName); pagedLod->setCullingActive(true); pagedLod->setRadius( maxRange ); Zach -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whitfield, John M. (SED/TMI) Sent: Friday, December 08, 2006 10:43 To: osg users Subject: RE: [osg-users] Timing I just want to pass the nodes into a group, display the group, then manually remove the nodes. I am already doing this with just a group, but this makes it where the user does not have control to move around the scene until after everything has finished drawing, and I need the user to be able to move around the scene as it is drawing. -John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zach Deedler Sent: Friday, December 08, 2006 9:35 AM To: 'osg users' Subject: RE: [osg-users] Timing John, Need info OS: size of paged data: Are you triggering the paging, or is it done by distance to camera? Zach -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whitfield, John M. (SED/TMI) Sent: Friday, December 08, 2006 10:22 To: osg users Subject: RE: [osg-users] Timing Is anyone know of any source code that is a good example of how to phase new nodes in and out of pagedLOD, because it is not working the way I assumed it would? Thanks, -John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, November 17, 2006 2:55 PM To: osg users Subject: Re: [osg-users] Timing Hi John, PagedLOD allows you to load objects in the background and incrementally merge them. Robert. On 11/17/06, Whitfield, John M. (SED/TMI) <[EMAIL PROTECTED]> wrote: > I am attempting to run openscenegraph within a qt window. Although all > of camera controls are not implemented to the level I would like, > there is a timing control issue I also need to work on. I start the > program, then use the mouse to get the part of the scene I am > interested. Once I start reading in the file and adding all of these > nodes to the scene I loose control of my ability to move the camera > until everything is loaded. I would like to be able to move as the nodes are being created. > Does anybody know how to solve this problem? > > Thanks, > -John > _______________________________________________ > 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/ _______________________________________________ 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/
