ReconstructMe in Mac OS X via Parallels

ReconstructMe is a great tool for 3D scanning with the kinect and other depth cameras. Unfortunately it’s Windows only, and due to shoddy device handling in virtualization programs like VMware Fusion and VirtualBox the kinect isn’t recognized by Windows.

Luckily, thanks to Parallels all hope is not lost. Here’s how I was able to 3D scan with ReconstructMe in a Windows VM:

This guide assumes you have a running Windows 7 instance inside a copy of Parallels 7.

Let’s start with the installation instructions from ReconstructMe:

Display and CPU Drivers

If you try to install display drivers in a virtual machine you’ll likely get an error like this:

Native display drivers don't typically work inside virtual machines.

The real reason we need these drivers is for OpenCL support, which ReconstructMe relies on. After getting that error message, I just skipped this section and continued with the installation. Because I didn’t have OpenCL support I ended up getting this message on the first run of ReconstructMe:

The program can't start because OpenCL.dll is missing from your computer. Try reinstalling the program to fix this problem.

Luckily Intel provides an OpenCL CPU runtime for Windows that you can download here.

Apart from installing the OpenCL runtime instead of the native graphics drivers, the rest of the installation instructions are the same.  Just install the C++ redistributables, the Sensor Driver, and ReconstructMe, then you’ll be all set to try it out.

The first time you plug your kinect into your mac while Parallels is running you’ll get three notifications that look like this:

Be sure to select Windows for all three (Camera, Audio and Motor).

Now go ahead and give ReconstructMe a try!

A warning: Running anything in a virtual machine will never be as fast as running it natively, and this is especially true with ReconstructMe. Running it in realtime mode was VERY choppy and resulted in poor scans. I highly recommend running “ReconstructMe Record” which will simply record what the kinect sees at a decent framerate. Once you’ve captured what you want, open “ReconstructMe Replay” to go through your recording and build the scan. Here’s what came out of my first scan using record/replay:

An appropriate first scan with ReconstructMe on a Mac

Anyways, that’s it!  If you have any questions or comments, leave them here or hit me up on twitter!

Posted in 3D | 5 Comments

The Most Useless iPhone Case Ever

When I heard about the Absurd iPhone Accessory Contest, I knew I had to participate. My first entry, a Voltron iPad was thrown together pretty quickly and would be near impossible to print out on my makerbot cupcake’s modest build platform. I really wanted to submit an entry that I could actually print and that was a bit more interactive than a simple case. That was about 2 weeks ago, and I’ve been working on something ever since.

IMG_5828

I’ve always wanted to build The Most Useless Machine Ever, so I thought – why not combine it with an iPhone to create The Most Useless iPhone Case Ever? It turned out to be a pretty challenging project.

The typical “Most Useless Machine Ever” is many times the size of an iPhone, so the first thing I set out to do is find the smallest parts I could. The bill of materials for this project looks like this:

  • Battery case
  • Motor/Servo
  • Gearbox
  • DPDT Toggle Switch
  • SPDT Microswitch

IMG_5819

Luckily I had all of these parts lying around the house in some form or another. The parts that were a real challenge to find were a motor and gearbox strong enough to flip the toggle switch but small enough to fit in a fairly large iPhone case. I remembered I had an old Creative Webcam in the junk pile that had pan/tilt functionality. After taking it apart I had two small gearboxes with the stepper motors the size of a peanut. It took a few hours to track down the information about them but eventually I was able to drive them via an arduino. Unfortunately, after all that work the steppers simply weren’t strong enough to flip either of the switches, so I had to find another solution. Of course, with an electronics hoarder like myself there’s always more broken electronics to look through, and I found just the right motor in a broken Canon Elph camera. A big benefit is the Canon’s lens motor is DC, so I don’t need a microcontroller to drive it. In fact, with a simple DC motor all of the functionality of the useless machine can be wired with no chips at all.

The real trouble came when even that motor didn’t seem to be strong enough to push the toggle switch over. I spent an embarrassingly long time tracking down easier to flip toggle switches before I realized that I needed More Power (insert Tim the Toolman Taylor grunt here). I had been using two AA batteries which just didn’t give the motor enough torque to flip the switch. I changed over to a 4xAA case and we were in business! Unfortunately everything has its price – another 10mm to the thickness of the case with the new battery holder.

After getting all of the parts, I set out to design the case via pencil and paper, then in the programmer’s 3D modeler of choice: OpenSCAD.

Useless iPhone Case

Useless iPhone Case Internals

Aside from the electrical components, everything else is 3D printed, except for the toggle switch handle extension (my printer just couldn’t deliver anything small enough that would work well). I found the inside plastic piece from a mechanical pencil worked well, so I just used that.

IMG_5835

It took a lot of revisions to get it right.

Useless iPhone Case Prototypes

Anyways, I could go on for a long time about this case, but the details are pretty boring. It’s all done now just in time for the deadline of the contest. Everything would have went a lot quicker if I had a better 3D printer (hint hint to the judges…), although I do love my cupcake.

Check it out on thingiverse: The Most Useless iPhone Case Ever

Posted in random | Leave a comment

3D Printed Drawer Dividers for Storage Cabinets

Storage cabinets are great for organizing small parts. Unfortunately the one I recently bought from Lowes didn’t come with drawer dividers. (I should have read the reviews first.)

Shop Stack-On 39-Drawer Storage Cabinet

I started to make my own from an old CD case but realized that they cracked easily and looked like crap.

Handmade Dividers

Then I remembered I had a 3D printer, and smacked myself for even trying to cut them myself. I fired up OpenSCAD and before too long had a model of a divider custom fit to the drawers in my cabinet.

OpenSCAD Drawer Divider Model

It took my Makerbot Cupcake a few minutes to print the first version and it fit really well.

3D Printed Drawer Divider

3D Printed Drawer Divider

The script is fully parameterized so you can customize it to fit whatever drawers are out there. Check out the code on github and on thingiverse.

Posted in 3D | Leave a comment

My First Design – Kinect Stand

Think It. Make It. Use It.

I’m going to the Art && Code 3D kinect hacking conference at CMU, and I figured it would be nice to have a way to mount my kinect right to my laptop. So far I’ve only downloaded and printed 3D models made by others (thanks to thingiverse) and have been really frustrated by the usual 3D modelers out there. I finally tried out OpenSCAD, which takes a programmatic approach to 3D modeling and it makes loads more sense to me than anything else I’ve used.

Kinect Stand in OpenSCAD

After a few false starts because of the kinect base being nearly the same size as the build platform, I was able to get a print in under an hour and a half.

Printing the Kinect Stand

I was really happy to see my measurements were spot on and the design fit the kinect really well.

3D Printed Kinect Stand

The only problem is the kinect is heavy enough to pull down the monitor if the screen is leaned back too far.

3D Printed Kinect Stand

At some point, I came to realize how crazy this all is – I wanted something that didn’t exist, designed it, and printed it out. We live in the future, and it is amazing.

Get the source code and model here

Posted in 3D | Tagged , | 1 Comment

3D Prints

I’ve been printing a lot of things since I finally resolved some motor problems. Check them out!

Stormtrooper Take 4
I dealt with a lot of motor issues and finally got a stormtrooper head printed after several attempts.

3D Printed Octopus
This octopus was my first raftless print, meaning that it came out of the makerbot just like it looks here!

3D printed whistle
Yes, the whistle actually works! The ball is printed attached and knocked loose with a screwdriver or knife.

3D Printed Kinect Scans
I used a kinect to take a 3D picture of my niece and nephew.

More pics on my flickr page

Posted in 3D | Tagged , | Leave a comment

3D Reconstruction from 2D Video

Video to 3D test

Here’s my first test at taking select video frames and running them through 3D reconstruction tools. The first tool I tried is ARC 3D, a free multi-view 3D reconstruction webservice from the Catholic University of Leuven.

Not a bad mesh for a video shot at a baseball game after a few beers!

Posted in 3D | Tagged , , | 1 Comment

Kinects are fun even when you don’t have an xbox

Kinect a Cat

Posted in 3D | Tagged | Leave a comment

slowmo video fun

In the Spring of 2009, I bought a new point and shoot camera – the Casio Exilim EX-FC100. What’s cool about this camera is that it not only takes decent pictures and records 720p HD video, but it can also shoot slowmo videos at 210, 420, and 1000 frames per second. In the past year I’ve recorded a lot of stuff in slow mo – some boring, some not, and I feel like I should finally share some of the highlights.

Continue reading

Posted in random | 1 Comment