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

texel

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Question about the .an8 file format (weights {)
« on: March 19, 2009, 09: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

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Re: Question about the .an8 file format (weights {)
« Reply #1 on: March 20, 2009, 04: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: 80
    • View Profile
Re: Question about the .an8 file format (weights {)
« Reply #2 on: March 20, 2009, 08:24:21 am »

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