Lighting: live fake flashlight for the alien ship room #3797

Closed
github-bot wants to merge 1 commit from github-bot/gh-3797 into main AGit
Owner

@⁠t90 on GitHub · 2026-11-30 07:23 UTC · original
t90:contribute/alien-room-flashlight → main · +120 −18 · 3 files · 1 commits · closed without merging

What it changes

The alien ship / alien-dream room can render with unusably dark objects and a black background. Raising the existing gray shadow lift did not make the room usable. This adds an optional FAKE FLASHLIGHT control in F1: OFF, LOW, MEDIUM, HIGH and MAX. The tester confirmed that enabling it made the room usable.

VICTORY_FLASHLIGHT=0..4 adds a soft, camera-centred beam to the diffuse-light data before materials are shaded. It covers the estimated/constant ambient path and the depth-free neutral probe replacement. Changes apply live and are saved, so it can be enabled for this room and switched off afterwards without restarting.

This is a visibility workaround for the alien ship room, not a fix for its missing original lighting or intended white background. It defaults OFF, requires the existing ambient stand-in and a recognised diffuse resolve, and has no wall occlusion, distance falloff, cast shadows or player/weapon attachment. There is no automatic room detection. It shares the existing lighting dispatch; no extra full-screen pass or texture allocation is added.

A module comment records the room-specific motivation and successful playtest. This branch is based directly on main 41adb551; it contains none of the local texture, memory or performance experiments. AI-assisted by OpenAI Codex.

How it was tested

  • GPU and profile: user playtest on RTX 5070, Series S profile with 900p render to 1080p output, DLSS Quality, 2x DLSS frame generation, ray tracing off. Gameplay confirmation applies to the local integration of the same flashlight implementation; the clean upstream-only branch has not had a separate gameplay run.
  • Before: the alien ship room was dark enough to be unusable; gray shadow lift did not resolve it.
  • After: the user confirmed the fake flashlight worked in the room. The white background is not restored by this workaround.
  • Native HLSL helper tests use software D3D12 WARP. No RDNA shader translation or wave-size selection is changed; separate forced Wave32/Wave64 gameplay tests were not performed.
  • 31 focused GPU-crate checks passed: 16 ambient tests and 15 F1 menu tests, serial execution, including beam centre/unchanged edges, out-of-bounds sentinel, OFF output, finite/clamped strength, and live menu persistence. Full workspace suite and clippy gates were not run.
  • Local integrated RC: optimized diagnostics build and version smoke passed. The clean PR branch is compiled and checked separately as above.
  • Asset policy and diff whitespace checks passed. No game assets, screenshots, shader dumps, binaries or logs are included.

Checked for overlap

  • Searched open PRs for flashlight/alien and ambient changes. No matching flashlight/alien-room PR was found. Related changes touching the ambient file include #1736 (tiled GI), #1930 (air inscattering), #2359 (gather/deduplication) and #3073 (ambient floor); those address different behaviour and are not bundled here.
**@⁠t90** on GitHub · 2026-11-30 07:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3797) `t90:contribute/alien-room-flashlight` → `main` · +120 −18 · 3 files · 1 commits · closed without merging ## What it changes The alien ship / alien-dream room can render with unusably dark objects and a black background. Raising the existing gray shadow lift did not make the room usable. This adds an optional **FAKE FLASHLIGHT** control in F1: OFF, LOW, MEDIUM, HIGH and MAX. The tester confirmed that enabling it made the room usable. `VICTORY_FLASHLIGHT=0..4` adds a soft, camera-centred beam to the diffuse-light data before materials are shaded. It covers the estimated/constant ambient path and the depth-free neutral probe replacement. Changes apply live and are saved, so it can be enabled for this room and switched off afterwards without restarting. This is a **visibility workaround for the alien ship room**, not a fix for its missing original lighting or intended white background. It defaults OFF, requires the existing ambient stand-in and a recognised diffuse resolve, and has no wall occlusion, distance falloff, cast shadows or player/weapon attachment. There is no automatic room detection. It shares the existing lighting dispatch; no extra full-screen pass or texture allocation is added. A module comment records the room-specific motivation and successful playtest. This branch is based directly on main `41adb551`; it contains none of the local texture, memory or performance experiments. AI-assisted by OpenAI Codex. ## How it was tested - GPU and profile: user playtest on RTX 5070, Series S profile with 900p render to 1080p output, DLSS Quality, 2x DLSS frame generation, ray tracing off. Gameplay confirmation applies to the local integration of the same flashlight implementation; the clean upstream-only branch has not had a separate gameplay run. - Before: the alien ship room was dark enough to be unusable; gray shadow lift did not resolve it. - After: the user confirmed the fake flashlight worked in the room. The white background is not restored by this workaround. - Native HLSL helper tests use software D3D12 WARP. No RDNA shader translation or wave-size selection is changed; separate forced Wave32/Wave64 gameplay tests were not performed. - 31 focused GPU-crate checks passed: 16 ambient tests and 15 F1 menu tests, serial execution, including beam centre/unchanged edges, out-of-bounds sentinel, OFF output, finite/clamped strength, and live menu persistence. Full workspace suite and clippy gates were not run. - Local integrated RC: optimized diagnostics build and version smoke passed. The clean PR branch is compiled and checked separately as above. - Asset policy and diff whitespace checks passed. No game assets, screenshots, shader dumps, binaries or logs are included. ## Checked for overlap - [x] Searched open PRs for flashlight/alien and ambient changes. No matching flashlight/alien-room PR was found. Related changes touching the ambient file include #1736 (tiled GI), #1930 (air inscattering), #2359 (gather/deduplication) and #3073 (ambient floor); those address different behaviour and are not bundled here.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 07:29:09 +00:00
github-bot closed this pull request 2026-12-01 18:51:15 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:48 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3797#issuecomment-7321587297) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!3797
No description provided.