benilla-re systems structs docs

CameraSetDeviceTransforms

function · camera · orchestration

Address
0x7ada40 · 32 bytes, up to 0x7ada5f
Signature
void __fastcall (CCamera *camera, const float *rect, uint32_t unused)
Meaning
Calls 0x7ac640, or raises error 0x57 for a null camera
Confidence
verified, proof one
Finding
camera#view-and-projection

Finding: View and projection in camera

0x7ada40 checks the camera and calls 0x7ac640, which sets the device's two matrices from the camera and a viewport rectangle r of four floats. The projection is 0x5c3cc0 with the field of view, the aspect (r[3] − r[1]) / (r[2] − r[0]), near and far; it scales x by 1/(aspect · tan θ) and y by 1/tan θ, with θ = fov / (2·√(aspect² + 1)). The view is 0x5c3e70 looking from the origin along target − eye, with up (sin yaw · sin roll, −cos yaw · sin roll, cos roll). The eye position is not in the view.

The derivation is in the doc.

Callers 2

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.