Mesh File
The mesh file must be in the same .m format as all our previous programs.
It must also be aligned with the inputed skeleton, otherwise it will not work
properly (this includes scale). Additionally, the .m format was modified to
make materials easier. A Material line was added that is as follows:
"Material index+1 {ambient values} {diffuse values} {specular values} shininess value".
The end of each Face line includes index+1 matching the index+1 to these materials.
Skeleton File
Joints are specified with points in world coordinates, followed by bones
that specify its 2 joints and a min x, max x, min y and max y value. These
values are used to match mesh vertices with the bone. Z values on the mesh are
ignored. Following the bones are all the animations which are a list of
rotations and all necessary values. The skeleton format allows an arbitrary
axis, not just a particular bone for an axis, but the GUI does not allow this
functionality (however it is supported in reading in the file).