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
banjo_kazooie:geometry_layouts [2019/12/12 18:52]
pfedak skinning geo layout
banjo_kazooie:geometry_layouts [2019/12/12 19:19] (current)
pfedak more geo layout commands
Line 61: Line 61:
 ---- ----
  
-==== 0x08: ?????? ​====+==== 0x08: LOD ====
  
-Usage currently unknown.+Runs a geometry layout if the distance from the camera is in a certain range. 
 + 
 + 
 +^ Value/​Syntax ^ Description ^ 
 +| [00 00 00 05] | Skinning Command ID | 
 +| [00 00 <color orange>​aa aa</​color>​] | Continue* | 
 +| [<color #​b5e61d>​bb bb bb bb</​color>​] | max distance (float) | 
 +| [<color #​99d9ea>​cc cc cc cc</​color>​] | min distance (float) | 
 +| [<color darkred>​xx xx xx xx</​color>​] | test position x (float) | 
 +| [<color darkgreen>​yy yy yy yy</​color>​] | test position y (float) | 
 +| [<color darkblue>​zz zz zz zz</​color>​] | test position z (float) | 
 +| [<color #​c8bfe7>​dd dd dd dd</​color>​] | geometry layout offset | 
  
 ---- ----
  
 +==== 0x0A: REFERENCE POINT ====
 +
 +Computes a point on the current model to be referenced later. Used for spawning sparkle particles and Clanker'​s teeth/bolt positions. Usage:
 +
 +
 +^ Value/​Syntax ^ Description ^
 +| [00 00 00 0A] | Reference Point Command ID |
 +| [00 00 <color orange>​aa aa</​color>​] | Continue* |
 +| [<color #​b5e61d>​bb bb</​color>​ <color purple>​cc cc</​color>​] | <color #​b5e61d>​bb bb</​color>​= reference point index, <color purple>​cc cc</​color>​=bone index |
 +| [<color darkred>​xx xx xx xx</​color>​] | bone offset x (float) |
 +| [<color darkgreen>​yy yy yy yy</​color>​] | bone offset y (float) |
 +| [<color darkblue>​zz zz zz zz</​color>​] | bone offset z (float) |
 +
 +----
 +
 +==== 0x0C: SELECTOR ====
 +
 +Selects one or more child geometry layouts to run. Used for blinking and many other model part selections, like Mumbo'​s hut. 
 +Each model sets a list of selectors, where positive values are the index of a (single) child layout to run 
 +and negative values (after being negated) are bitfields indicating multiple children to run. Usage:
 +
 +^ Value/​Syntax ^ Description ^
 +| [00 00 00 0C] | Reference Point Command ID |
 +| [00 00 <color orange>​aa aa</​color>​] | Continue* |
 +| [<color #​b5e61d>​bb bb</​color>​ <color purple>​cc cc</​color>​] | <color #​b5e61d>​bb bb</​color>​=child count, <color purple>​cc cc</​color>​=selector index |
 +| [<color darkred>​dd dd dd dd</​color>​] | <color darkred>​dd dd dd dd</​color>,​ <color darkgreen>​ee ee ee ee</​color>,​ ...=list of <color #​b5e61d>​bb bb</​color>​ offsets to geometry layouts that might be selected |
 +| [<color darkgreen>​ee ee ee ee</​color>​] |  |
 +| ... | |
 +
 +----
  
 ==== 0x0D: DRAW DISTANCE ==== ==== 0x0D: DRAW DISTANCE ====
banjo_kazooie/geometry_layouts.txt · Last modified: 2019/12/12 19:19 by pfedak