Hi Noah,

I'm not familiar with the tutorial, so there's too many unknowns for
me to guess exactly what is being done wrong - there must be some
update order issue but beyond this I'm afraid you'll need work it out
yourself, or post code.

Robert.

On 4/13/07, Noah Brickman <[EMAIL PROTECTED]> wrote:
Thanks, I got this working. There is another issue I am having with this
though. The matrix manipulator is set up to follow a
PositionAttitudeTransform (PAT). It uses a TransformAccumulator and a
followNodeMatrixManipulator to do this as per the NPS 11.1 tutorial.

Later in the code I move the PositionAttitudeTransform around and the camera
follows it normally. The problem is that there is a lot of jitter in the
camera, as if sometimes the camera position is updated before the PAT it is
following, and sometimes afterwards. Is there a way to ensure
synchronization?

Thanks again!
-Noah


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Friday, April 13, 2007 3:33 AM
To: osg users
Subject: Re: [osg-users] KeySwitchMatrixManipulator

Hi Noah,

What do you mean by turn it on?  Also what viewer library are you
using?  osgProducer::Viewer by default uses
KeySwitchMatrixManipulator, and you select which manipulator using the
osgProducer::Viewer API:

        void selectCameraManipulator(unsigned int no);
        bool selectCameraManipulatorByName( const std::string &name );

Or just directly via the KeySwitchMatrixManupulators's method:

        void selectMatrixManipulator(unsigned int num);

In SVN the osgViewer::Viewer class does use KeySwitchMatrixManipulator
by default, but if you can register one as the CameranManipulator, the
osgviewer example shows how to do this.

Robert.

On 4/13/07, Noah Brickman <[EMAIL PROTECTED]> wrote:
> I've used the NPS 11.1 tutorial to create a KeySwitchMatrixManipulator,
but
> I want to turn it on automaticly, rather than wait for the user to press
the
> key. What is the correct way to do this?
>
> Thanks,
> -Noah
>
> _______________________________________________
> 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/

Reply via email to