[osg-users] 3dconnexion for windows

Dieter Pfeffer dieter.pfeffer at nl.thalesgroup.com
Tue Mar 4 02:25:47 PST 2008


Hi


I don' t use a MatrixManipulator but would like to set the camera
viewmatrix:

   viewer.getCamera()->setViewMatrix (vMatrix * osg::Matrix::rotate
(-(osg::PI_2),1,0,0));

with

      tMatrix =  rot * trans;
      vMatrix = tMatrix.inverse (tMatrix);


Dieter


-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org]On Behalf Of Rémy
Deslignes
Sent: Tuesday, 04 March, 2008 11:02
To: OpenSceneGraph Users
Subject: Re: [osg-users] 3dconnexion for windows


I guess that this is deeply related to the MatrixManipulator you are
using .
What MM are you using ?
Please also note that there is a setting in the 3D connexion driver to
set the translation as "dominant" .

Rémy

Dieter Pfeffer a écrit :
> Hi
>
> has s.o. implemented the 3dconnexion input device and can give me a
> hint (or source) how to match it to the viewmatrix in osg.
>
> I have no problems in translation but I can't figure out how to set
> the corrrect rotation. If I use only heading it's correct but not
> heading and pitch together.
>
>
>
> Thanks
>
> Dieter
>
>
>
> Unclassified Mail
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


--
Remy Deslignes

Ingenieur Developement / Software Engineer

Tel: +33 (0)1.53.90.11.19

===========================================
 Silicon Worlds S.A.
 224, rue Saint Denis
 75002 Paris  France
 Tel: +33 (0)1.53.90.11.11
 Fax: +33 (0)1.53.90.11.12
 http://www.silicon-worlds.fr
===========================================


_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list