I just finished the first milestone in building the ultimate love toy.
I added kinect and mindstorm nxt 2.0 support into love (both native löve modules).
Code: https://bitbucket.org/hagish/love-kinect-mindstorm
It's based on the current love tip (rude/love at bitbucket). At the moment the code is linux only, but it should be possible to port it to other systems.
Kinect support is based on libfreenect and nxt2 on a win/linux lib (i don't have a clue if there is mac support).
Current kinect features:
* Cam image
* Depth image
* Set LED status
Current mindstorm nxt 2.0 features:
* Connect via Bluetooth
* Control 1-3 motors
* Receive sensor information
The attachment contains the löve no-game screen with the 2 kinect cam images. And if this would be a video you could see that the planet rotates if you hold sensor button 1 and stops if you release it.
I'll add some documentation and stuff and then I'll upload it to bitbucket.
---
Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Last edited by hagish on Sun Jun 26, 2011 2:52 pm, edited 1 time in total.
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Kinect in Löve! My ultimate dream...
Is it possible to get skeleton data from the Kinect into Löve? That would open up some amazing possibilities.
Is it possible to get skeleton data from the Kinect into Löve? That would open up some amazing possibilities.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
That would be very awesome!
Help us help you: attach a .love.
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Currently there is no skeleton detectoin because libfreenect does not provide this data. I'm not sure if there is a free lib that can do it.
One could integrate OpenNI and PrimeSense for skeleton detection. But PrimeSense is not free in an open-source way (as far as I remember).
One could integrate OpenNI and PrimeSense for skeleton detection. But PrimeSense is not free in an open-source way (as far as I remember).
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Awesome! Do we have access to the camera and depth image as in ImageData?
The skeleton data is not calculated on the kinect itself, but done in software. All you can get from the kinect is a camera image (actually two), a depth image and sound from a microphone array. Libraries like OpenNI and the Microsoft SDK use the depth image and rather complicated algorithms to get skeleton data.middlerun wrote:Is it possible to get skeleton data from the Kinect into Löve?
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Yes there is a getDepthAtXy : number, getDepthImage : ImageData and getRgbImage : ImageData.
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
I just cleaned up my commit history and pushed the current version: https://bitbucket.org/hagish/love-kinect-mindstorm
Re: Ultimate Löve Toy (kinect + mindstorm nxt 2.0)
Most impressive.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Who is online
Users browsing this forum: No registered users and 1 guest