FaceCube: Copy Real Life with a Kinect and 3D Printer
by nrp, published
This project is a tangent off of something cool I've been hacking on in small pieces over the last few months. I probably would not have gone down this tangent had it not been for the recent publication of Fabricate Yourself. Nothing inspires me more than when someone does something cool and then releases only a description and pictures of it. Thus, I've written FaceCube, my own open source take on automatic creation of solid models of real life objects using the libfreenect python wrapper, pygame, NumPy, MeshLab, and OpenSCAD.
The real magic comes from when you take advantage of all that OpenSCAD has to offer. Make a copy of yourself frozen in carbonite, put your face on a gear, or make paper weights shaped like your foot. This is also where the name FaceCube comes from. My original goal going into this, I think at my roommateâ€™s suggestion, was to create ice cube trays in the shapes of peopleâ€™s faces. This can be done very easily in OpenSCAD, involving just subtracting the face object from a cube.
Recent Commentsview all
Would like top see if your interested in collaborating on robotic farming project. I was looking into using the kinect camera to scan plants for robotic handling. see www.firstfruitsfarms.com and email me if you are interested. We use python.
This is brilliant project. I don't have Kinect so I simply used my iPhone for 3d scanning at www.my3dscanner.com
The script for MeshLab worked great for meshing my point cloud.
Liked Byview all
Give a Shout Out
You can then open the PLY file in MeshLab to turn it into a solid STL. I followed a guide to figure out how to do that and created a filter script attached below. To use it, click Filters -> Show current filter script, click Open Script, choose meshing.mlx, and click Apply Script. You may have to click in the preview, but after a few seconds, it will say that it Successfully created a mesh. You can click Render -> Render Mode -> Flat Lines to see what it looks like. You can then click File -> Save As, and save it as an STL. You can probably get better results if you manually pick the right filters for your object, but this script will be enough most of the time.
You can then open the STL in OpenSCAD or Blender and scale it and modify to your heartâ€™s (or printerâ€™s) content.
Since all of the cool kids are apparently doing it, Iâ€™ve put this stuff into a GitHub repository. Go ahead and check it out, errâ€¦ git clone it out. The facecube.py script requires the libfreenect from the unstable branch, and any recent version of pygame, numpy, and scipy. Youâ€™ll need any recent version of MeshLab or Blender after that to do the meshing. Iâ€™ve been using this on Ubuntu 10.10, but it should work without much trouble on Windows or OS X. The latest code will be on git, but if you are averse to it for whatever reason, I've attached the script and the meshlab filter script below.
git clone [email protected]:nrpatel/FaceCube.git
You must be logged in to post a comment.