You needn't integrate the new device in an OSG centric way at all, you
can just poll the device yourself in your main loop and then do what
you want with it.
Potentially you could integrate it on an OSG centric way to make use
of the existing manipulators, and I've done this in the past to make a
joystick work with the standard manipulators. The way to do it is to
call one of the osgGA::EventQueue methods to adapt your events. One
can pass in custom event i.e you own subclassed from
osgGA::GUIEventAdapter, but you only need to do this is you want to an
extra variables.
The Viewer and GraphicsWindow both have an EventQueue that you can
insert events in by.
Robert.
> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
What OS are you targeting?
For Linux, I'm in the process of integrating SpacePilot and
SpaceExplorer (I'm told SpaceNavigator uses the same protocol) into
VRPN, then those devices will be accessible as all the other VRPN input
devices using my osgVRPN nodekit. I'm using the Linux "input event
subsystem" (aka evdev). The 3Dx devices enumerate as HID, and linux
will create /dev/input/event* nodes to communicate. In this way I'm
able to avoid the 3Dx driver software entirely.
If on Windows, you should probably use their driver software, or
interact with the devices as USB HID devices.
If you prefer not to use osgVRPN, you can review its code for tips on
device integration.
fwiw there are lots of cheap SpaceBalls (the generation of serial
devices before the current USB devices) on EBay, which work great on
both linux and windows via VRPN & osgVRPN.
Cheers
-- mew
Mike Weiblen -- Zebra Imaging -- Austin Texas USA --
http://www.zebraimaging.com/
<http://www.lycos.playp.biz/mobringtones/Default.aspx?StoreFrontID=0006-
> 0006-1005-0125> . Get 10 Bonus Tones today!
Not personally, but VRPN already supports several glove devices, and the
trackers associated with them (eg I've successfully used their existing
Polhemus support)
-- mew
Mike Weiblen -- Zebra Imaging -- Austin Texas USA --
http://www.zebraimaging.com/
> -----Original Message-----
> From: osg-user...@lists.openscenegraph.org [mailto:osg-users-
> bou...@lists.openscenegraph.org] On Behalf Of Paul Martz
> Sent: Friday, August 24, 2007 11:19 AM
> To: osg-...@lists.openscenegraph.org
> Subject: Re: [osg-users] How to support a new input device?
>
> Hi Mike -- Have you had any experience with integrating a data glove
> device
> into VRPN?
> -Paul
_______________________________________________
I'm exploring ways to add a 5DT Ultra 14 to an OSG-based app.
http://www.5dt.com/products/pdataglove14.html
Can you provide me a list of supported devices or point me to a Web site
with such info?
-Paul
>
> Hi Paul,
>
> Not personally, but VRPN already supports several glove
> devices, and the trackers associated with them (eg I've
> successfully used their existing Polhemus support)
>
> -- mew
>
>
> Mike Weiblen -- Zebra Imaging -- Austin Texas USA --
> http://www.zebraimaging.com/
>
> >
The canonical website is http://vrpn.org/ It does mention support for
5DT gloves.
-- mew
Mike Weiblen -- Zebra Imaging -- Austin Texas USA --
http://www.zebraimaging.com/
> -----Original Message-----
> From: osg-user...@lists.openscenegraph.org [mailto:osg-users-
> bou...@lists.openscenegraph.org] On Behalf Of Paul Martz
> Sent: Friday, August 24, 2007 11:36 AM
> To: osg-...@lists.openscenegraph.org
> Subject: Re: [osg-users] How to support a new input device?
>