This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
banjo_tooie:model_image_format [2017/10/29 10:26] cpuhacka101 |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======== Model Images ======== | ||
| - | Banjo-Tooie uses a file-system in which most resources are packed into image files throughout the ROM, and are unpacked into RAM when needed. Among these are the model files, each with their own syntax and load-lines. This page's purpose is to cover the syntax and properties of said model files. | ||
| - | |||
| - | ===== Header ===== | ||
| - | |||
| - | ^ Address ^ Value/Syntax ^ Description ^ | ||
| - | | 0x00000000 | [00 00 00 0B] | START | | ||
| - | | 0x00000004 | [<color darkred>aa aa aa aa</color>] | Geometry Layout Offset | | ||
| - | | 0x00000008 | [<color darkgreen>bb bb</color> <color darkblue>cc cc</color>] | <color darkgreen>bb</color>=Texture Setup Offset (Usually 00 50), <color darkblue>cc</color>=Geo Type* | | ||
| - | | 0x0000000C | [<color darkred>dd dd dd dd</color>] | Display List Setup Offset | | ||
| - | | 0x00000010 | [<color darkgreen>ee ee ee ee</color>] | Vertex Store Setup Offset | | ||
| - | | 0x00000014 | [00 00 00 00] | ? | | ||
| - | | 0x00000018 | [<color darkblue>ff ff ff ff</color>] | Animation Setup | | ||
| - | | 0x0000001C | [<color darkred>gg gg gg gg</color>] | Collision Setup | | ||
| - | | 0x00000020 | [00 00 00 00] | ? | | ||
| - | | 0x00000024 | [<color darkgreen>hh hh hh hh</color>] | Effects Setup | | ||
| - | | 0x00000028 | [00 00 00 00] | ? | | ||
| - | | 0x0000002C | [00 00 00 00] | ? | | ||
| - | | 0x00000030 | [00 00 00 00] | ? | | ||
| - | | 0x00000034 | [00 00 <color darkblue>ii ii</color>] | Pointer for external textures(?) | | ||
| - | | 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 | | ||
| - | ''*Geo Types: 0000=normal, 0002=?? (Bottles Mound), 0004=Env mapping'' | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ===== Texture Setup ===== | ||
| - | ^ Address ^ Value/Syntax ^ Description ^ | ||
| - | | 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) | | ||
| - | | 0x00000008 | [<color darkred>dd dd dd dd</color>] | Texture[i] segment address from texture data start | | ||
| - | | 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 | | ||
| - | ''*Types: 01=CI4, 02=CI8 04=RGBA16, 08=RGBA32, 0x10=I8,'' | ||
| - | |||
| - | ---- | ||