User Tools

Site Tools


banjo_kazooie:geometry_layouts

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
Next revision Both sides next revision
banjo_kazooie:geometry_layouts [2018/05/09 20:39]
trenavix [0x03: LOAD DL]
banjo_kazooie:geometry_layouts [2019/12/12 18:52]
pfedak skinning geo layout
Line 2: Line 2:
  
 These scripts load display lists within the [[banjo_kazooie:​model_data|model file]], with certain aspects, properties, and checks applied. They are found at the end of a model file. These scripts load display lists within the [[banjo_kazooie:​model_data|model file]], with certain aspects, properties, and checks applied. They are found at the end of a model file.
 +
 +==== 0x01: SORT ==== 
 +
 +Runs one or both child geometry layouts, sorting based on positions. If vectors are u and v, run first child first if (v-u).u >= 0. Used to depth sort translucent geometry. ​
 +Usage:
 +^ Value/​Syntax ^ Description ^
 +| [00 00 00 01] | Sort Command ID |
 +| [00 00 <color #​ff7f27>​aa aa</​color>​] | Continue* |
 +| [<color darkred>​xx xx xx xx</​color>​] | first child x (float) |
 +| [<color darkgreen>​yy yy yy yy</​color>​] | first child y (float) |
 +| [<color darkblue>​zz zz zz zz</​color>​] | first child z (float) |
 +| [<color darkred>​xx xx xx xx</​color>​] | second child x (float) |
 +| [<color darkgreen>​yy yy yy yy</​color>​] | second child y (float) |
 +| [<color darkblue>​zz zz zz zz</​color>​] | second child z (float) |
 +| [00 <color #​b5e61d>​bb</​color>​ <color purple>​cc cc</​color>​] | if <color #​b5e61d>​bb</​color>&​1,​ draw only nearer child; <color purple>​cc cc</​color>​=first child offset |
 +| [00 00 <color darkred>​dd dd</​color>​] | second child offset |
 +----
  
 ==== 0x02: BONE ====  ==== 0x02: BONE ==== 
Line 32: Line 49:
 ---- ----
  
-==== 0x05: BONE ====+==== 0x05: SKINNING ​====
  
-Usage currently unknown.+Draw triangles across bones. ​Usage
 + 
 +^ Value/​Syntax ^ Description ^ 
 +| [00 00 00 05] | Skinning Command ID | 
 +| [00 00 <color darkred>​aa aa</​color>​] | Continue* | 
 +| [<color darkgreen>​bb bb</​color>​ <color darkblue>​cc cc</​color>​] | <color darkgreen>​bb bb</​color>​=DL segment offset, sets up vertics on previous bone | 
 +| [<color purple>​dd dd</​color>​ <color #​b5e61d>​ee ee</​color>​] | <color darkblue>​cc cc</​color>,​ <color purple>​dd dd</​color>,​ <color #​b5e61d>​ee ee</​color>,​ ...=zero-terminated list of DL offsets for current bone, using setup vertices |
  
 ---- ----
banjo_kazooie/geometry_layouts.txt · Last modified: 2023/08/27 21:10 by minirop