Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!
Kinect to STL sketch for Processing
by johngomm, published
Use This Project
Give a Shout Out
If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.Print Thing Tag
Here's my Processing sketch to interface with the Kinect and capture the depth data and render it as a solid STL file. I've included controls to adjust two thresholds - near and far. This allows you to set up a "Han Solo in carbonite" type effect.
I am not going to hold your hand through setting up Processing and this write up is In Progress, so if you get frustrated, realize that this might not be for you yet. Until I find a way to streamline posting a standalone application that works (currently it doesn't), this is still only for the persistent.
Until Microsoft publishes the code for their KinectFusion project, this is the best I could do to get a directly printable object without messing around in Blender or MeshLab. It's also my first serious coding effort, so forgive any inelegant code. Yes, the STL files are large (15mb) and the detail is hard for the CupCake to print, but it has the outreach potential for people new to 3D printers to create a unique, personalized object by just posing. Before you ask, the STL doesn't seem to take any less time in skeinforge if you use Blender to remove all duplicate vertices first, so I don't bother.
You will need a Kinect attached to your computer.
I haven't yet exported the processing sketch into a more stand-alone version, so you'll have to deal with running the source code, but that means you can change it and improve it.
This sketch runs inside the Processing environment, which you can download here: http://processing.org/
Then you'll need the libraries my script is dependent on:
Freenect Library: https://github.com/diwi/dLibs/archives/dLibs
And also install the OpenKinect drivers to let your computer talk to your Kinect. You'll need to choose the right option for your operating system: http://openkinect.org/wiki/Main_Page
Once you have it all set up (yes I know it's a bit of a chore, sorry) run the sketch and use "r" and "f" to adjust the red (far) threshold and "g" and "b" to adjust the green (near) threshold. When you are happy, strike a pose and press "s" to output the STL. This can take a while, depending on your computer's speed, but shouldn't take longer than 5 minutes for the highest resolution setting on a netbook and should be way faster on almost anything else.
Upgrade this Thing with Thingiverse AppsCustomization
Edit, personalize, or revise this ThingPrint Fulfilment
Order a print of this ThingTools and Utilities
Repair, slice, or enhance this Thing
Kinect to STL sketch for Processing by johngomm is licensed under the Creative Commons - Attribution license.
What does this mean?
- You must attribute (give credit) to the creator of this Thing.
- Remixing or Changing this Thing is allowed.
- Commercial use is allowed.
Show Some Love
Say thanks by giving johngomm a tip and help them continue to share amazing Things with the Thingiverse community.Tip Designer
We're sure johngomm would love to see what you've printed. Please document your print and share a Make with the community.
To post a Make simply visit this Thing again and click I Made One to start uploading your photo. It’s even easier to post a Make via the Thingiverse Mobile app (available via Google Play and Apple App Store).