DrawMapObjectPass
function · terrain · orchestration
- Address
0x684840· 1166 bytes, up to0x684ccd- Signature
void __cdecl (void)- Meaning
- Draws the linked map object groups under each def's lighting, once per stored frustum volume
- Confidence
- verified, proof one
- Finding
- terrain/groupdraw#map-object-pass
- Test
terrain::wmo_pass_negate_difftest
Finding: Map object pass in terrain: map object draw
0x684840 draws the groups the frame linked in the list 0xc7caf8. For each group def it unlinks
the def's node, and with world flag 0x100 set it sets matrix slot 8 to the translation by minus the
camera times the instance matrix +0x94, sets the group fog flag, builds the def's lighting
record, calls its two virtual slots, finishes the lighting at the camera and draws the group once
for each frustum volume the def holds. It releases the volumes in every case.
The derivation is in the doc.
Callers 1
- DrawWorldScene terrain
Callees 22
- SplatVector3 loadingscreen
- SetVector3 spline
- 0x4b1df0 ui
- 0x513570 uicamera
- GxRsSetFloat gx
- GxRsPush gx
- GxRsPop gx
- GxXformSetTexture gx
- SetPlane gx
- FreeFrustum terrain
- PushFrustum terrain
- PopFrustum terrain
- ListLinkA terrain
- NextLinkC terrain
- ClearSceneState terrain
- DrawMapObjectGroup terrain
- GetLightState lighting
- M2SceneAddLightsForPoint models
- M2LightingInitialize models
- M2LightingSetDeviceLights models
- MultiplyMatrix4 cmath
- TranslateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.