Jump to content

JackFelix551

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I am also trying to figure out how to use Blender to create animations. Same problem: rotations about Blender's X axis become rotations about an avatar's Y axis, rotations about Blender's Y axis become rotations about an avatar's Z axis, and rotations about Blender's Z axis become rotations about an avatar's X axis. To gain a deeper understanding of the process, I created a very minimalist two-frame animation. This animation uses only one joint (named "hip") which I rotated by 45 degrees about Blender's X axis in the second frame, then cleared all transforms in the first frame. The "hip" joint on the second frame, rotated 45 degrees about the X axis, looks like this: In the picture above, the red X axis arrow is invisible but should be pointing out of the screen. I then exported a BVH file from Blender, and here's what the BVH file looks like: HIERARCHY ROOT hip { OFFSET 0.000000 0.000000 0.000000 CHANNELS 6 Xposition Yposition Zposition Xrotation Yrotation Zrotation End Site { OFFSET 0.000000 0.000000 1.000000 } } MOTION Frames: 2 Frame Time: 0.041667 0.000000 0.000000 0.000000 -0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 45.000005 0.000000 -0.000000 (Yes, those 15 lines are the contents of the BVH file in its entirety.) I feel that it's important to note that the value of "Xrotation" for frame 2 corresponds precisely to the position of the 45 degree value in the last line, suggesting that Blender is working properly. There are also options to export channels in different order, but the rotation values in the BVH file always correspond correctly to frame data. However, when I try to upload this file to Secondlife, here's what the preview looks like: Everyone knows that the avatar's local X axis is the avatar's forward direction, the avatar's local Y axis is the avatar's leftward direction, and the avatar's local Z axis is the avatar's upward direction. So far, I have the impression that Secondlife's upload process transposes the order of coordinates for some reason. Unfortunately I can't find any documentation as to why, or more importantly, how it works and how to fix it. If anyone would help us figure it out, I'd greatly appreciate it!
×
×
  • Create New...