SeedInteriorVisibility
function · terrain · host
- Address
0x6b3b20· 677 bytes, up to0x6b3dc4- Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3)- Meaning
- Floods the groups visible from the camera's groups through the portals and records the exterior windows
- Confidence
- verified, proof one
- Finding
- terrain/portals#interior-seed
- Test
terrain::camera_inside_bias_difftest
Finding: Interior seed in terrain: map object visibility
0x6b3b20 floods from the groups the camera is in. It advances the pass number 0xca8014 and
sets the inside flag 0xcde5ac, the group fog flag 0xca7f00 and clears the window count. The
object-to-clip matrix 0xcbe2d8 is slot 8 times the device matrix. It walks from each start group
over the whole screen, (−1, −1, 1, 1), at depth 0. Then each recorded window is walked again from
every exterior group inside it, and last the callback runs for each group with flag 0x10000 whose
box the current volume shows.
The derivation is in the doc.
Callers 1
- CullInteriorMapObject terrain
Callees 11
- 0x58b0c0 gx
- 0x58b280 gx
- InitMatrix3x3 objectlayer
- PushFrustum terrain
- BuildPortalVolume terrain
- IsOrientedBoxCulled terrain
- PopFrustum terrain
- CMapObj::GetLoadedGroup models
- RunGroupCallback terrain
- WalkPortals terrain
- MultiplyMatrix4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.