IsSphereCulled
function · terrain · orchestration
- Address
0x682ef0· 67 bytes, up to0x682f32- Signature
uint32_t __thiscall (float *this, float radius)- Meaning
- Returns 0 when a sphere lies inside the active frustum volume, else 1
- Confidence
- verified, proof one
- Finding
- terrain/scene#sphere-and-box-tests
Finding: Sphere and box tests in terrain: scene
0x682ef0 returns 0 when a sphere (centre ecx, radius on the stack) lies inside the six
planes of the active frustum volume and 1 when it does not. 0x682f60 does the same for an
oriented box through 0x6869c0; it takes the box (ecx), its 3 by 3 basis (edx) and a position (stack, ret 4). 0x686b80 is the plane test: 0 when the centre is behind a
plane by more than the radius, else 3. 0x686000 returns 2 when the sphere is hidden behind the
horizon and 0 otherwise.
The derivation is in the doc.
Callers 4
- CullEntityList terrain
- CullGroupEntityList terrain
- CullDoodadDefList terrain
- CullGroupDoodadDefList terrain
Callees 1
- TestSpherePlanes terrain
Calls and jumps by a bare address, from tables/calls.tsv.