My static website generator using poole https://www.xythobuz.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2016_05_25_spacenav_plus.md 2.9KB

title: Blog post: Spacenav-Plus for Mac OS X date: 2016-05-25 comments: true flattr: true github: https://github.com/xythobuz/spacenav-plus parent: stuff

position: 90

{{ page[“post”] }}

Since I’ve got my Fabrikator Mini 3D printer, I’ve spent some timer creating things, mainly with OpenSCAD.

I’ve still got an old Spacemouse Classic laying around. It’s 20 years old at this point and my model connects to a computer using a RS232 serial connection.

This device has originally been developed by the DLR (Deutsches Zentrum für Luft- und Raumfahrt), then found it’s way to Logitech and later 3Dconnexion. You can still get their original drivers for Windows XP and Linux, but they probably won’t run on any modern system.

There is an open-source replacement for the Linux driver, called spacenav / spacenav-plus (fork), that can interface the serial Spacemouse Classic on most POSIX systems and even has support for USB based Spacemice, but only on Linux. It also completely emulates the original 3Dconnexion Linux driver interface, using X11 events. Alternatively, the data can be gathered using a simple POSIX file socket.

I’ve created my own fork of spacenav-plus, modifying the build system to support building on Mac OS X. I’ve also reimplemented the official 3Dconnexion Mac OS X driver interface, resulting in a 3DconnexionClient.framework that should allow using the spacenav-plus driver with most supported software. I’ve tested Google Earth and Blender.

Finally I’ve created/modified patches for both OpenSCAD and FreeCAD to allow them using the spacenav-plus file interface on Mac OS X.

And something interesting I’ve noticed: even though the Spacemouse Classic is using optical sensors to track movements, it’s picking up much noise from the LED strip I’ve mounted under my work bench. I simply can’t use the Spacemouse while this light is plugged in!