Reflections stand-in: the light around where the miss program has no depth of the picture (VICTORY_AMBIENT_SPECULAR_BOUND=1, off by default) #124

Merged
1mosce merged 1 commit from upstream-pr/124 into main 2026-11-28 19:01:27 +00:00
1mosce commented 2026-11-27 18:31:35 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1mosce on 2026-11-27T18:31:35Z.


What

VICTORY_AMBIENT_SPECULAR_BOUND=1 (off by default): a dispatch of CS_RayMiss whose tables hold the rays' image and no depth of the picture is followed all the same.

Without a depth there is no point and no normal, so no reflected direction. Each texel of the image takes the light the points gathered around the surface seen at that place of the screen (last frame's points, read by screen position as clear_air reads them), mixed with the room's slow mean as reflect_light mixes it, times the share; before any points were gathered, the slow mean alone. The share of the title's sky (VICTORY_AMBIENT_SPECULAR=<share>,<sky>) is kept as in reflect_light. CS_ResolveScreenSpace still writes what it found over it.

Without the switch nothing changes. The ten-second line gains the count of such dispatches and says whether the switch is on. The new pass is made with the others; if it does not compile, the others stand and only this one is left out.

Why

In the title's opening (an office, indoors) the stand-in for reflections ran in no frame for about three minutes, in two sessions on 2026-11-28 (RTX 4070 Laptop 8 GiB, Ryzen 9 8945HS, 32 GB, Series S profile, DLSS Balanced, VICTORY_AMBIENT=0.8, VICTORY_AMBIENT_SPECULAR=1):

  • every ten seconds 241 to 570 dispatches were counted as "before a frame's light was kept left as the title had them" and 0 were followed; 2:55 and 3:02 after the start every frame was followed (182 to 219 frames per ten seconds), and stayed so;
  • the light of a frame was kept from the first second of the world (a stand-in for the indirect light role=Radiance and role=Resolve in the same second), so that was not the reason: the reason was no stand-in for the indirect light: other tables role=Miss, which is counted under the same name;
  • the tables of program 06bb6e728c7c99bf at that time: Uav(1, 104) 557x313 f26 (the rays' image, found), Srv(0, 1000) 1x1 f28 at the depth's place, and no 32-bit depth of 1114x626 among the entries that resolved (23 of 45 did).

So the image is there and the depth is not, and the misses keep the sky's light in a room a hundred times darker: skin, glasses and eyes mirror the sky. With VICTORY_AMBIENT_ONCE=1 (less diffuse light to hide it) a face in that scene was a chrome mask.

What it does not do

It does not find the depth. Why its place holds a 1x1 texture during the opening I do not know; the picture's depth may be among the 22 entries that did not resolve. If it is found there, the full stand-in runs again and this is only what is left for the frames without one.

Outdoors a dispatch without a depth would have its sky reflections dimmed too (the sky's texels cannot be told apart without a depth). Water is left alone before this point, as it was.

Tested

  • ambient::tests::the_passes_compile (new): every pass of the module compiles, the new one among them. cargo test -p victory-gpu --lib ambient::: 6 passed.
  • cargo clippy -p victory-gpu --all-targets --locked: no warning that upstream ca9c75c does not have; cargo xtask policy: 280 files ok.
  • Not run in the title yet. The diagnosis above is from two sessions' logs; the picture with the switch on has not been looked at. I will add what a run shows here.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5531406383 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/124). Originally posted by [1mosce](https://github.com/1mosce) on 2026-11-27T18:31:35Z. --- ## What `VICTORY_AMBIENT_SPECULAR_BOUND=1` (off by default): a dispatch of `CS_RayMiss` whose tables hold the rays' image and no depth of the picture is followed all the same. Without a depth there is no point and no normal, so no reflected direction. Each texel of the image takes the light the points gathered around the surface seen at that place of the screen (last frame's `points`, read by screen position as `clear_air` reads them), mixed with the room's slow mean as `reflect_light` mixes it, times the share; before any points were gathered, the slow mean alone. The share of the title's sky (`VICTORY_AMBIENT_SPECULAR=<share>,<sky>`) is kept as in `reflect_light`. `CS_ResolveScreenSpace` still writes what it found over it. Without the switch nothing changes. The ten-second line gains the count of such dispatches and says whether the switch is on. The new pass is made with the others; if it does not compile, the others stand and only this one is left out. ## Why In the title's opening (an office, indoors) the stand-in for reflections ran in no frame for about three minutes, in two sessions on 2026-11-28 (RTX 4070 Laptop 8 GiB, Ryzen 9 8945HS, 32 GB, Series S profile, DLSS Balanced, `VICTORY_AMBIENT=0.8`, `VICTORY_AMBIENT_SPECULAR=1`): - every ten seconds 241 to 570 dispatches were counted as "before a frame's light was kept left as the title had them" and 0 were followed; 2:55 and 3:02 after the start every frame was followed (182 to 219 frames per ten seconds), and stayed so; - the light of a frame was kept from the first second of the world (`a stand-in for the indirect light role=Radiance` and `role=Resolve` in the same second), so that was not the reason: the reason was `no stand-in for the indirect light: other tables role=Miss`, which is counted under the same name; - the tables of program `06bb6e728c7c99bf` at that time: `Uav(1, 104) 557x313 f26` (the rays' image, found), `Srv(0, 1000) 1x1 f28` at the depth's place, and no 32-bit depth of 1114x626 among the entries that resolved (23 of 45 did). So the image is there and the depth is not, and the misses keep the sky's light in a room a hundred times darker: skin, glasses and eyes mirror the sky. With `VICTORY_AMBIENT_ONCE=1` (less diffuse light to hide it) a face in that scene was a chrome mask. ## What it does not do It does not find the depth. Why its place holds a 1x1 texture during the opening I do not know; the picture's depth may be among the 22 entries that did not resolve. If it is found there, the full stand-in runs again and this is only what is left for the frames without one. Outdoors a dispatch without a depth would have its sky reflections dimmed too (the sky's texels cannot be told apart without a depth). Water is left alone before this point, as it was. ## Tested - `ambient::tests::the_passes_compile` (new): every pass of the module compiles, the new one among them. `cargo test -p victory-gpu --lib ambient::`: 6 passed. - `cargo clippy -p victory-gpu --all-targets --locked`: no warning that upstream `ca9c75c` does not have; `cargo xtask policy`: 280 files ok. - **Not run in the title yet.** The diagnosis above is from two sessions' logs; the picture with the switch on has not been looked at. I will add what a run shows here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!124
No description provided.