Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofxKinect does not support Kinect4Windows devices #94

Closed
sebfie opened this issue Mar 30, 2012 · 8 comments
Closed

ofxKinect does not support Kinect4Windows devices #94

sebfie opened this issue Mar 30, 2012 · 8 comments
Labels

Comments

@sebfie
Copy link

sebfie commented Mar 30, 2012

Hello,

I have a kinect for windows and i try to use ofxKinect but it doesn't detect a kinect. To correct this, i changed the this :

define VID_MICROSOFT 0x45e

define PID_NUI_CAMERA 0x02bf

define PID_NUI_MOTOR 0x02b0

Using the ones of my microsoft's kinect, but i still has an error.

Thank you.

@chaz003
Copy link

chaz003 commented May 23, 2012

I made the changes that you have above and in my log i get the following.

OF: OF_VERBOSE: ofxKinect: Context inited
OF: OF_VERBOSE: ofxKinect: Number of devices found: 1
OF: OF_VERBOSE: ofxKinect: Number of available devices: 1
OF: OF_LOG_ERROR: ofxKinect: Could not open device 0

I'm not sure if you got this far, but at least it sees that there is a device there.

I have tried to trace the problem and I feel like it is a freenect issue. though how to fix it, I have no idea.

@danomatika
Copy link
Collaborator

That's definitely a freenect issue. We'll update to a newer version of freenect soon so that may fix it.

@danomatika
Copy link
Collaborator

I updated the freenect version. Can you try the develop branch?

@Dermiste
Copy link

I got the same issue, it's kinect for window and nothing is detected, I can run some NITE example though, even it sometimes it does not work.

Has this issue been fixed ? Should I grab the version of freenect in the develop branch ?

@Dermiste
Copy link

I have done this as well:
#define VID_MICROSOFT 0x45e
#define PID_NUI_CAMERA 0x02bf
#define PID_NUI_MOTOR 0x02b0

But I get
OF: OF_LOG_VERBOSE: ofxKinect: Context inited
OF: OF_LOG_VERBOSE: ofxKinect: Number of devices found: 0
OF: OF_LOG_VERBOSE: ofxKinect: Number of available devices: 1
OF: OF_LOG_ERROR: ofxKinect: Could not open device -1

@Dermiste
Copy link

Actually:
OF: OF_LOG_VERBOSE: ofxKinect: Context inited
OF: OF_LOG_VERBOSE: ofxKinect: Number of devices found: 1
OF: OF_LOG_VERBOSE: ofxKinect: Number of available devices: 1
OF: OF_LOG_ERROR: ofxKinect: Could not open device 0

Nearly! Any idea?

@danomatika
Copy link
Collaborator

This is due to libfreenect not currently supporting Kinect4Windows devices. It's in the works and when it's stable, we'll update the version of libfreenect that comes with ofxKinect.

In the meantime, I'd suggest using ofxOpenNI or get an Xbox Kinect device.

@danomatika
Copy link
Collaborator

I'm working on this today as there appears to be a fix for the newer Kinect models: OpenKinect/libfreenect#325

@danomatika
Copy link
Collaborator

Can y'all try the current develop branch in OSX/Linux with newer devices? I'm reworking things for Windows right now, but it should work on the other platforms ... I can't test right now as I don't have any newer Kinect hardware.

@Meach
Copy link

Meach commented Jun 18, 2013

I tried it with OSX 10.7 and a K4W model 1517.
It succeed to open the device but then the view freeze, like if the kinect stop being updated.
Same thing happens when I close and reopen the connection: after less a second, it freezes.

@ofTheo
Copy link
Owner

ofTheo commented Jun 18, 2013

I see this behavior with device 1473.
This seems to be related to libusb timings. Playing with threading and doing weird stuff like print outs in the threaded loop, I was able to get the video going longer before freezing.

Most likely we need to look at rebuilding the OS X libusb ( had to do this for the original Kinect to work without freezing ).
It will prob be a magic parameter that will allow for non-freezing transfer for all devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants