Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: an8 file format - 3d math and quaternions  (Read 2177 times)

ncoda

  • Newbie
  • *
  • Posts: 2
    • View Profile
an8 file format - 3d math and quaternions
« on: August 11, 2008, 12:02:25 pm »

Hi,
This is a difficult question to ask - since I'm fairly new to the whole quaternions and everything. The AN8 file format has the bones like so ...
    bone { "leftHipBone"
      length { 8.6686 }
      orientation { (0 0 0.13761 -0.99049) }

Now I've grabbed a quaternion C++ class from a book ("3D Math Primer for Graphics and Game Development"), and it references components W,X,Y,Z which I assume are in that order in the AN8 file? Is that the case?

Is there anything special about the implementation in the AN8 file?

Thanks
(Hoping to use this to load animated models into a little render engine)
Logged

NickE

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: an8 file format - 3d math and quaternions
« Reply #1 on: August 11, 2008, 02:58:05 pm »

In Anim8or, the quaternion is in the order of (x,y,z,w).  See the scripting reference page and the anim8or file specification for more information.
Logged