SeedExteriorVisibility
function · terrain · host
- Address
0x6b3dd0· 439 bytes, up to0x6b3f86- Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3)- Meaning
- Seeds the flood of a map object seen from outside through a screen rectangle
- Confidence
- verified, proof one
- Finding
- terrain/portals#exterior-seed
- Test
terrain::camera_outside_bias_difftest
Finding: Exterior seed in terrain: map object visibility
0x6b3dd0 seeds the flood from outside, for a map object seen through a rectangle of the screen
in [0, 1] (the object's instance matrix and the rectangle are the arguments). It resets the pass
state like the interior seed with the inside flag 0, maps the rectangle to [−1, 1], and builds the
volume for it. For each group with flag 0x10000 whose box is not culled it runs the group callback;
for each other group with flag 0x8 whose box is not culled it walks the portals from that group at
depth 0.
The derivation is in the doc.
Callers 1
- CullExteriorMapObjects terrain
Callees 10
- 0x58b0c0 gx
- 0x58b280 gx
- InitMatrix3x3 objectlayer
- PushFrustum terrain
- BuildPortalVolume terrain
- IsOrientedBoxCulled terrain
- PopFrustum terrain
- RunGroupCallback terrain
- WalkPortals terrain
- MultiplyMatrix4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.