Ray tracing off: shade by day is nearly black at the default VICTORY_AMBIENT_MOST (2.2) #141

Open
opened 2026-12-02 00:26:35 +00:00 by github-bot · 2 comments
Owner

@⁠skalel on GitHub · 2026-12-02 00:22 UTC · original

With ray tracing off, surfaces in the shade on a sunny day render nearly black: a porch wall measured 6 of 255 while the ground in the sun next to it measured 206. The textures are there; the light is not.

Cause

ambient.rs keeps what the title's resolve leaves (outdoors, the sky's light) at most VICTORY_AMBIENT_MOST times the stand-in's estimate. The estimate comes from what is on screen. Where most of the frame is in the shade, it is low, so the sky's light in the shade is cut to a low value too.

The default went from a fixed 4.0 (3d99785) to VICTORY_AMBIENT_MOST with 2.2 (2773fdf). The doc comment on bounds() still says 4.0.

Measured

RX 6750 XT 12 GB, Proton-CachyOS, Series S 1920x1080, VICTORY_UPSCALER=6, ray tracing off, the same porch and save. Luma of the screenshots (0–255):

wall in the shade ground in the sun
37bb30f, default 6 —
f7f0360, default (2.2) 6 206
VICTORY_AMBIENT_MOST=4 15 218
VICTORY_AMBIENT_MOST=20 56 (42 in a second run) 185
VICTORY_AMBIENT=constant:0.3 20, grey —

At 20 the wall's paint keeps its colour. The constant brightens it too, but flat and grey.

VICTORY_TEXTURE_ROOM_PERCENT=94, VICTORY_BC7_DICTIONARY=0, VICTORY_CARD_PULL=0 and the FSR 4 files make no difference.

Questions

Indoors

The same save, in a house by day (a window, a lamp, a dark corner), at 2.2, 8 and 20: the three look alike, with no blocks of wrong light in any of them. The luma of the walls and the floor stays within the spread of the slightly different camera angles (19 to 82 in all three). There, what is on screen (the window, the lamp) keeps the estimate up, so the cap does not bite.

Questions

  • Was 2.2 picked for a reason, such as blocks of wrong light somewhere else?
  • Would a higher default fit? 20 is the value measured on both sides; 8 was only tried indoors.

No game files included.

**@⁠skalel** on GitHub · 2026-12-02 00:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/141) With ray tracing off, surfaces in the shade on a sunny day render nearly black: a porch wall measured 6 of 255 while the ground in the sun next to it measured 206. The textures are there; the light is not. ## Cause `ambient.rs` keeps what the title's resolve leaves (outdoors, the sky's light) at most `VICTORY_AMBIENT_MOST` times the stand-in's estimate. The estimate comes from what is on screen. Where most of the frame is in the shade, it is low, so the sky's light in the shade is cut to a low value too. The default went from a fixed 4.0 (3d99785) to `VICTORY_AMBIENT_MOST` with 2.2 (2773fdf). The doc comment on `bounds()` still says 4.0. ## Measured RX 6750 XT 12 GB, Proton-CachyOS, Series S 1920x1080, `VICTORY_UPSCALER=6`, ray tracing off, the same porch and save. Luma of the screenshots (0–255): | | wall in the shade | ground in the sun | |---|---|---| | 37bb30f, default | 6 | — | | f7f0360, default (2.2) | 6 | 206 | | `VICTORY_AMBIENT_MOST=4` | 15 | 218 | | `VICTORY_AMBIENT_MOST=20` | 56 (42 in a second run) | 185 | | `VICTORY_AMBIENT=constant:0.3` | 20, grey | — | At 20 the wall's paint keeps its colour. The constant brightens it too, but flat and grey. `VICTORY_TEXTURE_ROOM_PERCENT=94`, `VICTORY_BC7_DICTIONARY=0`, `VICTORY_CARD_PULL=0` and the FSR 4 files make no difference. ## Questions ## Indoors The same save, in a house by day (a window, a lamp, a dark corner), at 2.2, 8 and 20: the three look alike, with no blocks of wrong light in any of them. The luma of the walls and the floor stays within the spread of the slightly different camera angles (19 to 82 in all three). There, what is on screen (the window, the lamp) keeps the estimate up, so the cap does not bite. ## Questions - Was 2.2 picked for a reason, such as blocks of wrong light somewhere else? - Would a higher default fit? 20 is the value measured on both sides; 8 was only tried indoors. No game files included.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 00:26:35 +00:00
Author
Owner

@⁠audunleganger on GitHub · 2026-12-02 12:43 UTC · original

Same effect here on an RX 9070 XT 16 GB (dad990b, Series X, 720p render, 1080p output, RT off), and raising the cap lifts it.

Scene: first safehouse's balcony by day, camera turned to look straight down at Jason, so most of the frame is the shaded deck. Brightness of the darkest quarter of the frame (0-255, still at 60 s):

darkest quarter whole frame
RT off, VICTORY_AMBIENT_MOST default (2.2) 9.3 149
RT off, VICTORY_AMBIENT_MOST=4 11.8 150
RT off, VICTORY_AMBIENT_MOST=8 15.8 152
RT on 18.5 155

The light log matches your explanation: turning the camera down drops the on-screen estimate from 3.6 to 1.2, and the light written from 5.1 to 2.6 at the default. With =4 it's 6.2 → 4.2. At 8 the shade comes close to the RT-on picture.

AI assistance: Claude Code (Claude Opus 5.5) ran the builds and the measurements, read the logs and wrote this report, on the hardware above.

**@⁠audunleganger** on GitHub · 2026-12-02 12:43 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/141#issuecomment-7345784440) Same effect here on an RX 9070 XT 16 GB (`dad990b`, Series X, 720p render, 1080p output, RT off), and raising the cap lifts it. **Scene:** first safehouse's balcony by day, camera turned to look straight down at Jason, so most of the frame is the shaded deck. Brightness of the darkest quarter of the frame (0-255, still at 60 s): | | darkest quarter | whole frame | |---|---|---| | RT off, `VICTORY_AMBIENT_MOST` default (2.2) | 9.3 | 149 | | RT off, `VICTORY_AMBIENT_MOST=4` | 11.8 | 150 | | RT off, `VICTORY_AMBIENT_MOST=8` | 15.8 | 152 | | RT on | 18.5 | 155 | The light log matches your explanation: turning the camera down drops the on-screen estimate from 3.6 to 1.2, and the light written from 5.1 to 2.6 at the default. With `=4` it's 6.2 → 4.2. At 8 the shade comes close to the RT-on picture. AI assistance: Claude Code (Claude Opus 5.5) ran the builds and the measurements, read the logs and wrote this report, on the hardware above.
Author
Owner

@⁠skalel on GitHub · 2026-12-04 12:40 UTC · original · edited 2026-12-04 15:34 UTC

Still valid at current main releases.

Right now, even the Workaround doesnt work anymore.

EDIT: my .conf was not being prioritized, thats why it wasnt working. Setting it to 20 still wok

**@⁠skalel** on GitHub · 2026-12-04 12:40 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/141#issuecomment-7411767967) · edited 2026-12-04 15:34 UTC Still valid at current main releases. Right now, even the Workaround doesnt work anymore. EDIT: my .conf was not being prioritized, thats why it wasnt working. Setting it to 20 still wok
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#141
No description provided.