CMapChunk::CopyLodIndices
function · terrain · host
- Address
0x6bedf0· 42 bytes, up to0x6bee19- Signature
void __thiscall (CMapChunk *this, void *buffer)- Meaning
- Uploads a level's static index list to the chunk's index buffer
- Confidence
- verified, proof one
- Finding
- terrain/lod#level-meshes
Finding: Level meshes in terrain: lod
A level's static mesh is a vertex list and an index list. Level 2 has 41 vertices and 192 indices (64
triangles: 4 × 4 cells of four triangles around the centre) and level 3 has 145 vertices and 768
indices (256 triangles: 8 × 8 quads of four). A vertex list is pairs of 16-bit numbers: the chunk's
vertex and the slot it fills in the buffer. A buffer vertex is 24 bytes, the position +0x83c + 12 i and
the normal +0x170 + 12 i. The pool buffers hold 145 vertices and 768 indices.
The derivation is in the doc.
Callers 1
- CMapChunk::SelectMesh terrain
Callees 1
- 0x58a0c0 gx
Calls and jumps by a bare address, from tables/calls.tsv.