sharkyh20 / KinectToVR

An open-source hook for VRInputEmulator to enable foot and hip tracking with the Kinect
354 stars 41 forks source link

Is it possible to build it for linux? #6

Open elypter opened 6 years ago

elypter commented 6 years ago

there is the freenect driver for the kinect and there is steamvr for linux. both are working for me so i thought i could try this out. is it possible to build it on linux?

sharkyh20 commented 6 years ago

It would be technically possible - as there's only a few windows specific functions in the main K2VR library. If those are ifdef'd for linux then the main library will compile.

The hard part will be translating all the Windows Kinect SDK commands in the V1 and V2 projects to the freenect ones - as freenect uses entirely different functions.

Not impossible, but will probably take a little while.

elypter commented 6 years ago

as freenect uses entirely different functions.

too bad. i hoped they would be compatible. thanks for looking into this. a linux port would be quite nice.

elypter commented 6 years ago

for skeleton detection there is OpenNI2 and Nite2. there is an installation instruction for ubuntu https://github.com/roboticslab-uc3m/installation-guides/blob/master/install-openni-nite.md

MintLily commented 6 years ago

Would WINE not work for the Process EXEs? I was thinking about trying in linux, because I can't get mine to work in windows at all.

elypter commented 6 years ago

the problem is that wine cannot use generic drivers, so the kinect sdk wont be able to communicate with the device. wine + vr probably also doesnt work very well. steamvr in steam on wine doesnt work for me. maybe wine will be able to do this some day but now there are too many places where something can and does go wrong.

you can try out the kinect hardware on linux if you are not sure if its broken. on ubuntu this should be enough to install it:

git clone https://github.com/OpenKinect/libfreenect cd libfreenect mkdir build cd build cmake -L .. # -L lists all the project options make

then you can enter "freenect-" and hit tab twice for autocomplete for example applications. those are not 100% reliable but you can verify that it works if you get an output, movement or an image.

i read that the power adapters for the xbox360 variant can be a problem too and that might be the case for me because even though it worked 2 days ago the tests now fail all the time after working for a few seconds or fail during the init phase.