EvilEngine/WIRE: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10:
{{AutoAssetInfobox}}
 
'''WIRE''' defines a wireframe model. Each wireframe data is stored in mnui.hip whereas loaded during the loading screens for The Incredibles. The amount of verticies start at 0x14.
 
==Format==
'''zWireframeAsset'''
<pre>
{| class="wikitable"
struct WireframeData
|-
{
! Offset !! Type !! Variable !! Description
unsigned int totalFileSize;
|-
unsigned int vertexAmount;
| 0x00 || uint || '''size''' || Total file size.
unsigned int lineAmount;
|-
unsigned int hashID;
| 0x04 || uint || '''vertexCount''' ||
unsigned int hashID2;
|-
Vector3[vertexAmount] vertices;
| 0x08 || uint || '''lineCount''' ||
Line[lineAmount] lines
|-
};
| 0x0C || uint || '''hashID''' ||
</pre>
|-
<pre>
| 0x10 || uint || '''hashID2''' ||
struct Line
|-
{
| 0x14 || [[Vector3]][vertexCount] || '''vertices''' ||
unsigned short vertex0;
|-
unsigned short vertex1;
| || zWireframeLine*[lineCount] || '''lines''' ||
};
|}
</pre>
 
'''zWireframeLine'''
{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || short || '''start''' ||
|-
| 0x02 || short || '''end''' ||
|}
 
{{Assets}}
2,079

edits