This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
banjo_tooie:model_data [2017/10/29 10:38] cpuhacka101 [Display List Setup] |
banjo_tooie:model_data [2017/11/08 20:39] (current) cpuhacka101 [Header] |
||
---|---|---|---|
Line 14: | Line 14: | ||
| 0x00000018 | [<color darkblue>ff ff ff ff</color>] | Animation Setup | | | 0x00000018 | [<color darkblue>ff ff ff ff</color>] | Animation Setup | | ||
| 0x0000001C | [<color darkred>gg gg gg gg</color>] | Collision Setup | | | 0x0000001C | [<color darkred>gg gg gg gg</color>] | Collision Setup | | ||
- | | 0x00000020 | [00 00 00 00] | ? | | + | | 0x00000020 | [<color darkgreen>hh hh hh hh</color>] | Effects Setup End Address | |
| 0x00000024 | [<color darkgreen>hh hh hh hh</color>] | Effects Setup | | | 0x00000024 | [<color darkgreen>hh hh hh hh</color>] | Effects Setup | | ||
| 0x00000028 | [00 00 00 00] | ? | | | 0x00000028 | [00 00 00 00] | ? | | ||
| 0x0000002C | [00 00 00 00] | ? | | | 0x0000002C | [00 00 00 00] | ? | | ||
| 0x00000030 | [00 00 00 00] | ? | | | 0x00000030 | [00 00 00 00] | ? | | ||
- | | 0x00000034 | [00 00 <color darkblue>ii ii</color>] | Pointer for external textures(?) | | + | | 0x00000034 | [00 00 <color darkblue>ii ii</color>] | Related to external textures??? | |
| 0x00000038 | [<color darkred>jj jj jj jj</color>] | Some animation setup offset? (Vertex clipping?) | | | 0x00000038 | [<color darkred>jj jj jj jj</color>] | Some animation setup offset? (Vertex clipping?) | | ||
| 0x00000044 | [<color darkgreen>kk kk</color> <color darkblue>ll ll</color>] | kk= Tri count, ll= vert count | | | 0x00000044 | [<color darkgreen>kk kk</color> <color darkblue>ll ll</color>] | kk= Tri count, ll= vert count | | ||
- | ''*Geo Types: 0000=normal, 0002=?? (Bottles Mound), 0004=Env mapping'' | + | ''*Geo Types: 0000=normal, 0002= Trilinear MipMapping (RGBA16), 0004=Env mapping'' |
---- | ---- | ||
===== Texture Setup ===== | ===== Texture Setup ===== | ||
- | ^ Address ^ Value/Syntax ^ Description ^ | + | ^ Offset from TexSetup Start ^ Value/Syntax ^ Description ^ |
| 0x00000000 | [<color darkred>aa aa aa aa</color>] | Amount of data in bytes to load (including command) | | | 0x00000000 | [<color darkred>aa aa aa aa</color>] | Amount of data in bytes to load (including command) | | ||
| 0x00000004 | [<color darkgreen>bb bb</color> <color darkblue>cc</color> 00] | bb=Texture Count, cc=External Textures(01y 00n) | | | 0x00000004 | [<color darkgreen>bb bb</color> <color darkblue>cc</color> 00] | bb=Texture Count, cc=External Textures(01y 00n) | | ||
- | | 0x00000008 | [<color darkred>dd dd dd dd</color>] | Texture[i] segment address from texture data start | | + | | 0x00000008 | [<color darkred>dd dd dd dd</color>] | Texture[i] segment address from texture data start OR External Texture Index* | |
- | | 0x0000000C | [00 <color darkgreen>ee</color> <color darkblue>xx</color> <color darkred>yy</color>] | Texture[i] <color darkgreen>ee</color>=type*, <color darkblue>xx</color><color darkred>yy</color>=Pixel Grid | | + | | 0x0000000C | [<color purple>ee</color> <color darkgreen>ff</color> <color darkblue>xx</color> <color darkred>yy</color>] | Texture[i] <color purple>ee</color> = 0x80 for MIP Mapping (00 otherwise), <color darkgreen>ff</color> =type*, <color darkblue>xx</color><color darkred>yy</color>=Pixel Grid | |
- | ''*Types: 01=CI4, 02=CI8 04=RGBA16, 08=RGBA32, 0x10=I8,'' | + | ''*Types: 01=CI4, 02=CI8 04=RGBA16, 08=RGBA32, 0x10=IA8,'' |
+ | <code>*External texture indices start at FileID 0x1EF6, 0 indexed. | ||
+ | |||
+ | Example: 00 00 13 28 80 04 20 20 | ||
+ | |||
+ | External texture file ID= 1EF6+1328 = 321E | ||
+ | This will load an RGBA16 32x32 mipmapped texture from FileID 0x321E.</code> | ||
---- | ---- | ||
==== Display List Setup ==== | ==== Display List Setup ==== | ||
- | ^ Address ^ Value/Syntax ^ Description ^ | + | ^ Offset from DLSetup Start ^ Value/Syntax ^ Description ^ |
| 0x00000000 | [<color darkred>aa aa aa aa</color> 00 00 00 00] | F3DEX2 Command Count | | | 0x00000000 | [<color darkred>aa aa aa aa</color> 00 00 00 00] | F3DEX2 Command Count | | ||
- | | 0x00000008 | F3DEX2 Display List | F3DEX2 Display List | | + | | 0x00000008 | [[http://wiki.origami64.net/F3DEX2|F3DEX2]] | F3DEX2 Display List | |
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Vertex Store Setup ==== | ||
+ | ^ Offset from VTXSetup Start ^ Value/Syntax ^ Description ^ | ||
+ | | 0x00000000 | [<color darkred>aa aa</color> <color darkgreen>bb bb</color> <color darkblue>cc cc</color>] | Draw distance: Negative Coords | | ||
+ | | 0x00000006 | [<color darkred>dd dd</color> <color darkgreen>ee ee</color> <color darkblue>ff ff</color>] | Draw distance: Positive Coords | | ||
+ | | 0x0000000C | [<color darkred>gg gg</color> <color darkgreen>hh hh</color>] | Object Coordinate Range | | ||
+ | | 0x00000010 | [<color darkred>jj jj</color>] | Collision range? (Enemies, Objects) | | ||
+ | | 0x00000014 | [<color darkgreen>kk kk</color>] | Collision range? (Banjo) | | ||
+ | | 0x00000016 | [<color darkblue>ll ll</color>] | Vertex Count*2 | | ||
+ | |||
+ | ---- |