EvilEngine/WIRE: Difference between revisions
Content added Content deleted
Battlepedia>Igorseabra4 No edit summary |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> |
|||
{{AssetInfobox |
|||
{{#vardefine:typeid|WIRE}}<nowiki/> |
|||
|subtitle=Wireframe Model |
|||
{{#vardefine:name|Wireframe}}<nowiki/> |
|||
|type=[[Binary]] |
|||
{{#vardefine:type|[[Binary]]}}<nowiki/> |
|||
|games=The Incredibles<br>Rise of the Underminer}} |
|||
{{#vardefine:basetype|}}<nowiki/> |
|||
{{#vardefine:games|Incredibles ROTU}}<nowiki/> |
|||
{{#vardefine:sourcecode|}}<nowiki/> |
|||
{{#vardefine:image|}}<nowiki/> |
|||
</onlyinclude> |
|||
{{AutoAssetInfobox}} |
|||
'''WIRE''' defines a wireframe model. Each wireframe data is stored in mnui.hip whereas loaded during the loading screens for The Incredibles |
'''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> |
|||
<source lang=cpp> |
|||
struct WireframeData |
|||
class zWireframeAsset |
|||
{ |
{ |
||
public: |
|||
⚫ | |||
unsigned int |
unsigned int size; |
||
unsigned int |
unsigned int vertexCount; |
||
unsigned int |
unsigned int lineCount; |
||
zWireframeVertex* vertices; |
|||
⚫ | |||
zWireframeLine* lines; |
|||
Vector3[vertexAmount] vertices; |
|||
Line[lineAmount] lines |
|||
}; |
}; |
||
</ |
</source> |
||
<pre> |
|||
{| class="wikitable" |
|||
struct Line |
|||
|- |
|||
! 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=== |
|||
<source lang=cpp> |
|||
class zWireframeVertex |
|||
{ |
{ |
||
public: |
|||
unsigned short vertex0; |
|||
float x; |
|||
float y; |
|||
float z; |
|||
}; |
}; |
||
</ |
</source> |
||
{| class="wikitable" |
|||
|- |
|||
! Offset !! Type !! Variable !! Description |
|||
|- |
|||
| 0x00 || [[Vector3]] || '''xyz''' || Position |
|||
|} |
|||
===zWireframeLine=== |
|||
<source lang=cpp> |
|||
class zWireframeLine |
|||
{ |
|||
public: |
|||
⚫ | |||
⚫ | |||
}; |
|||
</source> |
|||
{| class="wikitable" |
|||
|- |
|||
! Offset !! Type !! Variable !! Description |
|||
|- |
|||
| 0x00 || u16 || '''start''' || |
|||
|- |
|||
| 0x02 || u16 || '''end''' || |
|||
|} |
|||
{{Assets}} |
|||
{{AutoGameNavs}} |
|||
[[Category:Asset]] |
Latest revision as of 18:27, 24 March 2024
WIRE | |
---|---|
Wireframe | |
Type | Binary |
Games used | The 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 |