Using ofxKinectForWindows2

Hi,

I’m having some difficulties using ofxKinectForWindows2. I’m able to compile the two examples, but they do not work properly. It’s like if I’m not using the correct version of some or all of the different libs and sdk.

Here are some of the issues I have (see the screenshots attached):

  • Some of the ‘outputs’ are not working (e.g. depth and infrared).
  • I have the following error message in the console “[error]
    ofxKinectForWindows2::SourceBaseImageSimple(unsigned short, struct
    IDepthFrameReader, struct IDepthFrame>::update: Couldn’t pull pixel
    buffer”.
  • The method “drawPrettyMesh()” called in the example “exampleWithGui”
    does not exist.

My environment is:

  • Visual Studio Express 2012.
  • OF Master branch.
  • ofxKinectForWindows2 Master branch.
  • Kinect SDK v2.0_1409.
  • Kinect v2 retail version.
  • Window 8.1 (Bootcamp).
  • Mac Book Pro Retina.

What am I doing wrong?

Thanks!




Heya!

Is 1409 the most recent version? If not, I might be testing with a more recent version now. Depth::drawPrettyMesh is now Device::drawWorld (thanks for spotting that!).

You can confirm that depth source works in Kinect Studio whilst the app is running?

Extreme case : If you could send me a zip of your entire oF folder including the addon then I can have a look with vs2012

Hey!

Yes the 1409 is the most recent version of the Kinect v2 SDK. At least from that page http://www.microsoft.com/en-us/download/details.aspx?id=44561.

Everything seems to work correctly when using Kinect Studio or any of the examples in Kinect Browser. But, are you asking me to test with Kinect Studio while running one of the ofxKinectForWindows2’s examples? If this is the case, I can do this in few days. I do not have a Kinect sensor with me right now. I am curious to know why. If not, I can send you my oF folder.

Thanks for the help.

yes i think that’s the next thing to check (app+studio at the same tim)

I haven’t heard of anybody else having this issue so far so best to double check everything
i’m ready to test here with vs2012 if you can wrap up what you have there

elliot

ok, I will do that test as soon as I have Kinect with me. What should I expect to see?

All this means that the Kinect can be used by several apps at the same time. I did not know that. I though that it would be ‘locked’ by the first app accessing it.

Here is a streamlined version of my oF folder.

Cheers,

Hugues.

Hey Elliot,
Happy New Year!

I’m finally back in Montreal where I do have Kinects. I can confirm that the depth source works in Kinect Studio whilst the app is running.

Have you had the time to look at my setup/OF folder ?

Thanks!

Hello
I have the same configuration and the same issue coming up with the sdk v2.0_1409.
I manage to have depth source from kinect studio and the app running at the same time as well.
I cannot find a link to download earlier version of the kinect sdk v2.0
Did you found a solution?

cheers

Sorry, totally forgot about this thread (have been checking issues on the GitHub but forgot about the forum!)
Apologies.

I have some time now and am downloading your oF folder. Thanks for sending.

Elliot

I was able to recreate. And have found the issue.
There’s a bug in the new ofPixels which reports the wrong size when the PixelType isn’t 8-bit (e.g. 16bit depth frames, etc)

I’ve marked that bug at:
https://github.com/openframeworks/openFrameworks/issues/3663

and i’ve updated the master branch to work around this issue:
https://github.com/elliotwoods/ofxKinectForWindows2/commit/40ae6f2c13a7c9631a529a254707fe1544f95ed8

(also the master branch now is setup for VS2012 when building 32bit)

please pull the latest master

Thanks for looking at this! I will try all this later today or tomorrow.
I was going to ping you as I saw the discussion on the dev list :wink:

working?