CMDL (Tropical Freeze): Difference between revisions

Jump to navigation Jump to search
no edit summary
>Aruki
No edit summary
>Aruki
No edit summary
Line 58: Line 58:


If the ending flag is 1, then a large chunk of extra data follows before the next section begins; otherwise, the HEAD section ends.
If the ending flag is 1, then a large chunk of extra data follows before the next section begins; otherwise, the HEAD section ends.
=== Skinned Model Header ===
{| class="wikitable"
! Offset
! Type
! Count
! Name
! Notes
|-
| 0x0
| [[Chunk Descriptor (Tropical Freeze)|Chunk Descriptor]]
| 1
| '''SKHD Chunk Descriptor'''
| Data type is <code>SKHD</code>
|-
| 0x18
| u32
| 1
| {{unknown|Unknown}}
|
|-
| 0x1C
| colspan=5 {{unknown|End of Skinned Model Header}}
|}
=== World Model Header ===
{| class="wikitable"
! Type
! Count
! Name
! Notes
|-
| u8
| 1
| {{unknown|Unknown}}
|
|-
| [[#Render Octree|Render Octree]]
| 1
| '''Render Octree'''
|
|-
| u32
| 1
| {{unknown|Unknown AABox Count}}
|
|-
| {{AABox}}
| ''Unknown AABox Count''
| {{unknown|Unknown AABox Array}}
|
|-
| u32
| 1
| {{unknown|Unknown Float Count}}
|
|-
| float
| ''Unknown Float Count''
| {{unknown|Unknown Float Array}}
|
|}
==== Render Octree ====
This seems to be an updated version of the [[AROT (MREA Section)|AROT]] format seen in previous Retro games.
{| class="wikitable"
! Offset
! Type
! Count
! Name
! Notes
|-
| 0x0
| {{FourCC}}
| 1
| '''Magic'''
| Always <code>AROT</code> (Area Octree)
|-
| 0x4
| u32
| 1
| {{unknown}}
| Always 1. Version number?
|-
| 0x8
| u32
| 1
| {{unknown}}
|
|-
| 0xC
| u32
| 1
| {{unknown}}
|
|-
| 0x10
| u32
| 1
| {{unknown}}
|
|-
| 0x14
| {{AABox}}
| 1
| '''Octree Bounding Box'''
| Bounds of the entire octree; matches the bounding box from the main model header.
|-
| 0x2C
| u32
| 1
| {{unknown|Unknown Count A}}
|
|-
| 0x30
| u32
| ''Unknown Count A''
| {{unknown|Unknown Array A}}
|
|-
| {{none}}
| u32
| 1
| {{unknown|Unknown Count B}}
|
|-
| {{none}}
| u8
| ''Unknown Count B''
| {{unknown|Unknown Array B}}
|
|-
| {{none}}
| u32
| 1
| {{unknown|Unknown AABox Count}}
|
|-
| {{none}}
| {{AABox}}
| ''Unknown AABox Count''
| {{unknown|Unknown AABox Array}}
|
|}


=== Material Data ===
=== Material Data ===
Line 79: Line 227:
| Points to the MTRL file containing the shader for this material.
| Points to the MTRL file containing the shader for this material.
|-
|-
| char
| {{FourCC}}
| 4
| 1
| '''Material Type'''
| '''Material Type'''
| Can be <code>PHNG</code> (Phong), <code>LAMB</code> (Lambert), <code>SURF</code> (Surface), <code>FURM</code> (Fur), or <code>REFL</code> (Reflect). <code>REFL</code> may be unused.
| Can be <code>PHNG</code> (Phong), <code>LAMB</code> (Lambert), <code>SURF</code> (Surface), <code>FURM</code> (Fur), or <code>REFL</code> (Reflect). <code>REFL</code> may be unused.
Line 112: Line 260:
|-
|-
| 0x0
| 0x0
| char
| {{FourCC}}
| 4
| 1
| '''Parameter ID'''
| '''Parameter ID'''
|  
|  
Line 164: Line 312:
|-
|-
| 0x0
| 0x0
| float
| {{Color4f}}
| 4
| 1
| '''Color Value'''
| '''Color Value'''
| 4-float RGBA color value.
|  
|-
|-
| 0x10
| 0x10
Line 208: Line 356:
|-
|-
| 0x4
| 0x4
| float
| {{Color4f}}
| 4
| 1
| {{unknown|Unknown Color}}
| {{unknown|Unknown Color}}
|  
|  
|-
|-
| 0x14
| 0x14
| float
| {{Color4f}}
| 4
| 1
| {{unknown|Unknown Color}}
| {{unknown|Unknown Color}}
|  
|  
|-
|-
| 0x24
| 0x24
| float
| {{Color4f}}
| 4
| 1
| {{unknown|Unknown Color}}
| {{unknown|Unknown Color}}
|  
|  
Anonymous user

Navigation menu