Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

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

ncoda

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

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: 162
    • View Profile
Re: an8 file format - 3d math and quaternions
« Reply #1 on: August 11, 2008, 10:58:05 am »

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