openmoh / openmohaa

Open re-implementation of Medal of Honor: Allied Assault with modern features and bugfixes from ioquake3
GNU General Public License v2.0
307 stars 21 forks source link

Visible seams in main GUI/menus, and in rendered sky #375

Open mohaa-man opened 1 week ago

mohaa-man commented 1 week ago

Describe the bug There are visible seams in the main menu/GUI that sometimes move or go away, as if along rectangular tile(s). Some seams are horizontal, some vertical. Their appearance/placement seems to shift in part due to potential math errors in display scaling. When navigating through the GUI (e.g. from Main GUI to Multiplayer menu, model/skin selection, etc.), the display scaling/alignment shifts slightly up and/or down, implying perhaps a boresighting or FOV calculation rounding inconsistency. This causes seams to appear/disappear and or change locations.

To Reproduce Steps to reproduce the behavior:

  1. Launch the game (I'm using 2560x1600 resolution)
  2. Navigate through various GUI menus and observe seams
  3. Pass cursor over various GUI elements; note seams appear around various changed GUI elements (e.g. the "Multiplayer" door gets a black box around it when it brightens, this should not happen)
  4. Play a multiplayer map, and observe the sky; various prominent seams are always visible

Expected behavior There shouldn't be visible black lines/seams/gaps in the GUI, nor in the sky.

Screenshots (OPTIONAL) If applicable, add screenshots to help explain your problem.

Screenshot from 2024-09-28 22-02-06 Screenshot from 2024-09-28 22-01-44 Screenshot from 2024-09-28 22-01-42

Version information (please complete the following information):

Additional context (OPTIONAL) I have tried toggling the "Use Conformant Texture Clamping" option in the nVidia Settings panel, this has no effect. The original EA version running in WINE did not exhibit this behavior at this resolution (nor at 2560x1440, the only two I tried). Admittedly it was running on the AMD iGPU (5800h/Vega 8) in WINE, as I could never get it to run on the nVidia.

mohaa-man commented 1 week ago

As suggested by pryon in Discord, 'r_forceClampToEdge 1' does improve this a lot; the sky issue seems to go away, and most of the issues in the GUI go away as well, although thin outlines are still visible around certain GUI elements. I have attached a SS of the GUI; note the thin box around the spinning fan near the cursor:

Screenshot from 2024-09-28 22-22-17