JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
NiBVHName.h
Go to the documentation of this file.
1#pragma once
2
3#include "common++.h"
4#include "tools++.h"
5
6#include "BVHTool.h"
7#include "NiJointsTool.h"
8
9
10#define BVH_ADD_JOINTNAME_TXT "bvh_joint_name.txt"
11
12#define BVH_SAVE_FORMAT_QAV 0
13#define BVH_SAVE_FORMAT_SL 1
14#define BVH_SAVE_FORMAT_NI 2
15
16//
17#define add_bvh_name(p, n, j) add_tList_node_bystr((p), (n), 0, (j), NULL, NULL, 0)
18
19
20//
21namespace jbxwl {
22
23using namespace jbxl;
24
25tList* setBVHJointName(void);
26tList* addBVHJointName(char* fname, tList* lt);
27
28int BVHJoint2NiJointNum(tList* lt, Buffer joint_name);
29tTree* makeBVH_SLHierarchy(void);
30tTree* makeBVH_QAvHierarchy(void);
31tTree* makeBVH_NiHierarchy(void);
32
33vector getQAvBVHOffset(int joint);
34
35
36} // namespace
37
38
39
40
41/*
42mJointMap["mPelvis"] = "mPelvis";
43mJointMap["mTorso"] = "mTorso";
44mJointMap["mChest"] = "mChest";
45mJointMap["mNeck"] = "mNeck";
46mJointMap["mHead"] = "mHead";
47mJointMap["mSkull"] = "mSkull";
48mJointMap["mEyeRight"] = "mEyeRight";
49mJointMap["mEyeLeft"] = "mEyeLeft";
50mJointMap["mCollarLeft"] = "mCollarLeft";
51mJointMap["mShoulderLeft"] = "mShoulderLeft";
52mJointMap["mElbowLeft"] = "mElbowLeft";
53mJointMap["mWristLeft"] = "mWristLeft";
54mJointMap["mCollarRight"] = "mCollarRight";
55mJointMap["mShoulderRight"] = "mShoulderRight";
56mJointMap["mElbowRight"] = "mElbowRight";
57mJointMap["mWristRight"] = "mWristRight";
58mJointMap["mHipRight"] = "mHipRight";
59mJointMap["mKneeRight"] = "mKneeRight";
60mJointMap["mAnkleRight"] = "mAnkleRight";
61mJointMap["mFootRight"] = "mFootRight";
62mJointMap["mToeRight"] = "mToeRight";
63mJointMap["mHipLeft"] = "mHipLeft";
64mJointMap["mKneeLeft"] = "mKneeLeft";
65mJointMap["mAnkleLeft"] = "mAnkleLeft";
66mJointMap["mFootLeft"] = "mFootLeft";
67mJointMap["mToeLeft"] = "mToeLeft";
68
69mJointMap["avatar_mPelvis"] = "mPelvis";
70mJointMap["avatar_mTorso"] = "mTorso";
71mJointMap["avatar_mChest"] = "mChest";
72mJointMap["avatar_mNeck"] = "mNeck";
73mJointMap["avatar_mHead"] = "mHead";
74mJointMap["avatar_mSkull"] = "mSkull";
75mJointMap["avatar_mEyeRight"] = "mEyeRight";
76mJointMap["avatar_mEyeLeft"] = "mEyeLeft";
77mJointMap["avatar_mCollarLeft"] = "mCollarLeft";
78mJointMap["avatar_mShoulderLeft"] = "mShoulderLeft";
79mJointMap["avatar_mElbowLeft"] = "mElbowLeft";
80mJointMap["avatar_mWristLeft"] = "mWristLeft";
81mJointMap["avatar_mCollarRight"] = "mCollarRight";
82mJointMap["avatar_mShoulderRight"] = "mShoulderRight";
83mJointMap["avatar_mElbowRight"] = "mElbowRight";
84mJointMap["avatar_mWristRight"] = "mWristRight";
85mJointMap["avatar_mHipRight"] = "mHipRight";
86mJointMap["avatar_mKneeRight"] = "mKneeRight";
87mJointMap["avatar_mAnkleRight"] = "mAnkleRight";
88mJointMap["avatar_mFootRight"] = "mFootRight";
89mJointMap["avatar_mToeRight"] = "mToeRight";
90mJointMap["avatar_mHipLeft"] = "mHipLeft";
91mJointMap["avatar_mKneeLeft"] = "mKneeLeft";
92mJointMap["avatar_mAnkleLeft"] = "mAnkleLeft";
93mJointMap["avatar_mFootLeft"] = "mFootLeft";
94mJointMap["avatar_mToeLeft"] = "mToeLeft";
95
96mJointMap["hip"] = "mPelvis";
97mJointMap["abdomen"] = "mTorso";
98mJointMap["chest"] = "mChest";
99mJointMap["neck"] = "mNeck";
100mJointMap["head"] = "mHead";
101mJointMap["figureHair"] = "mSkull";
102mJointMap["lCollar"] = "mCollarLeft";
103mJointMap["lShldr"] = "mShoulderLeft";
104mJointMap["lForeArm"] = "mElbowLeft";
105mJointMap["lHand"] = "mWristLeft";
106mJointMap["rCollar"] = "mCollarRight";
107mJointMap["rShldr"] = "mShoulderRight";
108mJointMap["rForeArm"] = "mElbowRight";
109mJointMap["rHand"] = "mWristRight";
110mJointMap["rThigh"] = "mHipRight";
111mJointMap["rShin"] = "mKneeRight";
112mJointMap["rFoot"] = "mFootRight";
113mJointMap["lThigh"] = "mHipLeft";
114mJointMap["lShin"] = "mKneeLeft";
115mJointMap["lFoot"] = "mFootLeft";
116*/
tTree * makeBVH_QAvHierarchy(void)
vector getQAvBVHOffset(int joint)
int BVHJoint2NiJointNum(tList *lt, Buffer joint_name)
tList * setBVHJointName(void)
Definition NiBVHName.cpp:11
tTree * makeBVH_SLHierarchy(void)
tList * addBVHJointName(char *fname, tList *lt)
tTree * makeBVH_NiHierarchy(void)