.ZMD Model (strange header...)

Post questions about game models here, or help out others!
Post Reply
Rubix
ultra-n00b
Posts: 2
Joined: Sat Apr 21, 2007 2:00 pm

.ZMD Model (strange header...)

Post by Rubix » Sat Apr 21, 2007 9:19 pm

figured it out :D
big thanks to alera!!
Last edited by Rubix on Sat Jun 16, 2007 3:29 am, edited 2 times in total.

User avatar
alera
advanced
Posts: 71
Joined: Fri Oct 06, 2006 2:33 am
Has thanked: 14 times
Been thanked: 5 times

Post by alera » Fri Apr 27, 2007 9:36 pm

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

Rubix
ultra-n00b
Posts: 2
Joined: Sat Apr 21, 2007 2:00 pm

Post by Rubix » Thu May 10, 2007 7:29 am

Wow, I'm confused @_@
alera, I pmed you

Post Reply