Just a quick example of a different type of format for an X file to have. The difference is in how the Materials are referenced. Any suggestions on how to parse something like this welcome!
xof 0303txt 0032
Material LovelyGreenMaterial {
0.588235;0.850980;0.780392;1.000000;;
3.200000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
}
Frame Box01 {
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 {
8;
-25.000000;0.000000;-25.000000;,
25.000000;0.000000;-25.000000;,
-25.000000;0.000000;25.000000;,
25.000000;0.000000;25.000000;,
-25.000000;50.000000;-25.000000;,
25.000000;50.000000;-25.000000;,
-25.000000;50.000000;25.000000;,
25.000000;50.000000;25.000000;;
12;
3;0,3,2;,
3;3,0,1;,
3;4,7,5;,
3;7,4,6;,
3;0,5,1;,
3;5,0,4;,
3;1,7,3;,
3;7,1,5;,
3;3,6,2;,
3;6,3,7;,
3;2,4,0;,
3;4,2,6;;
MeshMaterialList {
1;
12;
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0;
{ LovelyGreenMaterial }
}
}
}