discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Working on SpacePilot support, need help with rotation

M
MichaelAtOz
Fri, Jul 31, 2015 4:51 AM

tp3 wrote

I've uploaded snapshots from the inputdriver2 branch to files.openscad.org

OpenSCAD-2015.07.20-x86-{32,64}_inputdriver2*

Do I need to load the 3D connections driver? Yes/No/Don't matter?


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13380.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

tp3 wrote > I've uploaded snapshots from the inputdriver2 branch to files.openscad.org > > OpenSCAD-2015.07.20-x86-{32,64}_inputdriver2* Do I need to load the 3D connections driver? Yes/No/Don't matter? ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13380.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Fri, Jul 31, 2015 6:34 AM

On 07/31/2015 06:51 AM, MichaelAtOz wrote:

tp3 wrote

I've uploaded snapshots from the inputdriver2 branch to files.openscad.org

 OpenSCAD-2015.07.20-x86-{32,64}_inputdriver2*

Do I need to load the 3D connections driver? Yes/No/Don't matter?

The safe answer is No. For me, when just connecting the device, it
did fail to load a specific driver automatically so it installed
the generic HID driver.

I did not try what happens with the official driver installed.

ciao,
Torsten.

On 07/31/2015 06:51 AM, MichaelAtOz wrote: > tp3 wrote >> I've uploaded snapshots from the inputdriver2 branch to files.openscad.org >> >> OpenSCAD-2015.07.20-x86-{32,64}_inputdriver2* > > Do I need to load the 3D connections driver? Yes/No/Don't matter? > The safe answer is No. For me, when just connecting the device, it did fail to load a specific driver automatically so it installed the generic HID driver. I did not try what happens with the official driver installed. ciao, Torsten.
M
MichaelAtOz
Sun, Aug 2, 2015 1:09 AM

Well nothing happens.

Before I loaded any 3Dc software OpenSCAD 2015.06.20 both 32 & 64 bit do not
respond to the SpaceMouse (SM) Wireless. The SM was in Device Manager,
confirmed with the HID/VID/PID  "USB\VID_256F&PID_C62F...", as the default
M/S HID Complient Device driver.

The SM works with the demo/test programs with 3Dconnexions (3Dc) drivers
loaded.

With the 3Dc driver started, OpenSCAD zooms in/out using the for/backward
tilt, presumably responding to scroll wheel emulation, when the 3Dc drivers
are stopped it does not respond to the SM.

To double check I later uninstalled the 3Dc HID driver in Device Manager, it
reinstalled as the Microsoft HID Complient Device. Still no response in
OpenSCAD.

The help/Library Info shows InputDrivers: HidApiInputDriver so it is the
right version, I presume.

Suggestions?


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13394.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Well nothing happens. Before I loaded any 3Dc software OpenSCAD 2015.06.20 both 32 & 64 bit do not respond to the SpaceMouse (SM) Wireless. The SM was in Device Manager, confirmed with the HID/VID/PID "USB\VID_256F&PID_C62F\...", as the default M/S HID Complient Device driver. The SM works with the demo/test programs with 3Dconnexions (3Dc) drivers loaded. With the 3Dc driver started, OpenSCAD zooms in/out using the for/backward tilt, presumably responding to scroll wheel emulation, when the 3Dc drivers are stopped it does not respond to the SM. To double check I later uninstalled the 3Dc HID driver in Device Manager, it reinstalled as the Microsoft HID Complient Device. Still no response in OpenSCAD. The help/Library Info shows InputDrivers: HidApiInputDriver so it is the right version, I presume. Suggestions? ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13394.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Aug 2, 2015 8:12 PM

On 08/02/2015 03:09 AM, MichaelAtOz wrote:

Before I loaded any 3Dc software OpenSCAD 2015.06.20 both 32 & 64 bit do not
respond to the SpaceMouse (SM) Wireless. The SM was in Device Manager,
confirmed with the HID/VID/PID  "USB\VID_256F&PID_C62F...", as the default
M/S HID Complient Device driver.

Interesting, I'm getting ID 256f:c62e on Linux. Maybe you just got the
brand new version?

I'll add this to the USB-ID list.

cioa,
Torsten.

On 08/02/2015 03:09 AM, MichaelAtOz wrote: > Before I loaded any 3Dc software OpenSCAD 2015.06.20 both 32 & 64 bit do not > respond to the SpaceMouse (SM) Wireless. The SM was in Device Manager, > confirmed with the HID/VID/PID "USB\VID_256F&PID_C62F\...", as the default > M/S HID Complient Device driver. > Interesting, I'm getting ID 256f:c62e on Linux. Maybe you just got the brand new version? I'll add this to the USB-ID list. cioa, Torsten.
M
MichaelAtOz
Sun, Aug 2, 2015 9:10 PM

tp3 wrote

Interesting, I'm getting ID 256f:c62e on Linux. Maybe you just got the
brand new version?

See  this FAQ.
http://www.3dconnexion.eu/nc/service/faq/show_faq/7ece50ed-0b39-b57e-d3b2-4afd9420604e.html?tx_sugarkbfaq_pi1[ddx_keyword]=HID
Perhaps you have your 'Wireless' plugged in?

It also suggests you will need a longer list...


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13417.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

tp3 wrote > Interesting, I'm getting ID 256f:c62e on Linux. Maybe you just got the > brand new version? See this FAQ. <http://www.3dconnexion.eu/nc/service/faq/show_faq/7ece50ed-0b39-b57e-d3b2-4afd9420604e.html?tx_sugarkbfaq_pi1[ddx_keyword]=HID> Perhaps you have your 'Wireless' plugged in? It also suggests you will need a longer list... ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13417.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Aug 2, 2015 9:27 PM

On 08/02/2015 11:10 PM, MichaelAtOz wrote:

tp3 wrote

Interesting, I'm getting ID 256f:c62e on Linux. Maybe you just got the
brand new version?

Perhaps you have your 'Wireless' plugged in?

Ahh, indeed, I have :-).

I'm uploading a new snapshot, which has both IDs included and should report
something like:

InputDrivers: HidApiInputDriver (256f:c62f - 3Dconnexion Space Mouse Wireless)*

It includes some initial support for mapping events via configuration,
but there is no GUI yet.

The default config should be added when running the new version the first
time. Right now it's basically the axis number with +/- defining the
direction:

[HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\InputDriver\axis]
"translateX"="+1"
"translateY"="-2"
"translateZ"="-3"
"rotateX"="+4"
"rotateY"="-5"
"rotateZ"="-6"

[HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\InputDriver\button]
"1"="viewActionResetView"
"2"="viewActionViewAll"

The names for the button actions are currently just the ones listed
in the UI description file, e.g.
https://github.com/openscad/openscad/blob/master/src/MainWindow.ui#L365

ciao,
Torsten.

On 08/02/2015 11:10 PM, MichaelAtOz wrote: > tp3 wrote >> Interesting, I'm getting ID 256f:c62e on Linux. Maybe you just got the >> brand new version? > > Perhaps you have your 'Wireless' plugged in? > Ahh, indeed, I have :-). I'm uploading a new snapshot, which has both IDs included and should report something like: InputDrivers: HidApiInputDriver (256f:c62f - 3Dconnexion Space Mouse Wireless)* It includes some initial support for mapping events via configuration, but there is no GUI yet. The default config should be added when running the new version the first time. Right now it's basically the axis number with +/- defining the direction: [HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\InputDriver\axis] "translateX"="+1" "translateY"="-2" "translateZ"="-3" "rotateX"="+4" "rotateY"="-5" "rotateZ"="-6" [HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\InputDriver\button] "1"="viewActionResetView" "2"="viewActionViewAll" The names for the button actions are currently just the ones listed in the UI description file, e.g. https://github.com/openscad/openscad/blob/master/src/MainWindow.ui#L365 ciao, Torsten.
M
MichaelAtOz
Sun, Aug 2, 2015 10:10 PM

Perhaps VID & PID fields in preferences??

Also "Logitech sold off 3DConnexion to an Italian investor in 2011.
All new models since then have the new Vendor ID."  (spacenav)
http://sourceforge.net/p/spacenav/mailman/spacenav-devel/  Explains the
multiple VIDs.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13419.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Perhaps VID & PID fields in preferences?? Also "Logitech sold off 3DConnexion to an Italian investor in 2011. All new models since then have the new Vendor ID." (spacenav) <http://sourceforge.net/p/spacenav/mailman/spacenav-devel/> Explains the multiple VIDs. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13419.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Aug 2, 2015 10:56 PM

On 08/03/2015 12:10 AM, MichaelAtOz wrote:

Perhaps VID & PID fields in preferences??

Unfortunately it's even more complicated. We already have two
different data decoders as the devices talk different protocols.
Maybe we can just add a separate file to allow loading additional
driver configurations in case the new device speaks something
that is already known.

Ideally all that would go into spacenavd, but it seems the
Win32 port is pretty much dead for years.

ciao,
Torsten.

On 08/03/2015 12:10 AM, MichaelAtOz wrote: > Perhaps VID & PID fields in preferences?? > Unfortunately it's even more complicated. We already have two different data decoders as the devices talk different protocols. Maybe we can just add a separate file to allow loading additional driver configurations in case the new device speaks something that is already known. Ideally all that would go into spacenavd, but it seems the Win32 port is pretty much dead for years. ciao, Torsten.
M
MichaelAtOz
Tue, Aug 4, 2015 11:34 PM

The new version works, thanks. InputDrivers: HidApiInputDriver (256f:c62f -
3Dconnexion Space Mouse Wireless)*

I'll get you feedback after I fiddle and try some setting adjustments.

The only comment at this stage is the continued rotation when the mouse is
released to neutral. It needs a opposite lock to get out of the slide.
Interesting is it stops when the window loses focus, and continues when it
gets focus.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13446.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

The new version works, thanks. InputDrivers: HidApiInputDriver (256f:c62f - 3Dconnexion Space Mouse Wireless)* I'll get you feedback after I fiddle and try some setting adjustments. The only comment at this stage is the continued rotation when the mouse is released to neutral. It needs a opposite lock to get out of the slide. Interesting is it stops when the window loses focus, and continues when it gets focus. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Working-on-SpacePilot-support-need-help-with-rotation-tp13057p13446.html Sent from the OpenSCAD mailing list archive at Nabble.com.