View Single Post
Old 01-30-07, 07:04 AM   #12
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Block 01 (3d object ) structure

01000000 block type dword
00000000 block subtype dword
00000000 block size dword
XXXXXXXXXXXXXXXX ID int64
XX unknown 1 Byte
number of vertex dword
then cames vertex data: 3 floats (x,y,z) repeats number of vertex times
number of faces dword
faces data : vertices (3 x word) ;texture coords 3x word; face material byte
The above values references index from the vertex/texture coords arrays.
number of texture coordinates dword
texture coordinates u,v float repeats number of texture coordinates
sometimes here cames a TMAP chunk (don't know what it is) I just skip it.

Ref
__________________
ref is offline   Reply With Quote