Iron-Stag-Games / Godot-NI-mate-Motion-Capture

GNU Lesser General Public License v3.0
30 stars 7 forks source link

Linux compatibility issues #6

Open j2l opened 3 years ago

j2l commented 3 years ago

Hello,

Seems promising! I wonder if it really works with Nimate v1.2 for linux. I can't install this deb on ubuntu 20.04 and AFAIK 1.2 was for Xbox360 Kinect. Did you test it on Linux? With Kinect 360 or v2? Thank you,

hoontee commented 3 years ago

Unfortunately I'm unable to help as Delicode dropped support for Linux in newer versions. If you can't get it to run, then your next option might be to utilize Wine with the Windows version.

j2l commented 3 years ago

Thank you hoontee. AFAIK, Wine can't install drivers (or am I wrong?). And most of the Windows Delicode Ni Mate install is Windows drivers.

hoontee commented 3 years ago

Ah, that would definitely be a problem... in that case I think it's possible to run NI mate on a Windows VM and send the OSC data back to the host instead of 127.0.0.1.

Also, to help me understand better, what error messages are you getting when attempting to install NI mate on Ubuntu?

j2l commented 3 years ago

Eeh, you can't just install drivers on a VM! It doesn't have access to raw host hardware (hopefully!), just to the VM drivers which are native on the host machine, i.e. it can access USB because VM app provides a layer between the OS knows about USB, but you couldn't drive any unknown devices like a kinect, VR install or else.

Nimate linux 1.2 is from 2014, so when you try to install, it's missing dependencies (native OS libraries) which evolved a lot since then, some even changed names. It's unsolvable AFAIK. I'd love to know for other linux users if someone found a fix. BTW, I think 1.2 was for Xbox360. They decided to drop support when they started develop for Kinect v2.

hoontee commented 3 years ago

You should be able to do a direct USB passthrough to the VM. Also NI mate 2.x supports both the 360 and V2 sensors as well as several others.

j2l commented 3 years ago

This should work for a regular webcam but for a kinect it might be tricky I only found https://stackoverflow.com/questions/6397240/can-i-use-the-kinect-api-on-a-virtual-machine for now and it might have a fix. Not sure and I can't test it right now. Still a pain to run a VM just to get signal from USB webcams