Hi everyone,
I'm currently trying to add md5 model support to my engine.
Till now I'm able to draw the mesh correctly.
But now, when it goes on to compute the baseframe joints, I'm running in problems. Therefore I decided to rethink the math behind it and to stop working around with the code.
I've now created an Excel/Open Office TableDoc (if anyone want's to take a look at it (I hope so) , please tell me!), wherein I can easily can change things.
My model is the Doom3's main characters head, which I've animated using MAX. The baseframe is the same as the pose in the MD5Mesh file. So I can easily compare my computed values to the ones in the mesh file.
Here some example:
md5mesh:
...
( 0 0 0 ) ( -0.4999999404 -0.5000000596 -0.5000000596 )
( 15.967792511 -0.0144653134 10.7254972458 ) ( -0.4999999404 -0.5000000596 -0.5000000596 )
( 15.9677934647 1.3034828901 10.7254972458 ) ( -0.4999999404 -0.5000000596 -0.5000000596 )
...
md5anim (baseframe)
...
( 0.0 0.0 0.0 ) ( -0.5 -0.5 -0.5 )
( -0.0144691 10.7255 15.9678 ) ( 0.0 0.000119209 0.0 )
( 1.31795 0.0 0.000953674 ) ( -0.707107 0.0 -0.707107 )
...
and my computed values:
...
( 0.0 0.0 0.0 ) ( -0.5 -0.5 -0.5 )
( 15.9678 -0.0144691 10.7255 ) ( -0.499940392 -0.500059601 -0.500059601 )
( 15.968439451 1.303481090 10.7255 ) ( 0.707106995 0.000084294 -0.000084294 )
...
Well, I don't want to post all my way of computing here, but if anyone would like it, I could do that. But I hope you decide to take a look at my Excel/Open Office TableDoc.
thanks for any help!
cu