TranslateMatrix
function · cmath · primitive
- Address
0x7bdc40· 90 bytes, up to0x7bdc99- Signature
void __thiscall (NTempest::C44Matrix *this, const NTempest::C3Vector *t)- Meaning
- Adds t[0]·row0 + t[1]·row1 + t[2]·row2 to row 3
- Confidence
- verified, proof one
- Finding
- camera#orthographic-setup
- Test
animation::m2_animate_difftest,cmath::translate_matrix_difftest
Finding: Orthographic setup in camera
0x7ad7f0 takes a rectangle r in ecx and a point p in edx. With cx = (r[1] + r[3])/2
and cy = (r[0] + r[2])/2, it sets an orthographic projection over the rectangle moved to that
centre, depth ±500, Z negated, and a view translated by (p[0] − cx, p[1] − cy, 0). When
0x589ca0 returns 1 it also moves the projection by half the rectangle's size over the screen's,
from 0x58a250. Its stack argument is unused.
The derivation is in the doc.
Callers 45
- 0x592850 gx
- BuildLookAtMatrix gxumath
- BuildMirroredLookAtMatrix gxumath
- CGxStringBatch::EmitGlyphQuads font
- IsInsideAreaTrigger objectlayer
- MovingTransportHandlerOnTick objectlayer
- TransportHandlerOnTick objectlayer
- CGGameObject_C::OnModelLoaded objectlayer
- CGGameObject_C::OnCreate objectlayer
- CGObject_C::UpdateNode objectlayer
- BuildPlantedEffectMatrix objectlayer
- BuildTransportMatrix collision
- CaptureSceneCamera terrain
- SetupWorldStages terrain
- StageSceneCamera terrain
- CullLowDetailTiles terrain
- DrawFarBand terrain
- DrawChunkPass terrain
- DrawMapObjectPass terrain
- DrawGroupLiquidPass terrain
- CullExteriorMapObjects terrain
- CullInteriorMapObject terrain
- CreateEntityDoodadDef terrain
- PlaceDoodadDef terrain
- CreateGroupDoodadDef terrain
- CreateEntityMapObjDef terrain
- PlaceMapObjDef terrain
- CMapDoodadDef::SetPlacement terrain
- CMapObjDef::SetPlacement terrain
- DrawDetailDoodadBatch terrain
- DrawQueryCells terrain
- CMapChunk::DrawLayers terrain
- CMapChunk::DrawLayersShader terrain
- PLAYERNAMEDESC::UpdatePlate playername
- WorldTextDrawIcons playername
- RenderGlowWavePass ffxeffects
- BuildDecalTransforms lighting
- CM2Model::SetBaseTransformTRS models
- CM2Model::SetBaseTransformConformed models
- CM2Model::SetKeyBoneOverrideTRS models
- CM2Model::Animate models
- SetupOrthoTransforms camera
- InvertRigidMatrix cmath
- InvertAffineMatrix cmath
- BuildScaleMatrix4 cmath
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.