Experiment : Kinect / OpenNI + Flash/AIR + Sion
8 avril 2012A short experiment for making music with a Kinect sensor.
Project and source code are available on OpenNI Arena website.
A short experiment for making music with a Kinect sensor.
Project and source code are available on OpenNI Arena website.
Here is a small stage3D demo of using flash stage3D, Away3D 4, BVH motion capture file format, Away Physics.
Just give some sweets to the lonely pumpkin to make it dance salsa
See my previous post for the source code of the AS3 BVH Parser.
Hope you like !
Aucun commentaire »
This is a small contribution that would be usefull to those who want to play with motion capture in flash.
BvhParser is an AS3 class that will... parse BVH files !
Just give the text content of a BVH file to the BvhParser and it will return coordinates and rotations of each bone for each frame of the animation.
Download the Bvh Parser source code.
This is (quickly) how to use it :
_bvh = new BvhParser(); _bvh.parse(_bvhStr); _bvh.gotoFrame(1); _update(); private function _update():void { for each(var bone : BvhBone in _bvh.bones) { trace(bone.Xposition, bone.Yposition, bone.Zposition); trace(bone.Xrotation, bone.Yrotation, bone.Zrotation); } }Aucun commentaire »