CMDL (Tropical Freeze): Difference between revisions

>Aruki
No edit summary
>Aruki
Line 21: Line 21:
{| class="wikitable"
{| class="wikitable"
! Offset
! Offset
! Size
! Type
! Description
! Count
! Name
! Notes
|-
|-
| 0x0
| 0x0
| 24
| [[Chunk Descriptor (Tropical Freeze)|Chunk Descriptor]]
| '''"HEAD" [[Chunk Descriptor (Tropical Freeze)|Chunk Descriptor]]
| 1
| '''HEAD Chunk Descriptor'''
| Chunk ID is <code>HEAD</code>
|-
|-
| 0x18
| 0x18
| 4
| u32
| {{unknown|'''Unknown'''}}
| 1
| {{unknown}}
|
|-
|-
| 0x1C
| 0x1C
| 4
| u32
| {{unknown|'''Unknown'''}}
| 1
| {{unknown}}
|
|-
|-
| 0x20
| 0x20
| 4
| u32
| {{unknown|'''Unknown'''}}
| 1
| {{unknown}}
|
|-
|-
| 0x24
| 0x24
| 4
| u32
| {{unknown|'''Unknown'''}}
| 1
| {{unknown}}
|
|-
|-
| 0x28
| 0x28
| 4
| u32
| {{unknown|'''Unknown'''}}
| 1
| {{unknown}}
|
|-
|-
| 0x2C
| 0x2C
| 24
| {{AABox}}
| '''Axis-aligned bounding box'''
| 1
| '''Model Bounding Box'''
|
|-
|-
| 0x30
| 0x44
| 4
| u32
| '''Extra data flag'''
| 1
| '''Model Data Source Count'''
|
|-
| 0x48
| [[#Model Data Source|Model Data Source]]
| ''Model Data Source Count''
| '''Model Data Source Array'''
|
|}
 
==== Model Data Source ====
 
{| class="wikitable"
! Offset
! Type
! Name
! Notes
|-
| 0x0
| u32
| '''Model Data Source Type'''
| Controls the type of data present in this data source. Valid values are 0, 1, 2, or 3.
|-
| 0x4
| {{none}}
| '''Model Data Source Data'''
| Structure and size varies depending on ''Model Data Source Type''. See below.
|}
 
===== Type 0: UV Animation =====
 
{{todo|Needs research. The loader function doesn't reveal much because the game just loads all the data into a couple big buffers.}}
 
===== Type 1: Wind =====
 
{| class="wikitable"
! Type
! Count
! Name
! Notes
|-
| u32
| 1
| '''Wind Set Count'''
| Count of Wind Set elements in the next array.
|-
| [[#Wind Set|Wind Set]]
| ''Wind Set Count''
| '''Wind Set Array'''
|
|-
| u32
| 1
| {{unknown|Unknown Count}}
|
|-
| u8
| ''Unknown Count''
| {{unknown|Unknown Data}}
|
|}
|}


If the ending flag is 1, then a large chunk of extra data follows before the next section begins; otherwise, the HEAD section ends.
====== Wind Set ======
 
{| class="wikitable"
! Offset
! Type
! Name
! Notes
|-
| 0x0
| {{Vector3f}}
| {{unknown}}
|
|-
| 0xC
| {{Vector3f}}
| {{unknown}}
|
|-
| 0x18
| float
| {{unknown}}
|
|-
| 0x1C
| colspan=3 {{unknown|End of Wind Set}}
|}
 
===== Type 2: Caustic =====
 
{| class="wikitable"
! Type
! Count
! Name
! Notes
|-
| u32
| 1
| {{unknown|Unknown Count}}
|
|-
| u32
| ''Unknown Count''
| {{unknown|Unknown Array}}
|
|}
 
===== Type 3: Fur =====
 
{| class="wikitable"
! Type
! Count
! Name
! Notes
|-
| u32
| 1
| {{unknown|Unknown Count A}}
|
|-
| float
| ''Unknown Count A''
| {{unknown|Unknown Array A}}
|
|-
| u32
| 1
| {{unknown|Unknown Count B}}
|
|-
| float
| ''Unknown Count B''
| {{unknown|Unknown Array B}}
|
|-
| u32
| 1
| {{unknown|Unknown Count C}}
|
|-
| float
| ''Unknown Count C''
| {{unknown|Unknown Array C}}
|
|}


=== Skinned Model Header ===
=== Skinned Model Header ===
Anonymous user