Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
trs:room_geometry [2017/06/04 23:53]
zdimension [TR5 Room Structure]
trs:room_geometry [2019/05/21 22:41] (current)
zdimension [TR5 Room Structure]
Line 1: Line 1:
 +{{indexmenu_n>​2}}
 +
 ====== Room Geometry ====== ====== Room Geometry ======
  
Line 83: Line 85:
  
 ==== Room Sector Structure ==== ==== Room Sector Structure ====
 +
 +//**Core: **''​FLOOR_INFO''//​
  
 All the geometry specified here is //​collisional geometry//. All the geometry specified here is //​collisional geometry//.
Line 507: Line 511:
  
     uint32_t Filler3; ​    // Always 0 (4 bytes)     uint32_t Filler3; ​    // Always 0 (4 bytes)
-    uint32_t ​UnknownL6;   // ​Unknown +    uint32_t ​VerticesOffset;   // ​Those fields are overwritten at level loading ​ 
-    uint32_t ​UnknownL7  ​// Unknown +    uint32_t ​PolyOffset      ​// by the ones present in the tr5_room struct + an offset 
-    uint32_t ​UnknownL8  ​// Always ​the same throughout ​the level.+    uint32_t ​PolyOffset2     // i.e. the values are not read, the fields are there for storage purposes
 } }
 </​code>​ </​code>​
Line 543: Line 547:
  
     uint16_t NumZsectors; ​                                 // ``Width''​ of sector list     uint16_t NumZsectors; ​                                 // ``Width''​ of sector list
-    ​uint16&#​95;​t ​NumXsectors; ​                                 // ``Height''​ of sector list+    ​uint16_t ​NumXsectors; ​                                 // ``Height''​ of sector list
     tr_room_sector SectorList[NumXsectors * NumZsectors]; ​ // List of sectors in this room     tr_room_sector SectorList[NumXsectors * NumZsectors]; ​ // List of sectors in this room
  
Line 809: Line 813:
 ''<​nowiki>​LightDataSize</​nowiki>'' ​ is the size of the light data in bytes (//​not// ​ in [[trs:​room_geometry#​tr5_room_light|[tr5_room_light]]] units). ''<​nowiki>​LightDataSize</​nowiki>'' ​ is the size of the light data in bytes (//​not// ​ in [[trs:​room_geometry#​tr5_room_light|[tr5_room_light]]] units).
  
-''<​nowiki>​Unknown6</​nowiki>'' ​ could probably be a copy of ''<​nowiki>​ReverbInfo</​nowiki>'' ​ (see further), as its value usually ranges from 0 to 3.+''<​nowiki>​Unknown6</​nowiki>'' ​ could probably be a copy of ''<​nowiki>​ReverbInfo</​nowiki>'' ​ (see further), as its value usually ranges from 0 to 3. It is used for fog bulbs in TR5.
  
 ''<​nowiki>​RoomYTop</​nowiki>'' ​ and ''<​nowiki>​RoomYBottom</​nowiki>'' ​ are equal to ''<​nowiki>​yTop</​nowiki>'' ​ and ''<​nowiki>​yBottom</​nowiki>'' ​ values in [[trs:​room_geometry#​tr_room_info|[tr_room_info]]] structure. If room is a //null room//, both of these values are ''<​nowiki>​0xCDCDCDCD</​nowiki>''​. ''<​nowiki>​RoomYTop</​nowiki>'' ​ and ''<​nowiki>​RoomYBottom</​nowiki>'' ​ are equal to ''<​nowiki>​yTop</​nowiki>'' ​ and ''<​nowiki>​yBottom</​nowiki>'' ​ values in [[trs:​room_geometry#​tr_room_info|[tr_room_info]]] structure. If room is a //null room//, both of these values are ''<​nowiki>​0xCDCDCDCD</​nowiki>''​.
trs/room_geometry.1496613207.txt.gz · Last modified: 2017/06/04 23:53 by zdimension
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0