CLYT format: Difference between revisions
|  Section added about USD1 panes |  Update some descriptions based on disassembly of TwlBgMenu | ||
| Line 18: | Line 18: | ||
| |0x0C||0x4||UInt32||File Size | |0x0C||0x4||UInt32||File Size | ||
| |- | |- | ||
| |0x10|| | |0x10||0x2||UInt16||Nr Sections | ||
| |- | |||
| |0x12||0x2||UInt16||Padding | |||
| |} | |} | ||
| Line 132: | Line 134: | ||
| |- | |- | ||
| |11||Use Texture Only | |11||Use Texture Only | ||
| |} | |} | ||
| |} | |} | ||
| Line 190: | Line 184: | ||
| |} | |} | ||
| TODO:  | === Texture Coordinate Generation Entry === | ||
| {| class="wikitable" border="1" | |||
| |- | |||
| !  Offset | |||
| !  Size | |||
| !  Type | |||
| !  Description | |||
| |- | |||
| |0x00||0x1||UInt8||Type | |||
| {| class="wikitable" border="1" | |||
| |- | |||
| !  Value | |||
| !  Meaning | |||
| |- | |||
| |0||2x4 matrix | |||
| |} | |||
| |- | |||
| |0x08||0x1||UInt8||Source (N = Tex N, max 2) | |||
| |- | |||
| |0x0C||0x2||UInt8[]||Padding | |||
| |} | |||
| TODO: tevStage, alphaCompare, blendMode, etc... | |||
| == pan1 (Pane 1) == | == pan1 (Pane 1) == | ||
| Line 221: | Line 237: | ||
| |0x0A||0x1||UInt8||Alpha | |0x0A||0x1||UInt8||Alpha | ||
| |- | |- | ||
| |0x0B||0x1||UInt8|| | |0x0B||0x1||UInt8||Padding | ||
| |- | |- | ||
| | | |0x0C||0x10||String||Pane name | ||
| | | |||
| |- | |- | ||
| | | |0x1C||0x8||String||Data | ||
| |- | |- | ||
| |0x24||0xC||Vector3||Translation | |0x24||0xC||Vector3||Translation | ||
| Line 280: | Line 289: | ||
| == bnd1 (Bounding 1) == | == bnd1 (Bounding 1) == | ||
| Same data structure as [[#pan1 (Pane 1)|Panes]]. | |||
| == pas1 (Pane Start 1) == | == pas1 (Pane Start 1) == | ||
| Starts a pane. | Starts a pane. | ||
| Line 409: | Line 395: | ||
| | 0x4 || 0x4 || UInt32 || Value: offset (from start of this entry) to a value (type decided by last field) | | 0x4 || 0x4 || UInt32 || Value: offset (from start of this entry) to a value (type decided by last field) | ||
| |- | |- | ||
| | 0x8 ||  | | 0x8 || 0x2 || UInt16 || Amount or, if a string, the length of the value(s)   | ||
| |- | |- | ||
| |  | | 0xA || 0x2 || UInt16 || Value type | ||
| {| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| |- | |- | ||
| ! Value | ! Value | ||
| ! Type | |||
| |- | |||
| | 0x0 || String | |||
| |- | |- | ||
| |  | | 0x1 || Int | ||
| |- | |- | ||
| |  | | 0x2 || Float | ||
| |} | |} | ||
| |} | |||
| ==Tools== | ==Tools== | ||