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: Question about the .an8 file format (weights {)  (Read 5498 times)

texel

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Question about the .an8 file format (weights {)
« on: March 19, 2009, 05:58:04 pm »

Hi,

i have a question about the .an8 file format in the weights chunk.
Example:

weights { "mesh02"
            (1 (7 1))(1 (7 1))(1 (7 1))(1 (7 1))(1 (7 1))(1 (7 1))(1 (7 1))
            (1 (7 1))(1 (7 1))(1 (7 1))
          }

mesh02 is the mesh where to find the vertex
after it seems to be for all vertices the number of bone which influence the vertex and after the bone ID and the weight for this bone.
( NbrBone ( Bone0 Weight0 ) ( Bone1 Weight1 ) ...)

But how to find which Bone ID match with which bone ? BoneID = 0 doesn't seems to be the root. 

Logged

Claude

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Re: Question about the .an8 file format (weights {)
« Reply #1 on: March 20, 2009, 12:37:22 am »

It seems to me that it makes reference to the weightedby
list:

weightedby { "bone01" }            0
weightedby { "bone02" }            1
weightedby { "bone03" }            2
weights { "mesh01"
Logged

texel

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: Question about the .an8 file format (weights {)
« Reply #2 on: March 20, 2009, 04:24:21 am »

Thanks.
I had strange files last night but today you suggestion seems to be good. Maybe i was tired :)
Logged