Kinect Motion Capture

Use an Xbox sensor for inexpensive motion capture

Home Games Software In Your Browser Animation Tutorials Miscellaneous

Video Tutorial:

Seb8tian graciously created this video tutorial from this webpage. Go subscribe! Make sure to enable Closed Captions (CC) on the video.

You will need:

  1. A 64-bit computer running Windows 7 or higher with USB 2.0 or higher
  2. At least 6 GB free of hard disk space
  3. a CPU and GPU that meet system requirements for Maya
  4. A 3-button mouse
  5. An Xbox Kinect 360 sensor. MotionBuilder does not support the Xbox One sensor.
  6. Kinect 360 USB adapter (if your Kinect does not have a standard USB connector)
    1. An adapter you could use: https://www.amazon.com/Microsoft-Xbox-360-Kinect-Sensor-Adapter/dp/B00JVI6BVY
  7. An open space free of obstructions (10ft*10ft recommended, 5ft*5ft minimum)
  8. Once you have gathered all of these parts you are ready to proceed!

Required Software:

A complete list of all the software we will install just as a heads-up. No surprises! (Don't install any of this yet)
  1. Autodesk Maya 2016 or higher (Can be acquired for free legally by making a student account on Autodesk.com, more info about this later)
  2. Autodesk MotionBuilder 2016 or higher (make sure to use the same version as Maya!)
  3. Kinect SDK 1.8 (or 2.0 for Xbox One)

Installation and Setup

  1. Download and install the Kinect SDK 1.8 (Do not plug in the Kinect first!)
  2. Run the installer to install the SDK
  3. If you haven't already, create an Autodesk student account by visiting autodesk.com/student
  4. Install the student version of Autodesk MotionBuilder (This guide confirms version 2018 to work).
  5. Install the student version of Maya (make sure you install the same year-version! For example, if you installed MotionBuilder 2018, install Maya 2018.)
  6. Plug your Kinect sensor into any power USB 2.0 or higher port on your computer
    1. Plug the power cable into a wall socket if your Kinect requires a power outlet
    2. Wait while your computer automatically installs any required drivers for your computer. Do not unplug the Kinect during this process.

Operation Instructions - Setup

  1. Plug in your Kinect and place it approximately 4 feet above the ground and level horizontally. Do not force the sensor arm backward or forwards! Doing so will damage the motor.
  2. Launch MotionBuilder.
  3. Go to the [Asset Browser], expand the [Templates] folder, and click [Devices]
  4. Drag [Kinect 1.0] onto the 3D grid
  5. Under [Model Binding] click [Create]. A yellow joint skeleton should appear in the view.
    1. Note: for MotionBuilder 2017 or higher, you will need to go to [Characters] - [MocapDeviceCharacter] in the Templates panel and change [Character Solver] to [MB Character Solver]
  6. Click the Online button and wait until it turns green. If a dialog for voice control pops up, press [No]. The Kinect should auto-level its sensor if necessary.
  7. Under [Setup] click [Setup Recording]. A human male model should appear in the viewport.
  8. [Optional] Delete all of the mesh for the man. You do not need it unless you don't have any rigs to retarget the motion to. Keep the white skeleton because it is essential.
  9. Click [Calibration], and then [Ok]
  10. Stand about 6 feet away from the Kinect and directly in front of it. You will notice the yellow skeleton on the screen will begin to match your movements.
  11. Put your arms out in a T-Pose (look at the white skeleton for reference)
  12. When the Kinect has calibrated successfully, you will hear a sound effect and the white skeleton will start moving with the yellow one.

Capturing Motion

    1. Complete Setup mentioned above.
    2. In the timeline, press the circular Record button.
    3. Press the triangular Play Forwards button
    4. Stand about 6 feet in front of the Kinect and perform (make sure the player is running while you perform)
    5. Press either Play Forwards or Stop (square) to end the recording
    6. Wait until progress bars stop appearing.
    7. Move the time scrubber to the beginning of the timeline and play back your recording. Notice that only the white skeleton is moving – this is what we want.
    8. [optional] Move the camera around in MotionBuilder to inspect all angles of the recording.

Trimming out bad recordings

Follow the steps below to trim out the shaky or otherwise problematic endpoints of the recording.
  1. Go to the Story tab.
  2. Drag the time slider to where the skeleton stops shaking.
  3. Click on the edge of the clip and drag it over to the time slider. It should snap to the location of the time slider.
  4. Drag the time slider to just before the animation becomes shaky again at the end of the clip.
  5. Click on the edge of the clip and drag it over to the time slider. It should snap to the location of the time slider.
  6. Click in the middle of the clip and drag it to the left so it lines up with frame 1.
  7. Now play back the animation. The problematic portions will be gone.

Sending to Maya

  1. Deselect everything in MotionBuilder by dragging in the 3D view to make a dashed-line rectangle. Make sure that rectangle is not covering anything in the scene and release the mouse button.
  2. Go to File -> Send to Maya -> Send as New Scene
  3. Click the [OK] button on the popup dialog.
  4. Wait for Maya to launch. When the popup shows up, press [Don't save]
  5. Use the scroll wheel to zoom out. Keep zooming out until you see the Mocap Skeleton.
  6. Right-click the timeline, go to Playback speed -> Real-time to play back at 24 frames per second.
  7. Play back your animation.
  8. Note. If Send to Maya does not work, you can save your MotionBuilder scene as an FBX file and import it into Maya (make sure the fbx plugin is enabled!). However, you will most likely need to manually map your imported skeleton to HIK if you do this.