benilla-re systems structs docs

M2SceneAnimateAndCollect

function · models · primitive

Address
0x707680 · 4732 bytes, up to 0x7088fb
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

Callees 24

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