One issue I ran into is that I can't figure out how the faces are defined (well, everything except for geometry).
Take this sample from terran_drone.bod:
Code: Select all
0; 0; 2; 1; -25; 2; 0.615067; 0.063126; 0.519440; 0.142517; 0.614639; 0.123596; /! N: { 0.057968; -0.994690; -0.085007; 0.481567; -0.875534; 0.038818; 0.058350; -0.995163; -0.078827; } !/ // 0
0; # id of the material that is used for the face
0; 2; 1; # id of the vertices forming the face
These were my inital assumptions about the remaining code:
Code: Select all
-25; # no idea
2; # no idea either
0.615067; 0.063126; 0.519440; # face normals
0.142517; 0.614639; 0.123596; # uvw texture coordinates
/! N: { 0.057968; -0.994690; -0.085007; 0.481567; -0.875534; 0.038818; 0.058350; -0.995163; -0.078827; } !/ // 0 # stuff related to smoothing, not present in older bod files
Any ideas?