From bb6b393060d7075c2bcf6411f9646c470115248e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 13 Nov 2026 23:57:42 +0400 Subject: fix(capture): preserve geometry projection after sky pass --- tools/native-frame-capture/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/native-frame-capture/README.md') diff --git a/tools/native-frame-capture/README.md b/tools/native-frame-capture/README.md index 338f3438..1099b8d9 100644 --- a/tools/native-frame-capture/README.md +++ b/tools/native-frame-capture/README.md @@ -2,7 +2,7 @@ Capture modes attach only to the isolated GOG-compatible scratch copy of `Parkan - Iron Strategy`. Capture writes a PNG and a `fparkan-legacy-camera-v1` JSON file; boundary-trace mode writes a log and captures no pixels. `selector0_words` remains the local camera matrix at `camera+0x20`; the capture also records `effective_world_matrix_words` from `camera+0x60` with `effective_world_matrix_space: "world"` and a `parented_camera` marker. Both local and world matrices are sampled at the World3D render entry and reread at the projection-building boundary; only a same-thread, byte-compared snapshot paired with perspective values can produce usable renderer input. A passive `iron3d.dll` callsite probe records a path only when the active call arguments and path string are verified. It also samples `Terrain+0x421DC` after verifying the GOG module hash and the `EBP - [ESI+0x144]`, remainder by `[ESI+0x150]` instruction bytes. `atmosphere_seconds` is emitted only if the sampled `EDX` phase matches that arithmetic, the raw clock matches `World3D+0x32A38`, and sample, camera, and projection share the same render thread and generation. Otherwise it is `null`. This phase does not establish a general simulation-time, weather, or RNG value. -`geometry_projection` records the renderer's perspective values at the first indexed geometry draw (`Terrain+0x1D110`) using that world's camera matrix and renderer. It is emitted only when thread, generation, renderer, viewport, far plane and FOV match the later World3D boundary. The near plane may differ: the observed world draw uses `0.5`, while the restored camera boundary contains `5`. FParkan prefers this verified object when replaying the capture. The top-level projection fields remain the camera-boundary tuple used for selected-camera preflight. Older captures without this object still load, with `render_coverage captured_projection_unverified=1`; nearby surfaces in those replays can be clipped incorrectly. Capture a fresh frame to verify them. +`geometry_projection` records the renderer's perspective values at the first indexed geometry draw (`Terrain+0x1D110`) using that world's camera matrix and renderer. It is emitted only when thread, generation, renderer, perspective mode, viewport, FOV and all 64 world-matrix bytes match the later World3D boundary. The depth range may differ: the observed world draw uses `0.5..700`, while the later boundary can contain the restored camera near plane `5` or the sky range `700..50000`. FParkan prefers this verified object when replaying the capture. The top-level projection fields preserve the later boundary; selected-camera preflight and verification accept either that tuple or the paired geometry tuple matching the requested projection. Camera-matrix, restoration and pixel-attribution checks still apply. Older captures without this object still load, with `render_coverage captured_projection_unverified=1`; surfaces in those replays can be clipped incorrectly. Capture a fresh frame to verify them. `sky_uv_clock` records the independent scrolling-texture clock at sky render entry (`Terrain+0x48110`). It requires a verified module/prologue, the selected camera, matching render thread/generation/world clock, and zenith UV values matching all three native scroll formulas. It preserves wrapping `u32` subtraction from the sky object's origin clock. FParkan holds this phase during exact capture replay; ordinary application frames animate the cloud, star and nebula UVs with periods of 50, 100 and 300 seconds. Older captures without this object still load and report `render_coverage captured_sky_phase_unverified=1`; their sky texture phase is not a native reference. -- cgit v1.2.3