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.
| offset | holds |
|---|---|
+0x00 | id, 32-bit, the key SetGeosetRange compares |
+0x04, +0x06 | first vertex, vertex count (16-bit) |
+0x08, +0x0a | first index, index count (16-bit) |
+0x0c, +0x0e | bone count, first bone lookup (16-bit) |
+0x12 | the bone the depth key centre rides |
+0x14 | depth key centre, three floats |
The derivation is in the doc.
Fields 7
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_id | Holds the id SetGeosetRange compares | verified, proof one | models/records#submesh-record |
0x0004 | 4 | uint16_t[2] | m_vertices | Holds the first vertex and the vertex count | verified, proof one | models/records#submesh-record |
0x0008 | 4 | uint16_t[2] | m_indices | Holds the first index and the index count | verified, proof one | models/records#submesh-record |
0x000c | 4 | uint16_t[2] | m_bones | Holds the bone count and the first bone lookup | verified, proof one | models/records#submesh-record |
0x0010 | 2 | uint16_t | m_boneWeights | Holds the bone-weight count, the vertex shader id's digit B | verified, proof two | models/shared#vertex-shader-id |
0x0012 | 2 | uint16_t | m_centerBone | Holds the bone the depth key centre rides | verified, proof one | models/records#submesh-record |
0x0014 | 12 | float[3] | m_center | Holds the depth key centre | verified, proof one | models/records#submesh-record |