This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
banjo_tooie:geometry_layouts [2020/04/22 19:00] pfedak [0x18: LOAD DL] |
banjo_tooie:geometry_layouts [2020/04/22 19:09] 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) ==== | ||