hi,
I'm a bit confused as to how my graphics engine actually loads a model file.
Currently I'm using .x files, because that's what I was taught.
But I haven't asked the most important question, how do my graphics engine actually load a model file?
Using DirectX and the correspondent .x files, should mean that the file implements the same structural language as the D3DX graphics engine can read meaning, matrices, frames, joints etc:
FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,
0.000000,1.000000,0.000000,0.000000,
0.000000,0.000000,-1.000000,0.000000,
0.000000,0.000000,0.000000,1.000000;;
}
Frame CHEST {
FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,
0.000000,-0.038100,0.999300,0.000000,
0.000000,-0.999300,-0.038100,0.000000,
0.000000,-0.236100,2.633800,1.000000;;
}
//......
So, then I stumble on to different kinds of model files, such as .obj, .m3g, .3ds. And I've also seen some 'custom made' ones, like .mdx or .map
And now for the question:
How do I load these files into my graphics engine with the same results?
I'm assuming all different model files can be interpreted and loaded into the directx engine.