osg::ref_ptr<osg::Node> mymodel = .... // ok I'm done mymodel = 0;
On 7/11/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
Robert, It was a silly syntactical error. Oh the shame! :) Well, I do have just one more question for you today. If I have loaded a model into osg::ref_ptr<osg::Node>, how can I programmatically unload the model? Some of these things I want to be dynamic since they are large and not changing from the copy on disk. You guys really have a great product here. I wish there was a more thorough documentation available. In time there will be, I am sure. Anyways, thanks for all your help. --John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Tuesday, July 11, 2006 10:14 AM To: osg users Subject: Re: [osg-users] Multiple Scenes Hi John, By default the OSG automatically updates the near and far plane on each frame so unless you've disabled this and are setting things automatically the near/far plane are unlikely to be the issue. Perhaps its just an issue of your camera manipulators viewing one area, but not being reset when you move to the new model. Robert. On 7/11/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote: > Hi Robert, > > I just thought of something. The first scene is the blue marble WGS-84. > The other scene is a small terrain database. Perhaps it is not being > trashed. Perhaps it is actually closer than the near plane when I move > up to it because the blue marble model is so huge. It's radius is the > actual radius of the earth. Does this sound feasible? If so, what can > I do to overcome it? > > Thanks, > John > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Robert > Osfield > Sent: Tuesday, July 11, 2006 9:03 AM > To: osg users > Subject: Re: [osg-users] Multiple Scenes > > Hi John, > > Switching between scenes using osg::Switch should work just fine, I do > it myself for an presentation tool based ontop of the > OSG/osgProducer::Viewer. > > When you do you mean be scene gets trashed? > > Robert. > > On 7/10/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote: > > > > > > > > What is the best way to maintain two scenes and have one viewer > > switch > > > between them? I tried using MultiSwitch and Switch, but the inactive > > scene is getting trashed if I set its value in the switch to false. > > When I try to set it back to true it does not appear. However, when > > I do not set it to false at all and perform the same code, it appears. > > There must be a construct that I don't know about. Any input is > greatly appreciated. > > > > 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/
