Robert, Thanks for the reply.
I goofed. When using Producer, whatever the default GA is,for #1, it doesn't seem to call the callback. Using #2 - #4 are fine. By #'s I mean pressing keyboard key 1-4 to change the manipulator. So now I am using #4. Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Sunday, August 03, 2008 7:09 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Matrix Manipulators and set coordinate frame callback. Different behavior in 2.4? Hi Chris, I'm not entirely clear on what bit isn't working, is it that you are using osgProducer::Viewer from osgProducer SVN with OpenSceneGraph-2.4 and this is behaving differently from osgProducer and OpenSceneGaph-1.2? Robert. On Mon, Jul 28, 2008 at 4:19 PM, Dorosky, Christopher G <[EMAIL PROTECTED]> wrote: > > Hello all, > > Under OSG 1.2, I controlled the orientation of an osgGA manipulator > through the use of a coordinate frame callback. > > Under 2.4, I am using the same exact code, but the callback never > happens. > > Here is the code snippet. Viewer is osgProducer (yes, still). > This loop runs 4 times. > > Viewer->getKeySwitchMatrixManipulator()->setHomePosition(eyeECEF, > centerECEF, upECEF, false); > cECEFFrameCB *cb = new cECEFFrameCB; > > for(unsigned int i = 0; i< > Viewer->getKeySwitchMatrixManipulator()->getNumMatrixManipulators(); > i++) > { > osgGA::MatrixManipulator *mm = > Viewer->getKeySwitchMatrixManipulator()->getMatrixManipulatorWithIndex > Viewer->(i > ); > if(mm) > { > mm->setCoordinateFrameCallback(cb); > mm->setHomePosition(eyeECEF, centerECEF, > upECEF, false); > } > } > > Where the ECEFFrameCB is derived from the > osgGA:MatrixManipulator::CoordinateFrameCallback. > > I put a print in there, and it is never called. > Has this functionality been disabled? > > What I am trying to do is set the up, side, and front vectors so that > the manipulator behaves better. > > Thanks, > > Chris > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

