Re: [osg-users] 3dconnexion for windows

2008-03-07 Thread Paul Martz
I've looked into using the 3dconnexion Space Navigator with OSG apps in the
past. I was somewhat surprised to discover that 3dconnexion doesn't offer a
consistent SDK API across all platforms -- the Mac SDK and Windows SDK have
entirely different APIs, forcing the app to contain platform-specific code
for interfacing with the device. I'm wondering how you addressed this issue?
 
Thanks for any info,
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com http://www.skew-matrix.com/ 
303 859 9466
 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dieter
Pfeffer
Sent: Tuesday, March 04, 2008 2:48 AM
To: OpenSceneGraph Users
Subject: [osg-users] 3dconnexion for windows


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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-07 Thread Mike Weiblen
(jumping in)
agreed, and their api is way too invasive and bloated for my liking
(COM, control panels, per-app settings, etc)  and even with their api,
you don't get full control of the LCD on the SpacePilot :-/

VRPN really helps w/ its crossplatform and consistent device model, and
I am working on getting real control of the LCD (3Dx has been quite
forthcoming w/ the lowlevel protocol details; just need some time to
implement)

cheers
-- mew


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of Paul Martz
 Sent: Friday, March 07, 2008 10:04 AM
 To: 'OpenSceneGraph Users'
 Subject: Re: [osg-users] 3dconnexion for windows
 
 I've looked into using the 3dconnexion Space Navigator with OSG apps
in
 the past. I was somewhat surprised to discover that 3dconnexion
doesn't
 offer a consistent SDK API across all platforms -- the Mac SDK and
 Windows SDK have entirely different APIs, forcing the app to contain
 platform-specific code for interfacing with the device. I'm wondering
 how you addressed this issue?
 
 Thanks for any info,
 
 Paul Martz
 Skew Matrix Software LLC
 http://www.skew-matrix.com http://www.skew-matrix.com/
 303 859 9466
 
 
 
 
 
 
   From: [EMAIL PROTECTED] [mailto:osg-
 [EMAIL PROTECTED] On Behalf Of Dieter Pfeffer
   Sent: Tuesday, March 04, 2008 2:48 AM
   To: OpenSceneGraph Users
   Subject: [osg-users] 3dconnexion for windows
 
 
   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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-07 Thread Mike Weiblen
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of Jan Ciger
 Sent: Friday, March 07, 2008 4:27 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] 3dconnexion for windows


 I wrote the Linux VRPN driver for the SpaceNavigator using the Linux
 input subsystem in probably one or two hours, without any vendor
 documentation or SDK. I can send you the Linux code for if you are
 interested.

Hi,

On linux, I assume you were using the standard HID messages via evdev?

just curious
-- mew

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-07 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike Weiblen wrote:
 
 Hi,
 
 On linux, I assume you were using the standard HID messages via evdev?

Yes, it reports the stick movement using EV_ABS events and button
presses using EV_KEY events if you open it using /dev/input/eventXX device.

This was with the SpaceNavigator SE.

There is also an official driver for Linux, but that seems to be
encumbered by a fairly restrictive license.

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFH0eX6n11XseNj94gRAmkbAKCj4yqDD4MH6xsUyxVaXnHXS89ujACgqimI
dz6Jn7xP/KXc3aGnE/Z5IhY=
=+AuI
-END PGP SIGNATURE-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-05 Thread Rémy Deslignes
The point is that it is not obvious to me how you convert the rotation 
information from the 3Dconnexion driver into an osg rotation...

Dieter Pfeffer a écrit :
 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: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 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@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@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 ---
 Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
 Aucun virus connu a ce jour par nos services n'a ete detecte.



   


-- 
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-05 Thread Dieter Pfeffer

I have used the 3dconnexion cityfly example (function: SbMotionEvent) -

one try:
eye_to_world matrix as vMatrix

or:

MatrixToHpr (rot, eye_to_world) //(extracting the rotation from the matrix)


but this is not really osg; my idea was whether s.o. has implemented it in
osg and could give me a hint how to get the rotation and set the viewmatrix


Thanks Mike - I will have a look at osgVRPN


Dieter





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rémy
Deslignes
Sent: Wednesday, 05 March, 2008 10:40
To: OpenSceneGraph Users
Subject: Re: [osg-users] 3dconnexion for windows


The point is that it is not obvious to me how you convert the rotation
information from the 3Dconnexion driver into an osg rotation...

Dieter Pfeffer a écrit :
 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: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 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@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@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 --
-
 Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
 Aucun virus connu a ce jour par nos services n'a ete detecte.






--
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] 3dconnexion for windows

2008-03-04 Thread Dieter Pfeffer
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-04 Thread Rémy Deslignes
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@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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-04 Thread Dieter Pfeffer
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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@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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 3dconnexion for windows

2008-03-04 Thread Mike Weiblen
Hi,

FWIW 3Dconnexion devices are now supported by VRPN, and VRPN is
integrated with OSG via osgVRPN, which is available at
http://osgtoy.sourceforge.net/  

osgVRPN supports attaching VRPN 6DOF devices to both transform matrices
and camera manipulators, as demonstrated in the osgVRPNviewer example.
You can it the nodekit directly, or mine it for functional code.

cheers
-- mew



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of Dieter Pfeffer
 Sent: Tuesday, March 04, 2008 3:48 AM
 To: OpenSceneGraph Users
 Subject: [osg-users] 3dconnexion for windows
 
 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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org