CaptureSceneCamera
function · terrain · primitive
- Address
0x680bc0· 1197 bytes, up to0x68106c- Signature
void __fastcall (uint32_t arg1, uint32_t arg2)- Meaning
- Captures the camera's planes, frustum and view matrices for the frame
- Confidence
- inferred
- Finding
- terrain/cull#scene-frame
- Test
terrain::scene_dir_subtract_difftest,terrain::scene_dir_normalize_difftest,terrain::scene_dot_negate_difftest,terrain::scene_plane_gate_difftest,terrain::scene_plane_normalize_difftest,terrain::scene_corner_negate_difftest
Finding: Scene frame in terrain: cull
0x681070 draws the world each frame: it sets the fog distances from the far clip, captures the
camera planes and frustum (0x680bc0), walks the scene (0x682fa0), and runs the passes:
far-band objects, terrain chunks, map objects, liquids, weather and the effects.
The derivation is in the doc.
Callers 1
- CWorld::BeginFrame terrain
Callees 13
- SetVector3 spline
- GetDeviceViewport gx
- GetDeviceProjection gx
- GetDeviceView gx
- BuildLookAtMatrix gxumath
- BuildFrustumCorners gxumath
- SetVector4 gxumath
- DotVector3 objectlayer
- UpdateCameraEnvironment terrain
- ClaimCameraMapObject terrain
- MultiplyMatrix4 cmath
- TranslateMatrix cmath
- BoundsOfPoints cmath
Calls and jumps by a bare address, from tables/calls.tsv.