This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
super_mario_64:level_commands [2018/10/13 08:07] David Added checkpoint info to commands 0x26 (Connect Warps) and 0x27 (Painting Warp) |
super_mario_64:level_commands [2020/11/21 15:10] (current) jesusyoshi54 text formating |
||
---|---|---|---|
Line 514: | Line 514: | ||
==== 0x2B: Set Mario's default position in the level ==== | ==== 0x2B: Set Mario's default position in the level ==== | ||
- | 2B 0C [AA] 00 [RY RY] [XX XX] [YY YY] [ZZ ZZ] | + | '' 2B 0C [AA] 00 [RY RY] [XX XX] [YY YY] [ZZ ZZ]'' |
Line 545: | Line 545: | ||
---- | ---- | ||
- | ==== 2F: Render Area?? ==== | + | ==== 2F: Setup Render Room ==== |
- | Decides which area of the level geometry to render. Used in BBH, HMC, and Inside Castle levels. | + | Used in the levels Big Boo's Haunt, Hazy Maze Cave, and Inside Castle. |
+ | |||
+ | The segmented pointer in this command points to a byte array, with the same length as number of collision triangles in the level. Each byte in this array will be placed into offset 0x5 in the [[super_mario_64:structs#collision_triangle|collision triangle structure]]. | ||
+ | |||
+ | When the ASM function 0x8029DBD4 is used with [[super_mario_64:geometry_layout_commands#eswitch_case|geometry layout switch command]], it will use that offset 0x5 byte of the collision triangle that is below Mario as an index to determine which display list to render. | ||
''2F 08 00 00 [<color red>XX XX XX XX</color>]'' | ''2F 08 00 00 [<color red>XX XX XX XX</color>]'' | ||
- | | <color red>X</color> | Segment offset pointer to ?? | | + | | <color red>X</color> | Segment offset to the byte array | |
---- | ---- | ||
Line 650: | Line 654: | ||
''[<color fuchsia>BB BB</color>] [<color red>XX XX</color>] [<color green>YY YY</color>] [<color aqua>ZZ ZZ</color>] [?? ??]'' | ''[<color fuchsia>BB BB</color>] [<color red>XX XX</color>] [<color green>YY YY</color>] [<color aqua>ZZ ZZ</color>] [?? ??]'' | ||
- | | <color fuchsia>B</color> | Object type ID (behavior, model, etc) | | + | | <color fuchsia>B</color> | Object type ID (references behaviour address and model id) and Y Rotation. First 7 bit are the Y-Rotation, the last 9 bit are the Object type ID. | |
| <color red>X</color>,<color green>Y</color>,<color aqua>Z</color> | Coordinates | | | <color red>X</color>,<color green>Y</color>,<color aqua>Z</color> | Coordinates | | ||
| ?? | Always 00 00 ? | | | ?? | Always 00 00 ? | | ||
+ | |||
+ | [[sm64:macro_objects|See here for more information]] | ||
---- | ---- |