halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Pistol crosshairs not displaying correctly

Open ddulude95 opened this issue 2 years ago • 8 comments

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

ddulude95 avatar Nov 18 '23 15:11 ddulude95

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

darkreader2636 avatar Nov 18 '23 18:11 darkreader2636

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

ddulude95 avatar Nov 18 '23 18:11 ddulude95

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?

ph1sh55 avatar Nov 18 '23 20:11 ph1sh55

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

SirYodaJedi avatar Nov 19 '23 00:11 SirYodaJedi

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).

ph1sh55 avatar Nov 19 '23 16:11 ph1sh55

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.

ddulude95 avatar Nov 19 '23 16:11 ddulude95

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.

vektor451 avatar Jul 23 '24 23:07 vektor451

I don't know if I'm breaking a rule about github posts, but changing the value in the last line of "crosshair" from 24 to 23 seems to have corrected it slightly. (I assume it also applies to the scope's default value of 2560 by reducing one number less)

Gema2k avatar Jan 20 '25 10:01 Gema2k