Featured on Wired Blog Network!

Tea Vui Huang's Mocap Phone

Mocap (or motion capture) refers to the recording of human / object movements for applications such as animation, movies and games. The recorded movement data is then used to animate human and object models in 3D animation. Tea Vui Huang's Mocap Phone is a mobile application that enables a suitable mobile phone to be a limited 2-axis / 3-axis motion capture device.

New generation of mobile phones appearing in the shops are starting to feature motion sensors as standard features of the phone. These Wii-mote-like motion sensors are generally utilising a MEMS (Micro-electro mechanical systems) Accelerometer. It is this built-in Accelerometer (e.g. Analog Devices ADXL340KCPZ) that Mocap Phone uses to detect movements of the phone. A red LED strobe-ring decal is totally optional.

The Accelerometer's pitch, roll & direction is used for 3-axis motion capture. However, some phones do not have sensors for direction and hence only 2-axis motion capture of pitch & roll is available. These information are subsequently converted into (rx, ry, rz) animation data and / or (tx, ty, tz) position data in the phone. They are then exported to the phone's removable storage (microSD card) in widely-used industry-standard mocap formats such as Vicon C3D, Autodesk FBX and Acclaim AMC & ASF, as well as a direct Maya MEL format.



If a built-in Accelerometer is available for motion capture, you can point, roll & pitch the phone to generate motion data. However, if an Accelerometer is NOT available for motion capture on the phone, you can still use keys 1/3, 4/6, 7/9 to simulate azimuth, roll & pitch.

Note: Selecting Vicon C3D format will result in 2 position data files - a pose & a motion file; Maya MEL usage - Enter the animation script name followed by the object name at the MEL command line, e.g. 'dance nurbsCube1'; You can use Autodesk FbxConverter to convert FBX animation files into 3DS & COLLADA format; Selecting Acclaim format will also result in 2 position data files - a skeleton ASF & a motion AMC file; See the following sections for more information.

Vicon C3D | Autodesk FBX | Acclaim AMC & ASF | Maya MEL

Samples | Misc | Links




Mocap Phone for Nokia mobile phones (with / without built-in Accelerometer)
Web Download (23 KB)
Mobile Download (23 KB)

Or enter this URL - http://teavuihuang.com/mocap/download.php






Acclaim AMC / ASF Motion Capture

The Acclaim format is made up of two files, an ASF (Acclaim Skeleton File) skeleton file and an AMC (Acclaim Motion Capture) motion file. Tea Vui Huang's Mocap Phone maps the Accelerometer motion-capture to the head of the skeleton, and creates a Vicon BodyBuilder-styled ASF & Accelerometer AMC file. The following are sample output files listed in the familiar style of Carnegie Mellon's (CMU) Graphics Lab motion capture website.



 

Subject #1 (standing)
- - asf framerate Feedback
ImageTrial #Motion Description
1Nodding head, looking around c3d amc fbx mel fbl 24 Feedback
 (Above converted with Autodesk FbxConverter) 3ds dae          

Subject #2 (sitting)
- - asf framerate Feedback
ImageTrial #Motion Description
1Nodding head, looking around c3d amc fbx mel fbl 24 Feedback
 (Above converted with Autodesk FbxConverter) 3ds dae          






Using Autodesk FBX Accelerometer motion-capture in Maya





1. Transfer the FBX file generated by Tea Vui Huang's Mocap Phone to the PC (e.g. 'Accelerometer.fbx'). If you are using a microSD card, it will show up on Windows as a 'Removable Drive'. The default folder it saves to on the Nokia hpone is 'Others'. Launch Maya, click on 'File > Import' and browse to the folder containing the FBX file. Select the FBX file and click 'Import'.




2. 'Take 001' will be automatically selected by Maya. Change any import settings if desired, then click 'Import'.




3. The Accelerometer FBX is imported into Maya. Select 'Frame Selected' if you can't see it.




4. Move the animation slider and you will see the rotation attributes of the Accelerometer changing (if it was moving at that point).




5. To apply the motion capture to your model, middle-button drag the object (e.g. 'nurbsCone1') to the Accelerometer to make it its parent.

 

6. Press the 'Play' button on the animation toolbar to see the effect.








Autodesk Maya MEL script Accelerometer motion-capture

Tea Vui Huang's Mocap Phone can save the Accelerometer motion capture data to a MEL script for direct application to a model / object. Simply enter the script name followed by the object name (e.g. 'sample nurbsCone1') in the Script Editor or MEL command line.








Vicon C3D Accelerometer motion-capture

Tea Vui Huang's Mocap Phone converts the Accelerometer motion capture into position data and saves them into a Vicon C3D file in DEC format. The best way to understand the MK001 marker is to imagine it as the tip of a stick that is perpendicular / vertical to a mobile phone that is being held flat on your hand.





The MK001 marker revolves around the static MK002 marker.




The MK002 marker is static and never moves.








Animating a Vicon Head using Accelerometer motion-capture in Maya





1. Follow the steps for importing the Accelerometer motion-capture FBX into Maya, then parent the Vicon skeleton's RFHD, LFHD, RBHD and LBHD to the Accelerometer.




2. Press the 'Play' button on the animation toolbar to see the effect.





More software from Tea Vui Huang

Click on an icon below:

 Tea Vui Huang's Software
Tea Vui Huang's Software 
GLONASS Geotagger Photo Detagger HD-DVD Forvever Action Transfers Say Polaroid! DNG Phone Camera All-Format Writer P2 Mobile P2 Scenemaker VUI Data Android m3 API Demo Android m5 UI Demo All-Format Writer P2 Mobile P2 Scenemaker VUI Data Android m3 API Demo Android m5 UI Demo LIMO Demo HD Photo Scribbler Maya On-the-Go Instant EXR Mocap Phone


  • Maya On-The-Go
    Maya On-The-Go mobile phone application lets you create 3D objects for Autodesk Maya & Softimage XSI on your mobile phone while you are out and on the move. The dotXSI 3.6 files it creates can be imported into SOFTIMAGEXSI 6.5, while the Maya Scene files it creates can be opened / imported into Autodesk Maya Complete & Maya Personal Learning Edition 8.5 on the Windows, Mac OS X & Linux platforms.

  • Instant EXR
    Instant EXR mobile phone application allows you to create a single-level High Dynamic Range Image (HDRI) in the form of ILM's (Industrial Light & Magic, a division of Lucas Digital Ltd. LLC) OpenEXR latitude-longitude environment map from a sequence of mobile phone photos. The OpenEXR files it creates can be imported directly into SOFTIMAGE|XSI & Autodesk Maya to render photo-realistic 3D scenes and animation.

  • Say Polaroid!
    Capture instant 'Polaroid' photos directly from your Nokia - Say Polaroid! will crop, composite and 'develop' it on virtual & endless 600 / SX-70 Time-Zero films. Good golly, it's 1972 all-over again!

  • DNG Phone Camera
    With the "DNG Phone Camera" mobile software, you can now capture photos directly to the Adobe DNG (Digital Negative) RAW image format from your Nokia camera phone. Previously, DNG is available only on high-end cameras like Hasselblad & Leica.

  • Android DVB-H Simulator
    Simulates DVB-H ESG (TV Guide for Mobile TV) on Google Android m5 DVB-H handset

  • Adobe DNG RAW on Google Android (gPhone)
    Tea Vui Huang's "DNGwriter" is a Google Android library that allows gPhone (Google Android Handset) camera images to be saved straight to the Adobe Digital Negative (DNG) Raw image format. This product includes DNG technology under license by Adobe Systems Incorporated.

  • London Eye in Singapore
    An interactive Facebook application that you lets you control the Singapore London Eye right from your profile page!

  • All-Format Writer
    Create Adobe PDF, Microsoft DOCX, OpenOffice ODT & China National Electronic Document Standard UOF documents from your J2ME mobile phone!

  • Run Google Android (gPhone) API examples on your Nokia Phone

  • NTT-DoCoMo skin for Google Android (gPhone) Emulator

  • P2 Mobile - Edit Panasonic P2SD & P2HD metadata & scene files on your mobile phone.

  • Mass Storage Synchonizer
    An iTunes add-on for Mobile Phones. This free software allows PalmOne Treo 650 & 600 smartphones, Sony-Ericsson's Walkman phones, Nokia's XpressMusic and Samsung MP3 phones (with hard keys to control playback) to be synchronized with iTunes.

  • DVB-H ESG Simulator - Simulates DVB-H ESG (TV Guide for Mobile TV) on all major (hard-to-get) DVB-H handsets

  • SMS Front-end Menu for PayPal Mobile - No more memorizing SMS codes and payment detail structures!

  • TVH-72g Graphing Calculator - A Low-Cost Graphing Calculator for Mobile Phones

  • Aibo Memories
    Is a 3D Playable (virtual) Sony Aibo for Mobile Phones. The direction stick on the mobile phone can be used to make Aibo stand, sit, lie down and jump up. 3D animation of the 7 Series ERS-7M3/W Pearl White Aibo was designed on the Sony AIBO Motion Editor. Aibo Memories was created in memory of the Sony Aibo (1999-2006).

  • Lumiedge (Ambilight-like effect for Webcam images)
    Tea Vui Huang's Lumiedge Java Applet adds a color coordinated Introduction to the horizontal edges of a webcam image. This can be used to enliven a webcam image and visually fill it out to a 16:9 wide-screen format.

  • H5N1 (Avian Flu) DECON
    The handy H5N1 DECON (-tamination) mobile phone application assists in the precise determination of dilution ratio and quantity of UN FAO & AUSVETPLAN approved bird flu disinfectants for an assortment of prevention & decontamination scenarios. It is an ideal tool for front-line healthcare/farm workers containing the spread of the H5N1 avian flu virus.

  • Mobile Tsunami Detector
    A free mobile phone software for tsunami prediction. Using 2G/3G data connection, it queries, filters and analyses LIVE Earthquake readings from the United States Geological Surveys (USGS). Probability and impact time of potential tsunamis are assessed and reported instantly for countries whose coastline borders the Indian Ocean.

  • Scratch Tracks (Using MP3 Players as an Internet Banking Authentication Token)
  • MMS Podcasting
  • Enhanced Podcast to J2ME Converter
  • Podcast for Mobile Phones
  • Open Source Project for Google SMS & Yahoo SMS
  • Web Tsunami Detector