This shows you the differences between two versions of the page.
Both sides previous 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:38] pfedak [0x02: BONE] |
||
---|---|---|---|
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 ==== |