Okay, this may be a stupid newbie question but I am trying to make a very, very simple level editor that will export to the .x format, I've read numerous 'spec sheets' and SDK documents, I can get the following output (click on view code) and it opens in Quick3D Viewer and JTEdit but when I load it in DBC I can't find the object, any possible solutions?
edit
I feel quite stupid to admit this but all that I needed was to add the proper precision (i.e. 32 bits) which in this case was a .000000 to the number. Although it would load into other DirectX applications like JTEdit using no decimal point DB seems to require it.
xof 0303txt 0032
Header {
1;
0;
1;
}
Frame Level
{
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 Cube1 {
24; //24 verts
16;0;50;,
31;0;50;,
16;50;50;,
31;50;50;,
31;0;50;,
31;0;150;,
31;50;50;,
31;50;150;,
31;0;150;,
16;0;150;,
31;50;150;,
16;50;150;,
16;0;150;,
16;0;50;,
16;50;150;,
16;50;50;;
16;50;50;,
31;50;50;,
16;50;150;,
31;50;150;,
31;0;50;,
16;0;50;,
31;0;150;,
16;0;150;;
12; //faces
3;0,2,1;,
3;2,3,1;,
3;4,6,5;,
3;6,7,5;,
3;8,10,9;,
3;10,11,9;,
3;12,14,13;,
3;14,15,13;,
3;16,18,17;,
3;18,19,17;,
3;20,22,21;,
3;22,23,21;;
MeshNormals {
6;
0.000000;0.000000;-1.000000;,
1.000000;0.000000;0.000000;,
0.000000;0.000000;1.000000;,
-1.000000;0.000000;0.000000;,
0.000000;1.000000;0.000000;,
0.000000;-1.000000;0.000000;;
12;
3;0,0,0;,
3;0,0,0;,
3;1,1,1;,
3;1,1,1;,
3;2,2,2;,
3;2,2,2;,
3;3,3,3;,
3;3,3,3;,
3;4,4,4;,
3;4,4,4;,
3;5,5,5;,
3;5,5,5;;
}
MeshTextureCoords
{
24;
0.000000;1.000000;,
1.000000;1.000000;,
0.000000;0.000000;,
1.000000;0.000000;,
0.000000;1.000000;,
1.000000;1.000000;,
0.000000;0.000000;,
1.000000;0.000000;,
0.000000;1.000000;,
1.000000;1.000000;,
0.000000;0.000000;,
1.000000;0.000000;,
0.000000;1.000000;,
1.000000;1.000000;,
0.000000;0.000000;,
1.000000;0.000000;,
0.000000;1.000000;,
1.000000;1.000000;,
0.000000;0.000000;,
1.000000;0.000000;,
0.000000;1.000000;,
1.000000;1.000000;,
0.000000;0.000000;,
1.000000;0.000000;;
}
}
}