SetDeviceProjection
function · gx · host
- Address
0x58b040· 15 bytes, up to0x58b04e- Signature
void __thiscall (void *this)- Meaning
- Passes a matrix to device vtable slot +0x70
- 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 25
- PaintLoadingScreen loadingscreen
- RunFramePass unassigned
- PickAtCursor ui
- CGWorldFrame::RenderCallback ui
- CompositeInteriorTiles ui
- BlitInteriorTarget ui
- MinimapFrameRender ui
- ApplyCameraProjectionAndView models
- BakePortrait ui
- CGxDevice::DrawCursor gx
- GxuFontFrame unassigned
- SnapViewportRect font
- CGxStringBatch::Draw font
- AtlasPage::Dump font
- DrawFarBand terrain
- DrawScreenOverlay terrain
- WorldTextDrawIcons playername
- WorldTextSetPixelProjection playername
- BeginPassTarget ffxeffects
- EndPassTarget ffxeffects
- SimpleModelDraw ui
- CSimpleMessageScrollFrame::DrawCallback ui
- DrawMovie ui
- CCamera::SetDeviceTransforms camera
- SetupOrthoTransforms camera
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.