M2SceneAnimateAndCollect
function · models · primitive
- Address
0x707680· 4732 bytes, up to0x7088fb- Meaning
- Animates a scene's models and sorts their batches, ribbons and particles into its draw lists
- Confidence
- verified, proof one
- Finding
- models/scene#view-rebase
- Test
models::negate_difftest,models::plane_dist_difftest,models::radius_difftest,models::scale_mul_d1_difftest,models::scale_mul_f_difftest,models::sum_of_squares_difftest,models::sum_of_squares_e_difftest,models::vec_add_difftest,models::view_rebase_difftest
Finding: View rebase in models: the scene
The collect pass increments the frame counter and clears the shader id memo when the cache's mode
changed. It reads the device view into +0x9c and moves its translation so the view is relative to
the origin p the caller passes: m30 −= (m10·py + m20·pz) + m00·px, `m31 −= (m11·py + m01·px)
- m21·pz
,m32 −= (m12·py + m02·px) + m22·pz, each sum at the FPU's 53-bit precision (control word 0x023F) and each result rounded to a float. It then sets the scene matrix+0xdcwith the dispatched routine0x74ad38(+0xdc, 0, view), which has a matrix inverse's arguments and whose result is not transcribed (animation,Dispatched matrix math`).
The derivation is in the doc.
Callers 10
- GetFirstLoginCameraPosition glue
- RenderWorldFrame ui
- CharacterModelBaseChooseCamera ui
- CCamera::ArmShot uicamera
- CCamera::UpdateShot uicamera
- BakePortrait ui
- DrawSky lighting
- SimpleModelModelReady ui
- SimpleModelDraw ui
- DrawStars lighting
Callees 24
- AddUint32ArrayCount core
- GetUint32ArrayQuantum core
- RoundUpToQuantum core
- ReallocUint32Array core
- SetVector3 spline
- GetDeviceView gx
- ScaleVector3 objectlayer
- M2CacheSubmitJob models
- M2CacheWaitJob models
- M2ElementHash models
- M2ElementCompareGroup models
- M2ElementCompareGroupKey models
- M2SceneRemapVertexShaderId models
- M2ElementArrayGrow models
- M2ElementArrayQuantum models
- M2ElementArrayRoundUp models
- M2ElementArrayRealloc models
- CM2Model::IsReady models
- CM2Model::Animate models
- CM2Model::UpdateAfterAnimate models
- CM2Model::UpdateLighting models
- M2SortIndices models
- InvertMatrixDispatch d3dx
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.