benilla-re systems structs docs

SimpleModelGetScene

function · ui · orchestration

Address
0x76cfc0 · 32 bytes, up to 0x76cfdf
Signature
CM2Scene * __thiscall (void *this)
Meaning
Returns a model frame's M2 scene, creating it on first use
Confidence
verified, proof one
Finding
ui/modelview#model-frame-fields

Finding: Model frame fields in ui: Model frames, camera and paint

A model frame keeps its scene at +0x314, the model at +0x318, the camera at +0x31c, a pending camera index at +0x320, a light at +0x324, a position, facing and scale at +0x390 to +0x3a0, fog at +0x3a4 to +0x3b0, the model's bounding box at +0x3b4, and two script slots. The constructor zeroes the fields above; the pending camera index is 0, a request for camera 0, the scale and the fog far distance are 1.0, and the fog colour is 0xffffffff.

offsetfield
+0x314scene
+0x318, +0x31c, +0x320model, camera, pending camera index
+0x324light (0x6c bytes)
+0x390 to +0x398, +0x39c, +0x3a0position, facing, scale
+0x3a4 to +0x3b0fog flags, colour, near, far
+0x3b4 to +0x3c8model bounding box, minimum then maximum
+0x3cc, +0x3d4OnUpdateModel and OnAnimFinished slots

The derivation is in the doc.

Callers 10

Callees 1

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