1.0.0 • Published 8 years ago
bvh-parser v1.0.0
parse-bvh
Parses BioVision Hierarchy (BVH) motion capture files into a JavaScript friendly object representation.
More info on BVH:
- https://research.cs.wisc.edu/graphics/Courses/cs-838-1999/Jeff/BVH.html
- https://en.wikipedia.org/wiki/Biovision_Hierarchy
example
const fs = require('fs')
const parseBVH = require('parse-bvh')
console.log(parseBVH(fs.readFileSync('example.bvh').toString()))install
npm install bvh-parserapi
require('parse-bvh')(bvhString)
Takes a BVH file as a string as input
bvhStringis the contents of a BVH file
Returns An object representing the data contained in the BVH file. It has the following properties:
jointsan array of all the joints in the file, sorted by order of occurrence in the biovision file. Each joint has the following properties:namethe name of the jointindexindex of the joint in thejointsarrayoffseta 3D vector offset of the jointchannelsthe parameters describing the jointchannelOffsetstart of the channel offset in the jointparentreference to parent jointchildrenan array of all child joints for a given joint
frameTimethe number of seconds/frame in an animationframesan array of frames. each frame is a flat array of all channel data for each joint
credits
(c) 2018 Mikola Lysenko. MIT License
1.0.0
8 years ago