Integrating Kinect with AutoCAD 2013

As promised in the last post, today we're going to see the adjusted point cloud import workflow applied to the previously posted  Kinect integration samples. This was also an opportunity to look at the improvements in version 1.5 of the Kinect for Windows SDK.

When the SDK was announced, my initial reaction was "OK, but what we really need is finger-tracking", especially as it was right around the time Leap Motion made their big announcement. But there have nonetheless been some really interesting capabilities added to the Kinect SDK with version 1.5:

  • Seated mode skeletal tracking
    • You can choose to receive just the upper body joints in your skeleton tracking data when in "near mode"
  • Better skeletal tracking
  • Face tracking capabilities
    • You can apparently map a 3D mesh onto a user's face โ€“ I'll be digging into this in a future post
  • Developer toolkit & Kinect Studio
    • A separated SDK and tools download containing an interesting new environment for working with and analysing Kinect data directly
  • Speech recognition options

There were apparently also a number of performance features related to colour mapping โ€“ both in terms of the speed but also in terms of the quality of the colours in low-light conditions and the mapping between RGB and depth frames. It may just be an impression, but I did find the results to be better with this SDK version:

Kinect point cloud in AutoCAD 2013

Here's the updated set of samples for AutoCAD 2013 and the Microsoft Kinect SDK v1.5.

The main changes were related to the updated point cloud import workflow, but I also updated the code to allow the user to choose to enter "near mode" (by setting the KINNEAR system variable to 1), and to make sure the reduced set of 10 joints get displayed properly when jigging using either the KINSKEL or KINBOTH commands.

I also tested the British English language pack, and sure enough it did a a much better job of understanding my commands. I've left the samples defaulting to US English โ€“ just search for and replace "en-US" with "en-GB" (having installed the language pack, of course) to give it a try.

As I ended up changing several files in relatively small ways, I won't copy and paste the code into this post, but do download the ZIP and take a look! ๐Ÿ™‚

4 responses to “Integrating Kinect with AutoCAD 2013”

  1. Kean,

    Is there any software out right now that utilize the Kinect technology for scanning and exporting it out as dwg file for autocad to work with in 3D rather than going through multiple 3rd party softwares to get a less than satisfying result? Or does Autodesk have any?

    Thanks,

    Donnie

  2. Donnie,

    The app presented in this post does just that (although there's a more recent one with the Kinect SDK 1.6), in that - among other things - it generates a PCG file linked to AutoCAD from a static scene captured by Kinect.

    KinectFusion is being added to the Kinect SDK: I'm hopeful that's going to provide some interesting "painting" capabilities to this app, in time. But we'll see what that provides.

    Cheers,

    Kean

  3. Hey Ken,

    Where would I go to get this app for autocad ?
    I wouldn't mind messing around at home scanning objects, modelling them and spitting them out of my printer ?

  4. Hi Joel,

    You could get the source from the latest post on this topic and build it with the Kinect for Windows SDK 1.8, if you know how to build a C# app.

    Otherwise you might just want to use one of the Kinect Fusion SDK samples (again, installed with the Kinect for Windows 1.8 SDK) to capture a mesh and output some STL.

    Have you also tried 123D Catch or ReCap Photo?

    Regards,

    Kean

Leave a Reply to Donnie King Cancel reply

Your email address will not be published. Required fields are marked *