CWorld::PrepareAreaOfInterest
function · terrain · primitive
- Address
0x672730· 692 bytes, up to0x6729e3- Signature
void __thiscall (float *this)- Meaning
- Centres the inner and outer chunk windows on a position and rebuilds the position boxes
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- terrain/world#area-of-interest
- Test
terrain::camera_window_difftest
Finding: Area of interest in terrain: world
0x672730 centres two windows on a position in chunk indices, index = round((17066.666 − p) × 0.03
− 0.5) per axis, the first from p.x. The inner window is the index ± r, r = 1 + trunc(far clip ×
0.03) (0x6725d0); the outer is the index ± max(r + 2, 8). Both clamp to 0 to 1023. It also
rebuilds the position boxes: ± the far clip, those ± 33.333332, ± 150 and ± the far clip in three axes.
The derivation is in the doc.
Callers 3
- CWorld::LoadMap terrain
- CWorld::UnloadAreas terrain
- CWorld::BeginFrame terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.