MREA (File Format): Difference between revisions

no edit summary
imported>Antidote
No edit summary
imported>Antidote
No edit summary
Line 3: Line 3:
__TOC__
__TOC__


==Universal Header==
=Universal Header=


This header is shared between Metroid Prime and Donkey Kong Country, and is fairly straight forward.
This header is shared between Metroid Prime and Donkey Kong Country, and is fairly straight forward.
Line 54: Line 54:
|}
|}


=Metroid Prime 3 & Donkey Kong Header=


Metroid Prime 3 and Donkey Kong Country Returns share the same header, also Metroid Prime 2 contains the Compressed Block Count present in this header as well.
{| class="wikitable"
!Offset
!Size
!Description
|-
|0x0
|4
|'''Compressed Block Count''' ''Note: Present in Metroid Prime 2''
|0x4
|'''Section Number Count''' ''Note: see below''
|}


==Metroid Prime Section Numbers==
=Section Numbers=


Immediately following the header each section in an MREA is given it's own number, the following is the order in which they appear:
===Metroid Prime 1 and 2===
 
In metroid Prime 1 and 2 Immediately following the header each section in an MREA is given it's own number, the following is the order in which they appear:


{|class="wikitable"
{|class="wikitable"
Line 86: Line 102:
|}
|}


==Metroid Prime 3 & Donkey Kong Header==
===Metroid Prime 3 and Donkey Kong Country Returns===


Metroid Prime 3 and Donkey Kong Country Returns share the same header, also Metroid Prime 2 contains the Compressed Block Count present in this header as well.
Metroid Prime 3 and Donkey Kong Country Returns does it differently, and it is also preceded by the compressed blocks, each section is designated in the following:


<code>let N=Section Number Count</code>
{| class="wikitable"
{| class="wikitable"
!Offset
!Type
!Size
!Description
|-
|FourCC
|Section type
|-
|Long
|Section Number
|}
 
Repeat <code>N</code> times, one for each section, and the sections sections are associated with the following FourCC values:
 
 
{|class="wikitable"
!FourCC
!Description
!Description
|-
|-
|0x0
|AABB
|4
|Axis Aligned Bounding Boxes
|'''Compressed Block Count''' ''Note: Present in Metroid Prime 2''
|-
|0x4
|APTL
|'''Section Number Count''' ''Note: see below''
|{{unknown|Unknown}}
|-
|COLI
|Collision
|-
|DEPS
|Dependencies
|-
|EGMC
|{{unknown|Unknown}
|-
|GPUD
|Submesh data, e.g, vertices, normals, etc.
|-
|LITE
|Lights
|-
|LLTE
|{{unknown|Unknown}}
|-
|PFL2
|Path file
|-
|PVS!
|Area vis octree, used for culling unseen geometry
|-
|ROCT
|{{unknown|Unknown}}
|-
|RSOS
|Revolution Shared Objects
|-
|SOBJ
|SCLY Layer data, there can be multiple copies, but only the first is indicated.
|-
|SGEN
|{{unknown|Unknown}}
|-
|WOBJ
|Mesh Header, always 0 and there are usually two.
|}
|}
Anonymous user