CMDL (Tropical Freeze): Difference between revisions
Jump to navigation
Jump to search
→Model Header
>Aruki No edit summary |
>Aruki |
||
Line 21: | Line 21: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Offset | ! Offset | ||
! | ! Type | ||
! | ! Count | ||
! Name | |||
! Notes | |||
|- | |- | ||
| 0x0 | | 0x0 | ||
| | | [[Chunk Descriptor (Tropical Freeze)|Chunk Descriptor]] | ||
| 1 | |||
| '''HEAD Chunk Descriptor''' | |||
| Chunk ID is <code>HEAD</code> | |||
|- | |- | ||
| 0x18 | | 0x18 | ||
| | | u32 | ||
| {{unknown | | 1 | ||
| {{unknown}} | |||
| | |||
|- | |- | ||
| 0x1C | | 0x1C | ||
| | | u32 | ||
| {{unknown | | 1 | ||
| {{unknown}} | |||
| | |||
|- | |- | ||
| 0x20 | | 0x20 | ||
| | | u32 | ||
| {{unknown | | 1 | ||
| {{unknown}} | |||
| | |||
|- | |- | ||
| 0x24 | | 0x24 | ||
| | | u32 | ||
| {{unknown | | 1 | ||
| {{unknown}} | |||
| | |||
|- | |- | ||
| 0x28 | | 0x28 | ||
| | | u32 | ||
| {{unknown | | 1 | ||
| {{unknown}} | |||
| | |||
|- | |- | ||
| 0x2C | | 0x2C | ||
| | | {{AABox}} | ||
| ''' | | 1 | ||
| '''Model Bounding Box''' | |||
| | |||
|- | |- | ||
| | | 0x44 | ||
| | | u32 | ||
| ''' | | 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}} | |||
| | |||
|} | |} | ||
====== 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 === |