benilla-re systems structs docs

M2Submesh

struct · models · 32 bytes

Meaning
Holds a submesh record of a view: id, vertex, index and bone ranges, and the depth key centre
Confidence
verified, proof one
Finding
models/records#submesh-record

Finding: Submesh record in models: records

A submesh is 0x20 bytes.

offsetholds
+0x00id, 32-bit, the key SetGeosetRange compares
+0x04, +0x06first vertex, vertex count (16-bit)
+0x08, +0x0afirst index, index count (16-bit)
+0x0c, +0x0ebone count, first bone lookup (16-bit)
+0x12the bone the depth key centre rides
+0x14depth key centre, three floats

The derivation is in the doc.

Fields 7

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_idHolds the id SetGeosetRange comparesverified, proof onemodels/records#submesh-record
0x00044uint16_t[2]m_verticesHolds the first vertex and the vertex countverified, proof onemodels/records#submesh-record
0x00084uint16_t[2]m_indicesHolds the first index and the index countverified, proof onemodels/records#submesh-record
0x000c4uint16_t[2]m_bonesHolds the bone count and the first bone lookupverified, proof onemodels/records#submesh-record
0x00102uint16_tm_boneWeightsHolds the bone-weight count, the vertex shader id's digit Bverified, proof twomodels/shared#vertex-shader-id
0x00122uint16_tm_centerBoneHolds the bone the depth key centre ridesverified, proof onemodels/records#submesh-record
0x001412float[3]m_centerHolds the depth key centreverified, proof onemodels/records#submesh-record