CMapObj::ParseGroup
function · models · primitive
- Address
0x6c3f80· 311 bytes, up to0x6c40b6- Meaning
- Relinks a group, copies its MOGP header fields, parses its chunks and loads its batch materials
- Confidence
- verified, proof one
- Finding
- models/wmo#group-header
Finding: Group header in models: map objects
A group file is the version chunk and one MOGP chunk whose data opens with a 0x44-byte header;
the geometry chunks start right after it. The header fields land in the group:
| header | group | holds |
|---|---|---|
+0x00 | +0xc0 | name, an offset into the root's MOGN turned into a pointer |
+0x08 | +0x10 | flags |
+0x0c | +0x14 | bounding box, six floats |
+0x24, +0x26 | +0x2c, +0x30 | first portal reference and count, 16-bit |
+0x28 to +0x2c | +0x3c to +0x40 | three batch counts, 16-bit |
+0x30, +0x34, +0x38 | +0x34, +0x38, +0x14c | fog indices, liquid word, group id |
After the chunks, every batch resolves the textures of its material, the batch's byte +0x17.
The derivation is in the doc.
Callers 2
- CMapObj::LoadGroupFile models
- CMapObj::OnGroupReadDone models
Callees 2
- CMapObj::LoadMaterialTextures models
- CMapObjGroup::ParseChunks models
Calls and jumps by a bare address, from tables/calls.tsv.