Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: Exporting screenshots at resolutions higher than current game resolution makes water display incorrectly

Open pivotman319-owo opened this issue 1 year ago • 1 comments

Describe the bug

Taking screenshots using the png command at a viewport resolution that is higher than the game's current screen resolution will cause projected water refractions to vertically scale incorrectly throughout the entire framebuffer.

Exporting at 1920x1080px (native resolution): Water displaying correctly when exported at current game resolution

Exporting at 3840x2160px (2x native resolution): Water refraction vertically displaying incorrectly at 2x export resolution

To Reproduce

  1. Launch game with -w 1920 -h 1080
  2. Launch any map with water; the base Portal 2 maps from a1-a3 have plenty of reflective water
  3. Move and look directly at a water surface
  4. Spew current ingame framebuffer by invoking png 3840 2160 test
  5. Check the spewed framebuffer in mod screenshots directory

Issue Map

N/A

Expected Behavior

Water should be displaying correctly at higher export resolutions

Operating System

Not Applicable

pivotman319-owo avatar Dec 07 '24 21:12 pivotman319-owo

Can you test this on the next release? A potential fix was merged recently.

Gocnak avatar Mar 23 '25 22:03 Gocnak