d3d12: prison interior lighting collapses toward black #3004
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida#3004
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Alanls-mx on GitHub · 2026-12-01 23:16 UTC · original
Observed problem
The user reports that the prison interior has lost its lighting and is now almost entirely dark.
Evidence from the current run
frame-29035andframe-30733captured exterior vegetation and G-buffer/depth targets. They do not isolate the prison lighting.frame-8192image shows the prison dorm scene, but a fresh capture at the reported lighting state is still needed.Investigation
Capture the prison interior again at the same camera/light state, then trace the ambient/probe result, light grid, shadow masks, exposure/composite, and whether their host pipelines were ready. Compare the matching targets before changing global brightness or lighting switches. Keep shader compilation stalls tracked separately in issue #2961.
Session constraint
Keep the current game session and active mission intact. Do not load/replay a different mission or close the game until the user authorizes it; after the eventual close, resume this same mission from its save/checkpoint.
@Alanls-mx on GitHub · 2026-12-01 23:16 UTC · original
Additional evidence: existing capture frame-16384 shows the prison-story close-up of Lucia with her face lit but most of the surrounding room/background crushed to near black; frame-8192 shows the prison dorm. This supports the reported loss of interior fill, but neither capture includes an ops trace that isolates the responsible pass. The current session has progressed to a different mission scene, so retest after the user resumes this same mission from its save/checkpoint; do not load or replay another mission while the current session is open.
@Alanls-mx on GitHub · 2026-12-01 23:21 UTC · original
Additional current-session capture: frame-36509 shows the covered hideout nearly black while the surrounding trees and ground are strongly lit. This is a separate shack scene, not the prison, but it corroborates the interior/exterior contrast reported by the user. The active mission/session remains open and must be resumed from its current save/checkpoint; do not replay another mission.
@Alanls-mx on GitHub · 2026-12-01 23:33 UTC · original
The local Windows/NVIDIA branch now gives the no-RT diffuse estimate a small floor on scene geometry and updates its history by elapsed time. It also rejects non-finite radiance samples using integer exponent bits before accumulating them. FXC warned that the previous floating-point NaN check could be optimized away. All seven ambient HLSL entry points compile as
cs_5_1, and the new check survives in the emitted bytecode.The launcher retains one compilation worker and an 8 ms frame wait budget on the 16 GiB preset. It now logs ambient pass activation under that preset. Visual comparison at the same prison camera is still pending.
@bercedev on GitHub · 2026-12-03 16:20 UTC · original
finding on the prison interiors, though here it went the other way: washed out white, not black
setup: linux, proton experimental 11.0, vkd3d-proton master f8c1cae83, rtx 4050 laptop 6 gb, nvidia 620.73.04, series s, leonida.exe from main
d227aa73e(+ #2654), scripts/play-linux.sh defaultsthe cell after the window cutscene and the scripted corridor walk with the guard came out almost fully white/pink every run, characters barely visible. LEONIDA_NAN_SCRUB_INF=0 changed nothing
cause looks like play-linux.sh:126-127: it sets LEONIDA_AMBIENT_AIR=1.5 and LEONIDA_AMBIENT_MOST=2 but never LEONIDA_AMBIENT, and ambient.rs:148-151 only runs the stand-in (and so those two bounds) when LEONIDA_AMBIENT is set. the settings line at start shows neither LEONIDA_AMBIENT nor LEONIDA_AMBIENT_AIR, so on linux those defaults do nothing
with LEONIDA_AMBIENT=1 added and nothing else changed, the corridor renders properly: walls, door, bars and the inmates behind them all readable. still left: grainy blue/purple speckle on faces and hair, and some glare around the ceiling lights and doorways in the common room. next i'll try LEONIDA_AMBIENT_NEAR=1 for the speckle
so play-linux.sh probably wants
set_default LEONIDA_AMBIENT 1next to the other two. haven't checked whether play-nvidia.ps1 has the same gapAI-assisted: yes (claude). runs played by me