Thanks Wang Rui, cool little plugin now merged and submitted to SVN.

On Mon, Dec 1, 2008 at 7:30 AM, Wang Rui <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Attachment is a plugin reading Biovision hierarchical files (.BVH) to
> generate character motion animations. BVH format is widely used by Character
> Studio of 3dsmax, MotionBuilder and other softwares, also supported by most
> motion capture devices. The plugin is based on the latest osgAnimation
> library of OSG 2.7.6 and will return a osgAnimation::AnimationManager
> pointer if using readNodeFile() to load it.
>
> Source and CMake files are:
>
> CMakeLists.txt
> ReaderWriterBVH.cpp
>
> Also there are 3 example BVH files. The first two are captured from motions
> of human beings - maybe a kung-fu master here. PLEASE use command below to
> see the results:
>
> # osgviewer example1.bvh -O solids
>
> This will demonstrate the animating of a skeleton and render bones as solid
> boxes. Note that the motion assumes XOZ is the ground and has an offset from
> the center, so we should adjust our view to get best effects.
>
> You may also use "-O contours" to render bones as lines. The viewer shows
> nothing if without any options because osgAnimation::Bone does not render
> itself. User may add customized models to each named bones as
> osganimationskinning does to make uses of this plugin in their own
> applications.
> I was wondering to support a BvhNode in my osgModeling peoject before, but
> soon found it better be a plugin for animation. A problem is, how to
> bind real geometry models to the skeleton. Maybe we could have a
> bindingToNode() visitor in future to find geodes matching names of bones and
> add them as bones' children.
>
> Already tested on Windows XP SP2 + VS2008 and Arch Linux 0.72 + GCC 4.0.3.
> Many thanks to Cedric and Jememy for their great (especially robust)
> animation library, and I wish this ReaderWriterBVH plugin would be a
> supplement of the new skinning functionality.
>
> Best regards,
> Wang Rui
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to