# An importer for motion capture files. Infinite fun possibilities

**URL:** <https://community.wolfram.com/t/an-importer-for-motion-capture-files-infinite-fun-possibilities/3653>\
**Category:** Ideas\
**Tags:** biological-sciences, game-development, fun-and-play, robotics, social-sciences, computational-arts, mathematica, graphics-and-visualization, import-and-export, packages-and-paclets\
**Created:** [October 15, 2014, 9:02pm UTC](https://community.wolfram.com/t/an-importer-for-motion-capture-files-infinite-fun-possibilities/3653 "2014-10-15T21:02:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjoerdcdevries](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sjoerdcdevries/32/9238_2.png) [@sjoerdcdevries](https://community.wolfram.com/u/sjoerdcdevries)\
**Post date:** [October 15, 2014, 9:02pm UTC](https://community.wolfram.com/t/an-importer-for-motion-capture-files-infinite-fun-possibilities/3653/1 "2014-10-15T21:02:42Z")

</div>

Admit it…

You always wanted to play with those motion capture files that you can find for free by the thousands on places like the [Advanced Computing Center for the Arts and Design](http://accad.osu.edu/research/mocap/mocap_data.htm) or the [cgspeed site](https://sites.google.com/a/cgspeed.com/cgspeed/motion-capture) which contains BVH conversions of the 2500-motion [Carnegie-Mellon motion capture dataset](http://mocap.cs.cmu.edu/).

Well, now you can.

I have written an importer package for the BVH (Biovision hierarchical data) motion capture format, which you can find as an answer on [mathematica.stackoverflow.com](http://mathematica.stackexchange.com/a/60942/57). Just three of the possibilities:

Import:

```
out = Import["C:\\Female1_D6_CartWheel.bvh"]

```

![6g00x.png](https://global.discourse-cdn.com/wolfram/original/2X/f/fe3f61993cc5b39e17d3ff4e560d880da02cabdd.png)

Generate movies:

```
out["AnimatedGIF", "C:\\cartwheel.gif"]

```

![0BflU.gif](https://global.discourse-cdn.com/wolfram/original/1X/a63200b1e56e26abcab6372e74bf18605cabdad9.gif)

Analyse motion:

```
Graphics3D[
 MapIndexed[
  {Opacity[0.8], Hue[#2[[1]]/out["FrameCount"]], 
    GraphicsComplex[#1, Line /@ out["Bones"]]} &,
  out["JointsStack"]
  ],
 Boxed -> False
 ]

```

 ![H4YIN.png](https://global.discourse-cdn.com/wolfram/original/2X/2/21fb890000936494deb7beaf8efb46c91611ad8c.png)

etc. etc.

Combined with all the graphical power of Mathematica the possibilities for fun projects are endless. How about this?

![mobius.gif](https://global.discourse-cdn.com/wolfram/original/3X/f/8/f81299bc0c99613088af80ed56cd4c3ec22ff032.gif)
