Changes
Jump to navigation
Jump to search
Block data starts with General structure of a block {| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"! style="background:rgb(204,204,204)" | Offset! style="background:rgb(204,204,204)" | Length! style="background:rgb(204,204,204)" | Description|-| 0| 4 Bytes| Header|-| 4| Polygon count * polygon length (see header)| Polygons|-| Header + Polygons| Vertice count * vertice length (see header)| Vertices|-| Header + Polygons + Vertices| Normal count * normal length (see header)| Normals|-| Header + Polygons + Vertices + Normals | 4 Bytes| Padding|-|} '''Header''' (4 Bytes):
Just after header a '''polygon dataPolygon''' appears(16 bytes):
→Block data
===Block data===
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
| 2
| Byte
| Normal Vertices Normals count
|-
| 3
| Byte
| Unknown(unused)
|}
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" | Offset
|}
'''verticesVertex'''(8 bytes):
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
| 0
| short
| X vertex
|-
| 2
| short
| Z vertex
|-
| 4
| short
| Y vertex
|-
| 6
| short
| weight Weight (unused)
|}
'''NormalsNormal'''(8 bytes):
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
| 0
| short
| X normal vertex
|-
| 2
| short
| Z normal vertex
|-
| 4
| short
| Y normal vertex
|-
| 6
| short
| W normal vertex(unused)
|}