Page 1 of 1

.ZMD Model (strange header...)

Posted: Sat Apr 21, 2007 9:19 pm
by Rubix
figured it out :D
big thanks to alera!!

Posted: Fri Apr 27, 2007 9:36 pm
by alera
I don't understand the file but some of it is clear

the file seems to have more than just the box you rendered, it has 132 vertices total, and I believe some vertices are also at the top

string
{
int32 NumChars
char* string
}

at offset 639 is some sort of index, right before it is a int32 indicating the number of entries

index
{
short index entry
}

then there is one vertex for each index entry(132)
the vertex structure is as described in the first string of the file

vertex size : 64 bytes - 8448 bytes total
then there is some more floats and the name of the texture, fiel then ends

the structure that the strings lay out seem to indicate some sort of hierarchy, like a graph and its sub nodes,, so maybe the floats at the beginning of the file are the transformation matrices or something, I don't know :(

Scene_Root
{
_00
{
_Box
{
NULL // an empty node?
{
}
_Box_Obj
{
*matrix index and all that stuff*
*texture filename*
}
} // end of _Box
} // end of _00
} // End of scene root

Posted: Thu May 10, 2007 7:29 am
by Rubix
Wow, I'm confused @_@
alera, I pmed you