Game Development Reference
In-Depth Information
motion types. The program 'Filmbox' from Kaydara allows you to input
several mocap formats, edit the data and then output to a standard CG
package format such as 3DS, Soft, Maya or Lightwave. One of the
standard formats for mocap data is the Biovision Hierarchy (BVH) file. In
the next section we will look at the way the file is presented and then look
at creating a simple viewer for these raw motion files.
Understanding a BVH file
A Biovision Hierarchy file comes in two sections. First, the hierarchy, the
structure and size of the object. Then the motion data. Here is a typical
short file.
HIERARCHY
ROOT Hips
{
OFFSET 0.00 0.00 0.00
CHANNELS 6 Xposition Yposition Zposition Zrotation Xrotation
Yrotation
JOINT Chest
{
OFFSET 0.00 5.21 0.00
CHANNELS 3 Zrotation Xrotation Yrotation
JOINT Neck
{
OFFSET 0.00 18.65 0.00
CHANNELS 3 Zrotation Xrotation Yrotation
JOINT Head
{
OFFSET 0.00 5.45 0.00
CHANNELS 3 Zrotation Xrotation Yrotation
End Site
{
OFFSET
0.00
3.87
0.00
}
}
}
JOINT LeftCollar
{
OFFSET 1.12 16.23 1.87
CHANNELS 3 Zrotation Xrotation Yrotation
Search Nedrilad ::




Custom Search