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(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.org

Reply via email to