DrawWorldScene
function · terrain · orchestration
- Address
0x681070· 846 bytes, up to0x6813bd- Signature
void __cdecl (void)- Meaning
- Draws the world: counters, horizon, one scene walk per window, the band drain and the passes in order
- Confidence
- verified, proof one
- Finding
- terrain/scene#scene-driver
- Test
terrain::render_near_bias_difftest,terrain::render_fog_dist_difftest,terrain::render_leg_fog_offset_difftest,terrain::render_pos_accumulate_difftest
Finding: Scene driver in terrain: scene
0x681070 draws the world. It zeroes the counters, sets the horizon far depth to the far clip less
33.333332 and the fov term fog/cos(fov/2) − fog. Outdoors it walks the scene once with the
rectangle (0, 0, 1, 1). Inside a map object it copies the object's deferred portal windows to its
region array and walks once per window, with the horizon feed the window's farthest plane
distance plus 33.333332; with no window it walks nothing. It then drains the band lists and
draws the passes in the order of Frame order.
The derivation is in the doc.
Callers 1
- CWorld::Render terrain
Callees 33
- _atexit crt
- GetActiveCamera ui
- BuildCursorPicture ui
- GxRsSetFloat gx
- GxRsPush gx
- GxRsPop gx
- SetClearColorDevice gx
- 0x58a940 gx
- ClearDevice gx
- 0x58b200 gx
- 0x58b220 gx
- GetWeatherBox lighting
- DrainSceneLists terrain
- SetFrustumVolume terrain
- WalkScene terrain
- DrawEntityModels terrain
- DrawDoodadModels terrain
- DrawFarBand terrain
- DrawChunkPass terrain
- DrawMapObjectPass terrain
- DrawMagmaPass terrain
- CullInteriorMapObject terrain
- ResetHorizon terrain
- ClearFourDwordsE terrain
- FreeIfFlagged terrain
- CreateLiquidBufferPool terrain
- MapObjDisableFlag models
- CreateChunkBufferPool terrain
- PrepareDetailDoodadBuffers terrain
- DrawQueryCells terrain
- SetSkyboxSlot lighting
- GetLightState lighting
- DrawSky lighting
Calls and jumps by a bare address, from tables/calls.tsv.