Kinect 2 STL
THIS IS A WORK IN PROGRESS
Here are just some notes on how to install software for using an XBOX 360 Kinect for making printable STL files.
Dependencies for Mac:
- MacPorts is advised.
- GLEW
- OpenFrameworks, ofxKinect, ofxControlPanel
- Xcode 2.4.1 or higher (download here)
Contents |
Step 1: installing dependencies (Mac OS X)
Several dependencies via MacPorts
sudo port install git-core libusb-devel cmake
libfreenect
git clone https://github.com/OpenKinect/libfreenect.git cd libfreenect/ mkdir build cd build ccmake ..
From this page: "Don't worry if it shows you an 'Empty Cache' at startup. Now press 'c' in ccmake to configure it. If you already installed libusb via MacPorts or Homebrew, it will work fine. Otherwise it will likely fail, because it cannot find libusb. Press 'e' to exit help and manually edit the path to libusb in the following screen to point to /usr/local/include/libusb-1.0/ and continue.
When you're done, build OpenKinect:
cmake .. make sudo make install cd ../../
Testing it: if you now type "glview", it should work, you should get two images, one webcam stream and one depth map. Type ctrl-C to abort this screen after you've played with it.
OpenFrameworks
Download the release 62 from here gave me the best results. To have a more current version, however, you could use this:
git clone https://github.com/openframeworks/openFrameworks.git
or the same version, but from GIT:
git clone https://github.com/openframeworks/openFrameworks.git -b 0062Release
ofxKinect
git clone https://github.com/ofTheo/ofxKinect.git
Place the ofxKinect folder inside the openFrameworks addon's folder.
ofxControlPanel
git clone https://github.com/ofTheo/ofxControlPanel.git
Place the ofxKinect folder inside the openFrameworks addon's folder. Make sure that any example you run is in a subdir, e.g. addons/ofxControlPanel/subdir/, otherwise, it doesn't compile.
Kyle McDonald's Kinect to STL
git clone https://github.com/kylemcdonald/Makerbot.git
libfreenect & libusb
git clone https://github.com/OpenKinect/libfreenect.git git clone git://git.libusb.org/libusb.git
GLEW
Try it first without installing this, but if you get build errors listing that it cannot find "glew.h", this may be needed. Make sure you have MacPorts. There are many tutorials on how to install it.
Install GLEW, which may be required:
# sudo port install glew +universal
This should take a minute or two.