EvilEngine/WIRE: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
No edit summary
Line 10: Line 10:
{{AutoAssetInfobox}}
{{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.
'''WIRE''' defines a wireframe model. Each wireframe data is stored in mnui.hip whereas loaded during the loading screens for The Incredibles.


==Format==
==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}}
{{Assets}}

Revision as of 15:23, 6 September 2022

WIRE
Wireframe
TypeBinary
Games usedThe Incredibles
Rise of the Underminer

WIRE defines a wireframe model. Each wireframe data is stored in mnui.hip whereas loaded during the loading screens for The Incredibles.

Format

zWireframeAsset

Offset Type Variable Description
0x00 uint size Total file size.
0x04 uint vertexCount
0x08 uint lineCount
0x0C uint hashID
0x10 uint hashID2
0x14 Vector3[vertexCount] vertices
zWireframeLine*[lineCount] lines

zWireframeLine

Offset Type Variable Description
0x00 short start
0x02 short end