Trying to get the managed direct x tiger example to load my mesh
This is how the model reads when opened in notepad:
xof 0303txt 0032
template VertexDuplicationIndices {
<b8d65549-d7c9-4995-89cf-53a9a8b031e3>
DWORD nIndices;
DWORD nOriginalVertices;
array DWORD indices[nIndices];
}
template XSkinMeshHeader {
<3cf169ce-ff7c-44ab-93c0-f78f62d172e2>
WORD nMaxSkinWeightsPerVertex;
WORD nMaxSkinWeightsPerFace;
WORD nBones;
}
template SkinWeights {
<6f0d123b-bad2-4167-a0d0-80224f25fabb>
STRING transformNodeName;
DWORD nWeights;
array DWORD vertexIndices[nWeights];
array float weights[nWeights];
Matrix4x4 matrixOffset;
}
Frame Model11 {
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;;
}
Mesh {
78; // Number of Vertices
8.409437;6.098839;-8.409432;,
4.546160;6.098839;-10.975389;,
-10.975388;6.098839;-4.546159;,
-11.892736;6.098839;0.000000;,
0.000006;6.098839;-11.892736;,
-8.409430;6.098839;-8.409440;,
-8.409430;1.547686;-8.409440;,
-13.288773;1.547686;0.578256;,
-8.409430;-3.003468;-8.409440;,
-11.892736;-3.003468;0.000000;,
11.892736;6.098839;0.000002;,
10.975391;6.098839;-4.546154;,
-10.975391;6.098839;4.546155;,
-8.409435;6.098839;8.409434;,
-9.805470;1.547686;8.987691;,
-8.409435;-3.003468;8.409434;,
-0.000001;6.098839;11.892736;,
4.546155;6.098839;10.975390;,
1.741651;8.189684;4.204718;,
8.409434;6.098839;8.409434;,
-4.546156;6.098839;10.975389;,
-4.546156;-3.003468;10.975389;,
-0.000001;-3.003468;11.892736;,
-0.000001;1.547686;11.892736;,
8.409434;1.547686;8.409434;,
8.409434;-3.003468;8.409434;,
13.288771;1.547686;-0.578255;,
11.892736;-3.003468;0.000002;,
9.805473;1.547686;-8.987689;,
8.409437;-3.003468;-8.409432;,
0.000006;1.547686;-11.892736;,
0.000006;-3.003468;-11.892736;,
-4.546150;-3.003468;-10.975393;,
-1.741650;-5.094314;-4.204716;,
1.741651;-5.094313;4.204718;,
10.975389;-3.003468;4.546157;,
4.546160;6.098839;-10.975389;,
-10.975388;6.098839;-4.546159;,
-8.409430;6.098839;-8.409440;,
-11.892736;6.098839;0.000000;,
-8.409430;1.547686;-8.409440;,
-13.288773;1.547686;0.578256;,
10.975391;6.098839;-4.546154;,
8.409437;6.098839;-8.409432;,
-10.975391;6.098839;4.546155;,
-8.409435;6.098839;8.409434;,
-11.892736;-3.003468;0.000000;,
-9.805470;1.547686;8.987691;,
4.546155;6.098839;10.975390;,
11.892736;6.098839;0.000002;,
1.741651;8.189684;4.204718;,
-0.000001;6.098839;11.892736;,
-4.546156;6.098839;10.975389;,
-8.409435;-3.003468;8.409434;,
-4.546156;-3.003468;10.975389;,
8.409434;6.098839;8.409434;,
-0.000001;1.547686;11.892736;,
-0.000001;-3.003468;11.892736;,
8.409434;1.547686;8.409434;,
8.409434;-3.003468;8.409434;,
13.288771;1.547686;-0.578255;,
11.892736;-3.003468;0.000002;,
9.805473;1.547686;-8.987689;,
0.000006;6.098839;-11.892736;,
8.409437;-3.003468;-8.409432;,
0.000006;1.547686;-11.892736;,
0.000006;-3.003468;-11.892736;,
-8.409430;-3.003468;-8.409440;,
-8.409430;-3.003468;-8.409440;,
-11.892736;-3.003468;0.000000;,
0.000006;-3.003468;-11.892736;,
8.409437;-3.003468;-8.409432;,
-1.741650;-5.094314;-4.204716;,
1.741651;-5.094313;4.204718;,
-0.000001;-3.003468;11.892736;,
-4.546156;-3.003468;10.975389;,
8.409434;-3.003468;8.409434;,
10.975389;-3.003468;4.546157;;
28; // Number of Polys
4;0,1,2,3;,
4;36,4,5,37;,
4;38,6,7,39;,
4;40,8,9,41;,
4;10,11,12,13;,
4;42,43,39,44;,
4;39,41,14,45;,
4;41,46,15,47;,
4;16,17,18,45;,
4;48,19,49,50;,
4;51,20,21,22;,
4;52,45,53,54;,
4;51,23,24,55;,
4;56,57,25,58;,
4;55,58,26,49;,
4;58,59,27,60;,
4;49,60,28,43;,
4;60,61,29,62;,
4;43,62,30,63;,
4;62,64,31,65;,
4;63,65,40,38;,
4;65,66,67,40;,
4;68,32,33,69;,
4;32,70,71,33;,
4;61,34,72,64;,
4;73,53,46,72;,
4;74,75,35,76;,
4;75,53,61,77;;
MeshNormals {
78;
0.372763;0.849762;-0.372762;,
0.170915;0.894723;-0.412625;,
-0.412625;0.894723;-0.170915;,
-0.527166;0.849762;-0.000000;,
0.000000;1.000000;0.000000;,
0.000000;1.000000;0.000000;,
-0.707107;0.000000;-0.707107;,
-1.000000;0.000000;-0.000000;,
-0.707107;0.000000;-0.707107;,
-0.527166;-0.849762;-0.000000;,
0.527166;0.849762;0.000000;,
0.459410;0.867601;-0.190294;,
-0.459410;0.867601;0.190294;,
-0.372763;0.849762;0.372763;,
-0.707107;-0.000000;0.707107;,
-0.372763;-0.849762;0.372763;,
0.000000;1.000000;0.000000;,
0.000000;1.000000;0.000000;,
0.000000;1.000000;0.000000;,
0.000000;1.000000;0.000000;,
-0.354111;0.379146;0.854900;,
-0.354111;-0.379146;0.854900;,
0.000000;0.000000;1.000000;,
0.000000;0.000000;1.000000;,
0.707107;0.000000;0.707107;,
0.707107;0.000000;0.707107;,
1.000000;0.000000;0.000000;,
0.527166;-0.849762;0.000000;,
0.707107;0.000000;-0.707107;,
0.372763;-0.849762;-0.372763;,
0.000000;0.000000;-1.000000;,
0.000000;0.000000;-1.000000;,
0.000000;-1.000000;0.000000;,
0.000000;-1.000000;0.000000;,
0.000000;-1.000000;0.000000;,
0.412625;-0.894723;0.170915;,
0.170915;0.894723;-0.412625;,
-0.412625;0.894723;-0.170915;,
-0.707107;0.000000;-0.707107;,
-0.527166;0.849762;-0.000000;,
-0.707107;0.000000;-0.707107;,
-1.000000;0.000000;-0.000000;,
0.459410;0.867601;-0.190294;,
0.372763;0.849762;-0.372762;,
-0.459410;0.867601;0.190294;,
-0.372763;0.849762;0.372763;,
-0.527166;-0.849762;-0.000000;,
-0.707107;-0.000000;0.707107;,
0.000000;1.000000;0.000000;,
0.527166;0.849762;0.000000;,
0.000000;1.000000;0.000000;,
0.000000;0.000000;1.000000;,
-0.354111;0.379146;0.854900;,
-0.372763;-0.849762;0.372763;,
-0.354111;-0.379146;0.854900;,
0.707107;0.000000;0.707107;,
0.000000;0.000000;1.000000;,
0.000000;0.000000;1.000000;,
0.707107;0.000000;0.707107;,
0.707107;0.000000;0.707107;,
1.000000;0.000000;0.000000;,
0.527166;-0.849762;0.000000;,
0.707107;0.000000;-0.707107;,
0.000000;0.000000;-1.000000;,
0.372763;-0.849762;-0.372763;,
0.000000;0.000000;-1.000000;,
0.000000;0.000000;-1.000000;,
-0.707107;0.000000;-0.707107;,
0.000000;-1.000000;0.000000;,
-0.527166;-0.849762;-0.000000;,
0.000000;-1.000000;0.000000;,
0.372763;-0.849762;-0.372763;,
0.000000;-1.000000;0.000000;,
0.000000;-1.000000;0.000000;,
0.000000;-1.000000;0.000000;,
-0.170915;-0.894723;0.412625;,
0.000000;-1.000000;0.000000;,
0.412625;-0.894723;0.170915;;
28; // Number of Polys
4;0,1,2,3;,
4;36,4,5,37;,
4;38,6,7,39;,
4;40,8,9,41;,
4;10,11,12,13;,
4;42,43,39,44;,
4;39,41,14,45;,
4;41,46,15,47;,
4;16,17,18,45;,
4;48,19,49,50;,
4;51,20,21,22;,
4;52,45,53,54;,
4;51,23,24,55;,
4;56,57,25,58;,
4;55,58,26,49;,
4;58,59,27,60;,
4;49,60,28,43;,
4;60,61,29,62;,
4;43,62,30,63;,
4;62,64,31,65;,
4;63,65,40,38;,
4;65,66,67,40;,
4;68,32,33,69;,
4;32,70,71,33;,
4;61,34,72,64;,
4;73,53,46,72;,
4;74,75,35,76;,
4;75,53,61,77;;
}
MeshMaterialList { //Material List
2;
28;
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1;
Material { // Material
1.000000;1.000000;1.000000;1.000000;;
10.000000;
1.000000;1.000000;1.000000;;
0.000000;0.000000;0.000000;;
} // End Material
Material { // Material
1.000000;1.000000;1.000000;1.000000;;
299.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFilename {"tiger.bmp";}
} // End Material
} // End MeshMaterialList
MeshTextureCoords {
78;
0.709441;0.120831;,
0.537772;0.099083;,
0.046831;0.289442;,
0.067291;0.369821;,
0.360723;0.108371;,
0.094735;0.211506;,
0.094735;0.367342;,
0.023135;0.542778;,
0.094735;0.523177;,
0.067291;0.681492;,
0.936616;0.241586;,
0.849101;0.171099;,
0.154806;0.440308;,
0.294465;0.490577;,
0.250309;0.663534;,
0.294465;0.802248;,
0.643183;0.503036;,
0.798445;0.463305;,
0.615540;0.294489;,
0.909171;0.399901;,
0.466134;0.512325;,
0.466134;0.823996;,
0.643183;0.814707;,
0.643183;0.658872;,
0.909171;0.555737;,
0.909171;0.711572;,
0.980772;0.380301;,
0.936616;0.553257;,
0.753597;0.259545;,
0.709441;0.432502;,
0.360723;0.264206;,
0.360723;0.420042;,
0.000000;0.000000;,
0.000000;0.000000;,
0.615540;0.749345;,
0.957075;0.633636;,
0.537772;0.099083;,
0.046831;0.289442;,
0.094735;0.211506;,
0.067291;0.369821;,
0.094735;0.367342;,
0.023135;0.542778;,
0.849101;0.171099;,
0.709441;0.120831;,
0.154806;0.440308;,
0.294465;0.490577;,
0.067291;0.681492;,
0.250309;0.663534;,
0.798445;0.463305;,
0.936616;0.241586;,
0.615540;0.294489;,
0.643183;0.503036;,
0.466134;0.512325;,
0.294465;0.802248;,
0.466134;0.823996;,
0.909171;0.399901;,
0.643183;0.658872;,
0.643183;0.814707;,
0.909171;0.555737;,
0.909171;0.711572;,
0.980772;0.380301;,
0.936616;0.553257;,
0.753597;0.259545;,
0.360723;0.108371;,
0.709441;0.432502;,
0.360723;0.264206;,
0.360723;0.420042;,
0.094735;0.523177;,
0.000000;0.000000;,
0.000000;0.000000;,
0.000000;0.000000;,
0.000000;0.000000;,
0.388366;0.628589;,
0.615540;0.749345;,
0.643183;0.814707;,
0.466134;0.823996;,
0.909171;0.711572;,
0.957075;0.633636;;
}
VertexDuplicationIndices {
78; // Total Vertex Count
36; // Original Vertex Count
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
1,
2,
5,
3,
6,
7,
11,
0,
12,
13,
9,
14,
17,
10,
18,
16,
20,
15,
21,
19,
23,
22,
24,
25,
26,
27,
28,
4,
29,
30,
31,
8,
8,
9,
31,
29,
33,
34,
22,
21,
25,
35;
}
XSkinMeshHeader {
2;
4;
1;
}
SkinWeights {
"Model11";
78;
15,
14,
13,
12,
11,
10,
9,
8,
7,
6,
5,
4,
3,
2,
1,
0,
31,
30,
29,
28,
27,
26,
25,
24,
23,
22,
21,
20,
19,
18,
17,
16,
35,
34,
33,
32,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000;
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;;
}
} // End Mesh
} // End RootFrame

