FillLowDetailIndices
function · terrain · primitive
- Address
0x6bd9b0· 166 bytes, up to0x6bda55- Signature
void __thiscall (void *this)- Meaning
- Fills the low-detail index buffer with four triangles around each of 16x16 quad centres
- Confidence
- verified, proof one
- Finding
- terrain/lod#low-detail-mesh
- Test
terrain::wdl_strip_indices
Finding: Low-detail mesh in terrain: lod
A CMapAreaLow fills a 545-vertex buffer of 16-byte vertices (x, y, z, 0xffffffff): 17 rows of
17 outer vertices, then 16 rows of 16 inner ones. An outer vertex's x is the tile's X less 33.333332
for each row and its y the tile's Y less 33.333332 for each column, each by repeated subtraction
at 53 bits; inner ones start 16.666666 in. The height is the WDL value. Each of the 16×16 quads is
four triangles around its inner vertex C: (C, v+1, v), (C, v+18, v+1), (C, v+17, v+18) and
(C, v, v+17), v the quad's first outer vertex.
The derivation is in the doc.
Callers 1
- CMapAreaLow::Draw terrain
Callees 3
- 0x58a030 gx
- GxBufLock gx
- GxBufUnlock gx
Calls and jumps by a bare address, from tables/calls.tsv.