EvilEngine/WIRE: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:


==Format==
==Format==
'''zWireframeAsset'''
===zWireframeAsset===
<source lang=cpp>
class zWireframeAsset
{
public:
unsigned int size;
unsigned int vertexCount;
unsigned int lineCount;
zWireframeVertex* vertices;
zWireframeLine* lines;
};
</source>

{| class="wikitable"
{| class="wikitable"
|-
|-
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || uint || '''size''' || Total file size.
| 0x00 || u32 || '''size''' || Total file size.
|-
|-
| 0x04 || uint || '''vertexCount''' ||
| 0x04 || u32 || '''vertexCount''' ||
|-
|-
| 0x08 || uint || '''lineCount''' ||
| 0x08 || u32 || '''lineCount''' ||
|-
|-
| 0x0C || uint || '''hashID''' ||
| 0x0C || u32 || '''hashID''' ||
|-
|-
| 0x10 || uint || '''hashID2''' ||
| 0x10 || u32 || '''hashID2''' ||
|-
|-
| 0x14 || [[Vector3]][vertexCount] || '''vertices''' ||
| || zWireframeVertex*[vertexCount] || '''vertices''' ||
|-
|-
| || zWireframeLine*[lineCount] || '''lines''' ||
| || zWireframeLine*[lineCount] || '''lines''' ||
|}
|}


===zWireframeVertex===
'''zWireframeLine'''
<source lang=cpp>
class zWireframeVertex
{
public:
float x;
float y;
float z;
};
</source>

{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[Vector3]] || '''xyz''' || Position
|}

===zWireframeLine===
<source lang=cpp>
class zWireframeLine
{
public:
unsigned short start;
unsigned short end;
};
</source>

{| class="wikitable"
{| class="wikitable"
|-
|-
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || short || '''start''' ||
| 0x00 || u16 || '''start''' ||
|-
|-
| 0x02 || short || '''end''' ||
| 0x02 || u16 || '''end''' ||
|}
|}



Latest revision as of 18:27, 24 March 2024

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

class zWireframeAsset
{
public:
    unsigned int size;
    unsigned int vertexCount;
    unsigned int lineCount;
    zWireframeVertex* vertices;
    zWireframeLine* lines;
};
Offset Type Variable Description
0x00 u32 size Total file size.
0x04 u32 vertexCount
0x08 u32 lineCount
0x0C u32 hashID
0x10 u32 hashID2
zWireframeVertex*[vertexCount] vertices
zWireframeLine*[lineCount] lines

zWireframeVertex

class zWireframeVertex
{
public:
    float x;
    float y;
    float z;
};
Offset Type Variable Description
0x00 Vector3 xyz Position

zWireframeLine

class zWireframeLine
{
public:
    unsigned short start;
    unsigned short end;
};
Offset Type Variable Description
0x00 u16 start
0x02 u16 end