Hey all. I'm working on an
object exporter for AppGameKit for use in Milkshape3d. Here's my progress so far:
Object
{
RightHand { 1 }
Name { "Box01" }
VertexCount { 8 }
VertexAttrib
{
Name { "position" }
Type { "Float" }
Components { 3 }
Normalize { "no" }
Data
{
-7.77778,7.43308,5.46046,
-7.77778,-8.12248,5.46046,
7.77778,7.43308,5.46046,
7.77778,-8.12248,5.46046,
7.77778,7.43308,-4.2062,
7.77778,-8.12248,-4.2062,
-7.77778,7.43308,-4.2062,
-7.77778,-8.12248,-4.2062
}
}
VertexAttrib
{
Name { "normal" }
Type { "Float" }
Components { 9 }
Normalize { "no" }
Data
{
0,0,1,
0,0,1,
0,0,1,
0,0,1,
0,0,1,
0,0,1,
1,0,0,
1,0,0,
1,0,0,
1,0,0,
1,0,0,
1,0,0,
0,0,-1,
0,0,-1,
0,0,-1,
0,0,-1,
0,0,-1,
0,0,-1,
-1,0,0,
-1,0,0,
-1,0,0,
-1,0,0,
-1,0,0,
-1,0,0,
0,1,0,
0,1,0,
0,1,0,
0,1,0,
0,1,0,
0,1,0,
0,-1,0,
0,-1,0,
0,-1,0,
0,-1,0,
0,-1,0,
0,-1,0
}
}
VertexAttrib
{
Name { "uv" }
Type { "Float" }
Components { 6 }
Normalize { "no" }
Data
{
0,0,
0,1,
1,0,
0,1,
1,1,
1,0,
0,0,
0,1,
1,0,
0,1,
1,1,
1,0,
0,0,
0,1,
1,0,
0,1,
1,1,
1,0,
0,0,
0,1,
1,0,
0,1,
1,1,
1,0,
0,0,
0,1,
1,0,
0,1,
1,1,
1,0,
0,0,
0,1,
1,0,
0,1,
1,1,
1,0
}
}
IndexCount { "36" }
Indices
{
2.122e-314,9.88131e-324,
6.36599e-314,9.88131e-324,
6.36599e-314,1.97626e-323,
1.061e-313,1.97626e-323,
1.061e-313,2.96439e-323,
1.4854e-313,2.96439e-323,
1.4854e-313,0,
2.122e-314,0,
2.96439e-323,1.97626e-323,
4.24399e-314,1.97626e-323,
1.4854e-313,1.4822e-323,
1.061e-313,1.4822e-323
}
}
That's for a simple cube. Unfortunately. I'm not entirely sure what some of these values should be, and milkshape3d sdk is not exactly easy to figure out.
I need some help guys

Does anyone know of a good reference for the ms3d sdk? Also, a good reference on some 3d fundementals... Like, what on earth is an Index... is it a single triangle? Also, milkshape seems to want to give me 9 normals per face. But the example from TGC seems to want 3 normals per face. Anyone know how I can find some more info on what exactly, at a basic level, everything is calculated. Is it 1 u and 1 v coordinate for every vertex? Etc...
For your guy's reference, I've zipped and included the full source code of my project and a compiled dll which you can copy over to milkshape and export using "AGK Object Exporter". It was compiled using visual studio 2008 pro.