UNPKG

anim-to-bvh

Version:

Anim to BVH converter(mostly for Second Life, including Bento bones). Anim, BVH parsers.

575 lines (573 loc) 1.15 MB
import {BVHNode} from "./model"; export const male: BVHNode = <any>{ "offset": { "x": 0, "y": 0, "z": 0 }, "channels": [ "Xposition", "Yposition", "Zposition", "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "hip", "children": [ { "offset": { "x": 0, "y": 1.1033, "z": 0 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mSpine1", "children": [ { "offset": { "x": 0, "y": 1.1033, "z": 0 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mSpine2", "children": [ { "offset": { "x": 0, "y": 1.1033, "z": 0 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "abdomen", "children": [ { "offset": { "x": 0, "y": 2.8231, "z": -0.2017 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mSpine3", "children": [ { "offset": { "x": 0, "y": 2.8231, "z": -0.2017 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mSpine4", "children": [ { "offset": { "x": 0, "y": 2.8231, "z": -0.2017 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "chest", "children": [ { "offset": { "x": 0, "y": 10.3804, "z": -0.3893 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "neck", "children": [ { "offset": { "x": 0, "y": 3.5731, "z": 0 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "head", "children": [ { "offset": { "x": 0, "y": 2.6038, "z": 0 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "figureHair", "children": [ { "offset": { "x": 0, "y": 1.2992, "z": 0 }, "bvhName": "end", "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } } ], "parentName": "figureHair" } ], "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": {} } ] }, { "offset": { "x": -1.4203, "y": 2.877, "z": 3.5859 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mEyeRight", "children": [ { "offset": { "x": 0, "y": 0, "z": 0.9843 }, "bvhName": "end", "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } } ], "parentName": "mEyeRight" } ], "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": {} } ] }, { "offset": { "x": 1.4203, "y": 2.877, "z": 3.5857 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mEyeLeft", "children": [ { "offset": { "x": 0, "y": 0, "z": 0.9843 }, "bvhName": "end", "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } } ], "parentName": "mEyeLeft" } ], "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": {} } ] }, { "offset": { "x": 0, "y": 1.6934, "z": 0.9104 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mFaceRoot", "children": [ { "offset": { "x": -1.4156, "y": 1.1836, "z": 2.6754 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mFaceEyeAltRight", "children": [ { "offset": { "x": 0, "y": 0, "z": 0.9843 }, "bvhName": "end", "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } } ], "parentName": "mFaceEyeAltRight" } ], "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": {} } ] }, { "offset": { "x": 1.4156, "y": 1.1836, "z": 2.6752 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mFaceEyeAltLeft", "children": [ { "offset": { "x": 0, "y": 0, "z": 0.9843 }, "bvhName": "end", "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } } ], "parentName": "mFaceEyeAltLeft" } ], "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": {} } ] }, { "offset": { "x": 1.3035, "y": 3.0608, "z": 2.3307 }, "channels": [ "Xrotation", "Yrotation", "Zrotation" ], "bvhName": "mFaceForeheadLeft", "children": [ { "offset": { "x": 0.1575, "y": 0.7087, "z": 0.9449 }, "bvhName": "end", "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } } ], "parentName": "mFaceForeheadLeft" } ], "bvhFrames": [ { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 0, "y": 0, "z": 0 } }, { "position": { "x": 0, "y": 0, "z": 0 }, "rotation": {} } ] }, { "offset": { "x": -1.3035, "y": 3.0608, "z": 2.3307 }, "channels": [