So the BVH file gives us information as such:
HIERARCHY
ROOT Hips
{
OFFSET 0.00 0.00 0.00
CHANNELS 6 Xposition Yposition Zposition Xrotation Yrotation Zrotation
JOINT LeftUpLeg
{
OFFSET 4.29448 0.00000 0.00000
CHANNELS 3 Xrotation Yrotation Zrotation
JOINT LeftLeg
{
OFFSET 0.00000 -19.20276 0.00000
CHANNELS 3 Xrotation Yrotation Zrotation
JOINT LeftFoot
{
OFFSET -0.02174 -15.68217 -0.01872
CHANNELS 3 Xrotation Yrotation Zrotation
etc...
Now, I have all of the joints nicely placed, as seen in the previous post; however, trying to connect the joints with cylinders is proving to be more difficult. Everything in this file is in a hierarchy. So the leftLeg is -19.2 in the Y direction from the LeftLegUp, so it's Y direction is technically '-19.2 while it's child has a Y direction of -15. This is a problem. Because with the normal distance formula it is saying that the position isn't actually about 15 units apart, but more like 4-5 units apart.
What would fix the problem: Using global variables.
Problem: Actually getting the global variables...
Without the global variables, this is what my wonderful skeleton looks like..
Thursday, July 14, 2011
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment