Just wanted to share a library I've been putting together over the past few days. I'd been using Shiffman's library (kudos!), but found I needed something faster. The source is on github, with a link to a downloadable binary in the README:
Hey Paul, nice work with the lib. I'm having trouble getting it to run on osx leopard with processing 1.2, i'm getting the unsatisfiedlinkerror message for libkinect.jnilib. Libs are all in the right place. Do I need to recompile the xcode source?
Here's the output I'm getting, looks the same? webdesign1:library webdesign1$ otool -L libkinect.jnilib libkinect.jnilib: libkinect.jnilib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.0.0) /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.0.0) webdesign1:library webdesign1$
Hi, I was also trying to get Greg's example to run with this library. But whenever I setup an OpenGL windows (size(640,480, OPENGL);) I receive an error when grabbing the depth image in the draw method. The color image works fine.
This is the error: Invalid memory access of location 0x0 eip=0x29026c86
And it's thrown in the kinect library.
Can I maybe see your code how you updated the point cloud example? Thanks!
I'm not sure how we can best consolidate all these efforts, but I updated my library to use the OpenKinect JNI wrapper by Michael Nischt. The source is on github and linked from below. Am now getting 30 FPS with only the depth or only the RGB image, but asking for both images results in about 20 FPS.
I'm not sure of the best way forward either, I can't remember the frame-rate I was getting but will check when I get home.
Couple of the things you've listed on your TODO are already catered for by my library (IR image/LED). Currently I'm working mostly on the cross-platform thing - have a buggy version of it building against/working on Windows.
Please feel free to message me on Github/twitter/etc if you want to discuss anything :)
1) comments on my site are fixed, thanks for pointing that out!
2) the kinectEvent() method error can be completely ignored. I originally imagined the library having a kinectEvent() method (much like captureEvent()), but at the moment, it's not implemented. So that's just a placeholder.
3) "RGBDepthTest quit unexpectedly while using the libKinect.jnilib plugin" -- this is a known bug. i am going to add it to the github issues list. i think i'm not properly closing /disposing the kinect device or something.
I got it to work without problems, Thanks for the Lib! I am looking forward to save the 3D data, has anyone implemented this? What format shall i save it to? ( My want to create an animation in processing, C4D, Ae...) If you know any link to point me in the direction please go ahead, i cant find much information (quite surprisingly).
Can't remember where I found this anymore, but here is an example by Henry Palonen to save .obj's ... not that in this example I had already switched the syntax to use Paul's library instead of Daniel's...
??? It's a Jar, I've had no issues with it... though I did move back to Shiffman's library, as it started to get faster (and had better example's to get me started on different applications)... though now I'm using Max's SimpleOpenNI...
I get it to run, thnks for your help and patience, this is my first processing project.
i was wondering if it was possible to "record" the 3d, like output an object every 100ms or register the animation? what library as well would allow me to record the data as video too? does processing have a built one for this? or peasycam?