benilla-re systems structs docs

CM2Model::GetSkinnedBounds

function · models · primitive

Address
0x719c20 · 2112 bytes, up to 0x71a45f
Meaning
Skins a submesh's vertices through the scene matrix and returns their bounds and first three corners
Confidence
verified, proof one
Finding
models/render#projected-bounds
Test
models::m2_decal_projection_difftest

Finding: Projected bounds in models: drawing

0x719c20 returns 0 for a submesh of fewer than four vertices. Otherwise it skins each vertex as software skinning does, multiplies the blend matrix in place by the scene matrix +0xdc, and keeps the least and greatest of ((m00·x + m20·z) + m10·y) + m30 and its y and z columns. The first three also keep their position less the scene's +0x10c and their texture coordinates. The blend writes entries 0 to 2 of each row; the last entry of each row is seeded (0, 0, 0, 1) once and written only by the product, so each vertex's product reads the previous vertex's. It stays (0, 0, 0, 1) while the scene matrix's last column is (0, 0, 0, 1).

The derivation is in the doc.

Callers 1

Callees 1

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