This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
banjo_tooie:geometry_layouts [2020/04/22 18:48] pfedak document new tooie commands |
banjo_tooie:geometry_layouts [2020/04/22 19:09] (current) pfedak [Geometry Layouts] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Geometry Layouts ====== | ====== Geometry Layouts ====== | ||
| - | These scripts load display lists within the [[banjo_tooie:model_data|model file]], with certain aspects, properties, and checks applied. They are found at the end of a model file. Commands 0x00 through 0x10 are identical to those in [[banjo_kazooie:geometry_layouts|Banjo-Kazooie]], so we list only new commands. Note that level and skybox models can only use the old commands, and will not respect bone indices. | + | These scripts load display lists within the [[banjo_tooie:model_data|model file]], with certain aspects, properties, |
| - | + | and checks applied. They are found at the end of a model file. Commands 0x00 through 0x10 are identical to those in | |
| - | + | [[banjo_kazooie:geometry_layouts|Banjo-Kazooie]], so we list only new commands. Note that level and skybox models can | |
| - | + | only use the old commands, and will not respect bone indices. | |
| - | + | ||
| - | + | ||
| + | Almost all of the new commands involve enabling software lighting effects on some vertices. The lighting uses the model file's | ||
| + | list of vertex normals, allowing lighting to be combined with vertex colors. Other than environment mapping (setting texture | ||
| + | coordinates to simulate a reflective surface), effects aren't determined by the commands, and must be enabled by the object | ||
| + | logic or other game conditions. | ||
| ==== 0x11: LOAD DL (LIGHTING) ==== | ==== 0x11: LOAD DL (LIGHTING) ==== | ||
| Line 66: | Line 67: | ||
| ---- | ---- | ||
| - | ==== 0x18: LOAD DL ==== | + | ==== 0x18: SKINNING (LIGHTING) ==== |
| - | Usage currently unknown. | + | Equivalent to [[banjo_tooie:geometry_layouts#x12skinning_lighting|command 0x12]]. |
| ---- | ---- | ||
| + | *The "continue" value is the offset to the next sibling geo layout command. A zero means there is no next sibling, | ||
| + | so processing goes up to the parent level or ends if this is the top level. | ||