Open tthil opened 7 years ago
Hey Thomas, First of all, I'm surprised you got it to compile! The reason is that I don't think it will work past somewhere around Node 0.8-0.10 (due to the change in C++ interfaces). Also, to make it work, you would have also had to have found versions of OpenNI and NITE (which NITE has unfortunately been wiped from the web due to Apple purchasing Primsense).
If you indeed have everything working, then yes, the code in my quickstart example is designed to run on node. The "basic quickstart" should have everything needed to run it. You could tweak the code and route the data wherever you want (maybe just console log it first to see the stream working).
The websocket quickstart couples the data with some outbound messaging (assuming you've npm installed websocket). If you then run "nuimotion-sockets" in your browser, the outbound messaging with skeletal data would then be picked up by your browser.
So I tried to be pretty thorough here as far as just getting things running, but again - I think this project is fairly dead because it's not updated for recent the recent Node.js versions, and because of the libraries it requires that have now been pulled by Apple.
I have managed to compile the source code and like to try it in javascript. I found some sample code in the quickstart folder. What kind of javascript project would this run in?
Would it be possible to just add it to any JS file and run it with the node command, like node mySimpleTestApp.js?
//Thomas