ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.66k stars 615 forks source link

Pistol crosshairs not displaying correctly #3463

Open ddulude95 opened 10 months ago

ddulude95 commented 10 months ago

It seems to be that the 9mmhandgun and 357 crosshair sprites are not displaying correctly in any resolution I try. At first I thought it was a 1440p widescreen scaling issue, but even switching to 800x600 or 1024x768 the crosshairs still are not displaying correctly. See my example screenshot. And even at one point last night, I was able to fix it by switching away from 1440p, going to any other resolution, then going back to 1440p and it would display correctly. That wasn't fixing it today.

This is on a clean "half-life/valve" folder (renamed existing folder and then verified game files)

crosshairs_bug

darkreader2636 commented 10 months ago

By looking at sprite files this is sure a rendering issue image

ddulude95 commented 10 months ago

Yeah it definitely is, I checked the sprites as well and the files are fine. Not sure what's happening for them to be rendered like this. Only seems to be the pistol and 357 as well. Everything else including hud and other weapon crosshairs seems fine

ph1sh55 commented 10 months ago

Perhaps it may have to do with this old bug valve introduced long ago? - https://tfcresource.teamfortressclassic.org/steam_era_blurry_crosshair_fix.html You may want to check if gl_texturemode "GL_NEAREST_MIPMAP_LINEAR" changes anything?

SirYodaJedi commented 9 months ago

gl_texturemode doesn't affect sprites that aren't part of the 3D scene; use gl_spriteblend instead.

ph1sh55 commented 9 months ago

gl_texturemode doesn't affect sprites that aren't part of the 3D scene; use gl_spriteblend instead.

perhaps it should not- but the reality is it absolutely does, at least in Team Fortress Classic. You can clearly see the crosshair clarity difference between those modes when loading TFC for the last ~20 years. (examples shown in the link I included).

ddulude95 commented 9 months ago

gl_texturemode doesn't affect sprites that aren't part of the 3D scene; use gl_spriteblend instead.

perhaps it should not- but the reality is it absolutely does, at least in Team Fortress Classic. You can clearly see the crosshair clarity difference between those modes when loading TFC for the last ~20 years. (examples shown in the link I included).

I tried the fix listed on that TFC website, but it changed nothing regarding the crosshairs unfortunately.

vektor451 commented 1 month ago

this might be 8 months old, but looking at the sprite files for the crosshair personally i've found out that the crosshairs are actually misaligned in the file and aren't centered. if you center the crosshairs yourself it seems to work perfectly. might not work for your case, but it worked for me.