GetDeviceView
function · gx · host
- Address
0x58b0b0· 13 bytes, up to0x58b0bc- Signature
void __thiscall (void *this)- Meaning
- Copies the top of the device matrix stack at +0x1ac8
- Confidence
- verified, proof one
- Finding
- camera#unprojection
Finding: Unprojection in camera
0x7ad2c0 maps a screen fraction (a, b), each in [0, 1] from the bottom-left, to a point on
the near plane and a point on the far plane, written through ecx and edx. It reads two device
matrices, builds the eight frustum corners c0 to c7 with 0x5c43b0, and interpolates: near is
lerp(lerp(c0, c1, b), lerp(c3, c2, b), a), far the same over c4, c5, c7, c6. It does
not read a camera.
The derivation is in the doc.
Callers 39
- RayHitPickCandidates ui
- PickAtCursor ui
- CGWorldFrame::RenderCallback ui
- CompositeInteriorTiles ui
- MinimapFrameRender ui
- BakePortrait ui
- CGxDevice::DrawCursor gx
- GxuFontFrame unassigned
- CGxStringBatch::EmitGlyphQuads font
- CGxStringBatch::Draw font
- AtlasPage::Dump font
- Rain::DrawPatterFixed lighting
- Rain::DrawDropsFixed lighting
- Rain::DrawPatterShader lighting
- Rain::DrawDropsShader lighting
- Snow::DrawShader lighting
- Snow::DrawFixed lighting
- Sand::DrawFixed lighting
- Sand::DrawShader lighting
- Mists::Render lighting
- CaptureSceneCamera terrain
- StageSceneCamera terrain
- CullLowDetailTiles terrain
- DrawDriftCloud terrain
- DrawScreenOverlay terrain
- PLAYERNAMEDESC::UpdatePlate playername
- WorldTextDrawIcons playername
- BeginPassTarget ffxeffects
- M2SceneAnimateAndCollect models
- M2SceneDrawList models
- SimpleModelDraw ui
- CSimpleMessageScrollFrame::DrawCallback ui
- UnprojectScreenPoint camera
- LightningBolt::Render gx
- CParticleEmitter2::Render models
- CParticleEmitter2::DrawModelParticles models
- QueryGlareOcclusion lighting
- DrawGlare lighting
- DrawDisc lighting
Callees 1
- 0x592730 gx
Calls and jumps by a bare address, from tables/calls.tsv.