Hello Jean-Sébastien,

I have try this way, but it doesn't work. I guess the manipulator needs more 
information. For example, when I set the manipulator in the viewer via 
addEventHandler(), it doesn't work. A manipulator must set with 
setCameraManipulator().

I have many viewports now and I use a GUIEventHandler to detect the viewport 
which I hit with the mouse. And now I would like manipulate the camera of this 
viewport. That is my basic problem. There are a better way, for this problem?

Thanks

Martin


-------- Original-Nachricht --------
> Datum: Tue, 02 Nov 2010 13:00:30 -0400
> Von: "Jean-Sébastien Guay" <[email protected]>
> An: OpenSceneGraph Users <[email protected]>
> Betreff: Re: [osg-users] How can I calculate a matrix via a MatrixManipulator

> Hi Martin,
> 
> > TrackballManipulator* tm = new TrackballManipulator()
> > tm->calculateViewMatrix(eventAdapter, ActionAdapter);
> 
> Well, inside your own handle(ea, aa) you can always call the 
> manipulator's handle(ea, aa). Is that what you mean?
> 
> And when you want the view matrix you call the manipulator's 
> getInverseMatrix() method.
> 
> Hope this helps,
> 
> J-S
> -- 
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                                 http://www.cm-labs.com/
>                          http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to