RT on: the indirect-light stand-in band (VICTORY_AMBIENT_RT) is on by default and darkens shaded surfaces #61
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#61
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?
@LOCKhart07 on GitHub · 2026-12-01 09:18 UTC · original
Summary
With ray tracing on (
VICTORY_BVH_BUILDER=1), the indirect-light stand-in incrates/victory-gpu/src/ambient.rsis on by default:rt_band()falls back to"0.7,1.5"wheneverVICTORY_BVH_BUILDER=1, soambient::on()is true and every stand-in pass runs on top of the title's own traced light. On currentmainwith the hardware node test, this visibly darkens surfaces lit only by indirect light. Overhead road signs facing away from the sun render black; withVICTORY_AMBIENT_RT=0they render dark green with readable text, the same as with RT off. Areas under bridges look too dark too (seen in play, not A/B'd).What runs with RT on (from the log)
All of these log
a stand-in for the indirect lightonce in a normal RT-on run:Resolve: the title's diffuse resolve is clamped to 0.7–1.5× a screen-space estimate (×0.8 level, ×crease shade).Reflected,ReflectedIn(CS_UpdateHistory,CS_TemporalResolve2_Opaque,CS_TemporalResolve1_Alpha) andReflectedAlpha:hold/hold_fwritec / (1 + luma(c) / cap)withcap = 1.0 × mean ambient luma, so reflections are always darkened (halved at the mean, more above it). They also zero bright low-saturation texels and anythingis_garbage_probeflags (green- or magenta-dominant).Air: in-scatter capped at 1.5× the light around.The doc comment on
Bandsays why it exists: "The title's traced light flickers and goes black indoors while the structures its rays walk are partly wrong". That was true for the software node test. With the hardware node test (90338ca) and committed spans placed whole, our 8-minute RT-on benches log almost no "pages that had no copy" (~40 one-page lines), and the title's own light looks right without the band.A/B (same build, same save, same scripted camera, 8 min each)
RX 9070 XT, Fedora, kernel 7.3, 2560x1440,
main37bb30f+ open PRs #43/#44/#45/#47, hardware node test on, RT on.VICTORY_AMBIENT_RT=0Other forks
The forks I checked never run this stand-in with ray tracing, or only on request:
on()is... && !builder_runs(). Whiplash'sdocs/fork-ray-tracing.mdsays "It is off while the builder runs".VICTORY_AMBIENT_RTunset means off, and the doc comment here still says "unset: off".Suggestion
Make the band opt-in again (drop the
VICTORY_BVH_BUILDER=1fallback inrt_band()), or at least default it off when the hardware node test is active. Anyone still on the software node test who sees black rooms can setVICTORY_AMBIENT_RT=0.7,1.5.No game files, screenshots or captures included.
github-bot referenced this issue2026-12-01 16:03:21 +00:00