Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
trs:room_geometry [2017/08/27 23:32] zdimension [TR1 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 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>''. |