gameoverhack / ofxOpenNI

Wrapper for OpenNI, NITE and SensorKinect
gingold.com.au
Other
246 stars 121 forks source link

multiple kinects not working #11

Open naychrist opened 12 years ago

naychrist commented 12 years ago

running the example with the experimental branch it looks like kinects are detected and initialised okay but the second kinect output is always rendered black.

gameoverhack commented 12 years ago

hi there...sorry I haven't got to this sooner...i just checked this on OSX and all looks fine...what platform are you using?

naychrist commented 12 years ago

Hey no worries. I am on OSX 10.6.8 but am now suspecting this to be a USB bus issue. I have ordered a couple of USB IDE cards to install and see if this is the case but haven't had a chance yet as I have a deadline this week. I will try and get to this early next week and post back.

On 23/05/12 12:39 AM, gameoverhack wrote:

hi there...sorry I haven't got to this sooner...i just checked this on OSX and all looks fine...what platform are you using?


Reply to this email directly or view it on GitHub: https://github.com/gameoverhack/ofxOpenNI/issues/11#issuecomment-5848676

chrisporter commented 12 years ago

Yeah you need the Kinects in root hubs. You can get a StarTech 4 independent port USB PCI card but I usually find most PCs anyway have at least 2 root hubs.

BTW how do you use multiple Kinects anyway ? There's no option to set device ID ?

ghost commented 12 years ago

Hi,

I am trying out the experimental ofxOpenNI but I'm having some problems .... How can I have the hands drawn on the screen? How are hands handled in the new version? I want to switch between live video and player a lot of times, and some times the thread stops, and when I close the application it crashes with xnWaitAnyUpdateAll().... how can I avoid this kind of problem?

gameoverhack commented 12 years ago

hi ptrigueiros that is a forum question rather than a response or addition to this issue - which is specifically about getting multiple Kinects to work. Could you repost to http://forum.openframeworks.cc/index.php/topic,7403.165.html ?

kylemcdonald commented 11 years ago

sorry, i realize this is kind of an old issue :) but, similar to @chrisporter it's not clear to me how to access multiple kinects? more importantly, it's not clear if it's possible to do skeleton tracking on multiple kinects? i've read some things that say openni 2.0 supports this but not earlier versions... any hints towards this end would be appreciated :)

timmb commented 11 years ago

Independent skeleton tracking from two kinects on a single machine has always been a holy grail for me!

As far as I've seen, there is currently no way to get OpenNI 2.0 working with Kinect though (although I've not tried it personally).

Check out this thread though http://openni-discussions.979934.n3.nabble.com/OpenNI-dev-Multiple-Skeleton-Tracking-td4007206.html , which suggests that you can get multiple skeleton tracking but only by running two separate programs.

kylemcdonald commented 11 years ago

wow, super helpful discussion thread. i should have done a more general search first :) it sounds like, at the moment, if i have two processes (apps) separately connected to the two kinects, it's definitely possible. but i still don't see a way of specifying which device i'm connected to in ofxOpenNI. i'll dig around a bit more.

the most recent response on that thread makes it sound like maybe OpenNI2 supports multi-user skeleton tracking.

kylemcdonald commented 11 years ago

sorry, it looks like all you have to do to access multiple kinects is just create multiple ofxOpenNI objects. but it's not possible right now to have multiple kinects doing skeleton tracking in the same process. however, you can do it if you build separate apps using a simple setDeviceID() method i just added: https://github.com/gameoverhack/ofxOpenNI/pull/30

maybe openni2 supports multiple skeletons in the same process, but afaict openni2 only runs on linux and windows right now.