User Tools

Site Tools


banjo_tooie:model_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
banjo_tooie:model_data [2020/04/22 21:47]
pfedak Describe more model setup fields
banjo_tooie:model_data [2024/02/29 04:24] (current)
BanjoFreak64 [Header]
Line 22: Line 22:
 | 0x00000038 | [<color aqua>ll ll ll ll</​color>​] | Vertex Normals | | 0x00000038 | [<color aqua>ll ll ll ll</​color>​] | Vertex Normals |
 | 0x00000044 | [<color red>nn nn</​color>​ <color limegreen>​oo oo</​color>​] | nnnn= Tri count, oooo= vert count | | 0x00000044 | [<color red>nn nn</​color>​ <color limegreen>​oo oo</​color>​] | nnnn= Tri count, oooo= vert count |
-''​*Geo Types: 0000=normal,​ 0002= Trilinear MipMapping (RGBA16), 0004=Env mapping''​+| 0x00000048 | [00 00 00 00] | ? | 
 +| 0x0000004C | [00 00 00 00] | ? | 
 +''​*Geo Types: 0000=normal,​ 0002= Trilinear MipMapping (RGBA16), 0004=Env mapping, 0010=?''​
  
 ---- ----
Line 74: Line 76:
 ==== Effects Setup ==== ==== Effects Setup ====
 ^ Offset from Setup Start ^ Value/​Syntax ^ Description ^ ^ Offset from Setup Start ^ Value/​Syntax ^ Description ^
-| 0x00000000 | [<color red>aa aa</​color>​ | Effect Count |+| 0x00000000 | [<color red>aa aa</​color>​| Effect Count |
 | 0x0000002 | [<color limegreen>​bb bb</​color>​ <color aqua>cc cc</​color>​] | <color limegreen>​bbbb</​color>​=Effect ID, <color aqua>​cccc</​color>​=Effect Vertex Count| | 0x0000002 | [<color limegreen>​bb bb</​color>​ <color aqua>cc cc</​color>​] | <color limegreen>​bbbb</​color>​=Effect ID, <color aqua>​cccc</​color>​=Effect Vertex Count|
 | 0x0000006 | [<color orange>​dd dd</​color>​ <color purple>​ee ee</​color>​] | <color orange>​dddd</​color>,​ <color purple>​eeee</​color>​...=Effect Vertex Index List | | 0x0000006 | [<color orange>​dd dd</​color>​ <color purple>​ee ee</​color>​] | <color orange>​dddd</​color>,​ <color purple>​eeee</​color>​...=Effect Vertex Index List |
Line 111: Line 113:
 | 0x00000000 | [<color red>aa aa</​color>​ <color limegreen>​bb bb</​color>​] | <color red>​aaaa</​color>​=Has Norms, <color limegreen>​bbbb</​color>​=Entry Count | | 0x00000000 | [<color red>aa aa</​color>​ <color limegreen>​bb bb</​color>​] | <color red>​aaaa</​color>​=Has Norms, <color limegreen>​bbbb</​color>​=Entry Count |
 ^ Offset From Entry Start ^ ^ ^ ^ Offset From Entry Start ^ ^ ^
-| 0x00000000 | [<color red>cc cc</​color>​ <color limegreen>​dd dd</​color>​ <color aqua>ee ee</​color>​] | <color red>​cccc</​color>​=Bone ID, <color limegreen>​dddd</​color>​=Offset ​Count, <color aqua>​eeee</​color>​=Normal Count | +| 0x00000000 | [<color red>cc cc</​color>​ <color limegreen>​dd dd</​color>​ <color aqua>ee ee</​color>​] | <color red>​cccc</​color>​=Bone ID, <color limegreen>​dddd</​color>​=Position ​Count, <color aqua>​eeee</​color>​=Normal Count | 
-| 0x00000006 | [<color red>xx xx</​color>​ <color limegreen>​yy yy</​color>​ <color aqua>zz zz</​color>​] | Vertex ​Offset from Bone |+| 0x00000006 | [<color red>xx xx</​color>​ <color limegreen>​yy yy</​color>​ <color aqua>zz zz</​color>​] | Vertex ​Position (in bone space) ​|
 | ... | | | | ... | | |
-| 0x6 + 6*Offset Count | [<color red>​xx</​color>​ <color limegreen>​yy</​color>​ <color aqua>​zz</​color>​ 00] | Vertex Normal (in bone space) |+| 0x6 + 6*Positions ​| [<color red>​xx</​color>​ <color limegreen>​yy</​color>​ <color aqua>​zz</​color>​ 00] | Vertex Normal (in bone space) |
 | ... | | | | ... | | |
-| 0x6 + 6*Offsets ​+ 4*Normals | [<color orange>​ee ee</​color>​ <color purple>​ff ff</​color>​] | <color orange>​eeee</​color>,​ <color purple>​ffff</​color>,​...=Vertex IDs |+| 0x6 + 6*Positions ​+ 4*Normals | [<color orange>​ee ee</​color>​ <color purple>​ff ff</​color>​] | <color orange>​eeee</​color>,​ <color purple>​ffff</​color>,​...=Vertex IDs |
  
-Each vertex is assumed to have its own normal, but some share positions. ​An id of -1 in the list indicates  +Each vertex is assumed to have its own normal, but some share positions. ​The initial vertices are assigned the first position, then an ID of -1 in the list indicates  
-that the following vertices should use the next position in the list, and an id of -2 indicates the end.+that the following vertices should use the next position in the list, and -2 indicates the end.
 Thus there are (Normal Count) + (Offset Count) entries in the ID list, including the negative values. Thus there are (Normal Count) + (Offset Count) entries in the ID list, including the negative values.
  
banjo_tooie/model_data.1587592055.txt.gz · Last modified: 2020/04/22 21:47 by pfedak