luciusDXL / TheForceEngine

Modern "Jedi Engine" replacement supporting Dark Forces, mods, and in the future Outlaws.
https://TheForceEngine.github.io
GNU General Public License v2.0
946 stars 71 forks source link

[🐛] Anisotropic filtering causes texture artifacts in true color #392

Closed JakeSmarter closed 1 day ago

JakeSmarter commented 4 months ago

Version: v1.09.540-264-g341db341+ OS: Linux Distribution: Flathub

When “Anisotropic Filter Quality” is set to 1.0 in “True Color” mode you can see artifacts on texture edges where textures repeat. This happens when using the hardware GPU as well as Mesa 3D’s software renderer. This leads me to suspect that there is a bug in the anisotropic filter algorithm.

OpenGL
Broadcom
V3D 4.2
true color
OpenGL
Mesa
llvmpipe (LLVM 17.0.6, 128 bits)
true color
OpenGL
Mesa
llvmpipe (LLVM 17.0.6, 128 bits)
8-bit classic
OpenGL Broadcom V3D 4.2 true colorOpenGL Mesa llvmpipe (LLVM 17.0.6, 128 bits) true colorOpenGL Mesa llvmpipe (LLVM 17.0.6, 128 bits) 8-bit classic
luciusDXL commented 2 months ago

The algorithm is fine, the issue is that the setting is too high for the padding size and needs to be adjusted. This should be fixed in the next release.

JakeSmarter commented 2 months ago

I am happy you were able to track down the issue.