FLOOR
From DoomWiki.org
| This article or section is a stub. Please help the Doom Wiki by adding to it. |
| Doom level format |
|---|
Source port extensions: |
The FLOOR lumps are used by the Nintendo 64 port of Hexen as an extension to the port's modified rendering engine. It is required by the console port in order to address the requirement of hardware-accelerated renderer for surfaces to be composed entirely of strictly convex surfaces.
A "floor" is a collection of multiple triangles. There are one such collection for each sector, in the same order as the SECTORS lump. This approach is distinct from LEAFS and other hardware-friendly extensions to the BSP tree, which often correspond to each subsector, instead.
"Floors" are stored in lumps named FLOORxy, where xy corresponds to that of the MAPxy map slot—that is to say, FLOOR01 is loaded when entering MAP01, FLOOR02 is loaded when entering MAP02, and so on.
Floor structure[edit]
A "floor" is of this form:
| Offset | Size (bytes) | Description |
|---|---|---|
| 0 | 2 | Number n of triangles on this sector |
| 2 | n * 6 | Triangles |
Each triangle is of this form:
| Offset | Size (bytes) | Description |
|---|---|---|
| 0 | 2 | First vertex number |
| 2 | 2 | Second vertex number |
| 4 | 2 | Third vertex number |
