Geometry Layout commands ver. 1.0 ---- by rstewart215804 (2006) ============================================== The location offsets refer to the distance away from their parents. (location of object in level) ----- > ( object 1 ) ---------------- > ( object 2 ) --------- > ( object 3 ) Object 1 is the top object so its location is relative to where it is loaded in the level. Object 2 is the daughter of object 1. Its location is the offset from object 1 location. Object 3 is the daughter of object 2. Its location is the offset from object 2 location. That is how the Offset works. Also the scale is in smaller units than the one for moving objects in the level. ============================================== ******************************************************************************* [16] [00] [0001] [0096] [0064] 1. Start of object command 2. Flags 3. X location offset 4. Z location offset 5. Y location offset [1D] [00] [0000] [0000 4000] 1. Scale command. 2. Flags 3. Always 0000 4. Scale (0000 4000 is normal size) [04] [00 0000] 1. Hierarchy down command 2. Always zero [05] [00 0000] 1. Hierarchy up command 2. Always zero [13] [01] [0000] [0000] [0000] [00] [00 0000] ------------------------------------------------------------------------------------- This command is sometimes used with bank and object data 0000 0000 as an object grouping ------------------------------------------------------------------------------------- 1. Object command 1 2. Flags 3. X location offset 4. Z location offset 5. Y location offset 6. Object Bank ( usually bank 5 which is loaded with a 0x17 command in the level.) 7. offset in bank to load object data [01] [00 0000] 1. End of object 2. Always zero [0E] [00] [0007] [8029 DB48] 1. Animation command 2. Unknown ( probably flags) 3. Unknown 4. Ram address of animation [15] [05] [0000] [04] [02 1718] ------------------------------------------------------------------------------------- This command is usually below an animation command and it usually comes in groups. ------------------------------------------------------------------------------------- 1. Object command 2 2. Flags 3. Always zero 4. Object Bank ( usually bank 5 which is loaded with a 0x17 command in the level.) 5. offset in bank to load object data **************************************************************** Unknown Commands or Uncertain commands **************************************************************** [12] [00] [0000 0000 0000] 1. Unknown command 2. Flags 3. Unknown [14] [00] [0000 0000 0000] 1. Unknown command 2. Flags 3. Unknown [18] [00] [0000] [8029 D890] 1. Unknown command (May be used as a start object command) 2. Flags 3. Ram address [0B] [00 0000] 1. Unknown ( It is probably used to switch between different large objects like when Mario changes to low polygon format{ when Mario goes too far from the camera}) 2. Always zero [03] [00 0000] 1. Unknown ( It is probably used to jump back to an object command after a 0x0B command 2. Always zero ****************************************************************