Screenshots skewed

Issue #63 resolved
Maik Merten created an issue

Making screenshots at 1366x768 fullscreen will result in skewed screenshots:

daikatana000.jpg

This might be related to the map rendition not filling the complete screen, meaning there's a slight mismatch between the screen dimensions and the render size. As can be seen in the following screenshot a few pixels on the left and right hand size are filled with console content. The HUD seems unaffected. (edit: As in "the HUD seems to be placed correctly")

edge.jpg

edit: This is on Linux, not sure if other platforms are affected as well.

Comments (7)

  1. Knightmare66

    I just reproduced this under Windows 7 64-bit, using the nVidia 320.18 drivers on a GTX 670. This also happens at 1366x768 windowed, but not at 1360x768, so you can still play at that resolution windowed.

    What's going in is that the 3D viewport isn't filling the entire window for some reason. I also tried this under several modified Q2 engines that support widescreen and/or custom resolutions, and the EXACT SAME THING happens. It doesn't happen under Q3 engine games like RtCW and Jedi Academy, though.

    Congrats, you've just found a weird Q2 engine bug.

  2. Американский Шпион

    actually, this is not a Q2 bug, but nvidia drivers bug. it will happen in EVERY game using this resolution. it first occured to me in Fallout New Vegas

  3. Knightmare66

    I just fixed the undersized viewport- it was rounding the viewport width down to the nearest multiple of 8 (1360). The screenshots at that resolution are still messed up, though.

    As far as it being a driver issue, Q3 engine games like RtCW and Jedi Academy take JPEG screenshots perfectly at this (custom) resolution, but only the TGA ones are messed up.

  4. Knightmare66

    OK, it does appear to be driver-related. Reading the pixel buffer as RGBA results in a normal screenshot at 1366x768, while reading it as RGB yields the above skewed mess.

  5. Maik Merten reporter

    If this is a driver issue, this seems to be cross-vendor and cross-platform. I have this issue on Linux with the open-source Mesa drivers for AMD APUs (that's what the screenshots were produced with) and I'm pretty sure I also witnessed this problem on Windows 7 with Intel drivers.

  6. Knightmare66

    Screenshots will now be sized down to the nearest multiple of 4 in width (1366x768 resolution will result in a 1364x768 screenshot). This change fixes the grayscale and skewing corruption.

  7. Log in to comment