Window glass: grey vertical drips from the dirt texture's opacity channel #190

Closed
opened 2026-12-02 14:04:56 +00:00 by github-bot · 0 comments
Owner

@⁠kyle41313 on GitHub · 2026-12-02 13:59 UTC · original

Symptom. The house desk window's glass shows grey vertical drips. Console footage of the same window under a similar sun shows even milky haze with dirt specks, and no drips.

Setup. RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off (VICTORY_BVH_BUILDER=0).

Cause, as far as found. The house glass pixel program b37565055f2f7d3b reads a dirt texture at console offset 0x5b0 (image_sample v[43:46], 2D). Its fourth channel, clamped at 0x9b8 (v_max_f32 v41, v46, v46 clamp), sets how much dirt covers each pixel. That channel draws the drips. Why it differs from the console is not known.

Fix: VICTORY_GLASS_DIRT_OPACITY=<float> (#194). For this program only, the result at 0x9b8 becomes the given constant. Off unless set; in the shader cache key. In game at 0.4: no drips, haze and specks kept. This is a workaround: it replaces the channel instead of repairing it. The patch builds on the stripes patch from #189 (it uses its pin_const); with it, it applies to d044248 and compiles without warnings.

Still open. The patio slider's lower pane and the bathroom window keep grey vertical smears with the switch on. Pinning every read of this program leaves the slider unchanged, so another program draws it. Does anyone know why the dirt texture's opacity channel would come out differently from the console?

Evidence: live pins and what was ruled out

Live pins at the desk window (a diagnostics build of ours, on 6dbc3e7), measured as the spread of column means across a pane (about 1.5 with drips):

  • The read at 0x5b0 alone pinned: drips gone (1.54 to 0.14), but the glass turns opaque white.
  • Only the clamped opacity at 0x9b8 pinned at 0.4: drips gone (1.07-1.12 to 0.78), pane brightness unchanged (206 against 208 of 255), haze and specks kept.
  • The dirt color channels (0xa18-0xa24) pinned: drips stay.
  • Other single reads pinned (0x3f8, 0x400, 0x760, 0x820-0x838, 0x8ac, 0x908): drips stay.

Ruled out, one launch each: stand-in textures (a local change to KEEP_SHOWN in descriptor/host.rs), the older BC7 dictionary reading (VICTORY_BC7_DICTIONARY=0), and shadows (the sun-shadow reads 0x908-0x3958 pinned).

No game files, captures or screenshots included.

Fix: pull request #194.

**@⁠kyle41313** on GitHub · 2026-12-02 13:59 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/190) **Symptom.** The house desk window's glass shows grey vertical drips. Console footage of the same window under a similar sun shows even milky haze with dirt specks, and no drips. **Setup.** RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off (`VICTORY_BVH_BUILDER=0`). **Cause, as far as found.** The house glass pixel program `b37565055f2f7d3b` reads a dirt texture at console offset 0x5b0 (`image_sample v[43:46]`, 2D). Its fourth channel, clamped at 0x9b8 (`v_max_f32 v41, v46, v46 clamp`), sets how much dirt covers each pixel. That channel draws the drips. Why it differs from the console is not known. **Fix: `VICTORY_GLASS_DIRT_OPACITY=<float>`** (#194). For this program only, the result at 0x9b8 becomes the given constant. Off unless set; in the shader cache key. In game at 0.4: no drips, haze and specks kept. This is a workaround: it replaces the channel instead of repairing it. The patch builds on the stripes patch from #189 (it uses its `pin_const`); with it, it applies to d044248 and compiles without warnings. **Still open.** The patio slider's lower pane and the bathroom window keep grey vertical smears with the switch on. Pinning every read of this program leaves the slider unchanged, so another program draws it. Does anyone know why the dirt texture's opacity channel would come out differently from the console? <details> <summary>Evidence: live pins and what was ruled out</summary> Live pins at the desk window (a diagnostics build of ours, on 6dbc3e7), measured as the spread of column means across a pane (about 1.5 with drips): - The read at 0x5b0 alone pinned: drips gone (1.54 to 0.14), but the glass turns opaque white. - Only the clamped opacity at 0x9b8 pinned at 0.4: drips gone (1.07-1.12 to 0.78), pane brightness unchanged (206 against 208 of 255), haze and specks kept. - The dirt color channels (0xa18-0xa24) pinned: drips stay. - Other single reads pinned (0x3f8, 0x400, 0x760, 0x820-0x838, 0x8ac, 0x908): drips stay. Ruled out, one launch each: stand-in textures (a local change to `KEEP_SHOWN` in descriptor/host.rs), the older BC7 dictionary reading (`VICTORY_BC7_DICTIONARY=0`), and shadows (the sun-shadow reads 0x908-0x3958 pinned). </details> No game files, captures or screenshots included. Fix: pull request #194.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 14:04:57 +00:00
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#190
No description provided.