I have a 3d-models from old game. They have the following structure:
Model {
List<Vertex> Vertices;
List<Bone> Bones;
}
Vertex {
// point
float x;
float y;
float z;
// normal vector
float nx;
float ny;
float nz;
// texture
float u;
float v;
// bones info
byte boneIndex1;
byte boneIndex2;
float weight;
}
Bone {
float[,] matrix = new float[4,4];
}
I want to convert models to any other format that is supported by 3D editors. I learned how to convert a mesh (to obj, fbx). But I can't convert the bones. As I understand it, a 4x4 matrix is enough to form a bone. The role of the bone index is performed by their index in the array. Unfortunately, as I understand it, there is no data on the hierarchy of bones.
I looked at various specifications of file formats, but I did not find one where the bones can be specified as a matrix.
Maybe there are some formats that support such a recording of bones in the form of matrices? Maybe I just misunderstand something and I need to look for something completely different?