ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.72k stars 624 forks source link

[HL1] Viewmodels disappear/not rendered in software renderer when default_fov is not 90 #2959

Open Yetoo1 opened 4 years ago

Yetoo1 commented 4 years ago

The viewmodels seem to disappear or not render when using the software renderer. This also occurs in multiplayer as well. All the weapons still fire though. A shotgun is supposed to be wielded but there is nothing instead: noshotguninsoftwaremode

HL1 Version: Protocol version 48 Exe version 1.1.2.2/Stdio (valve) Exe build: 19:52:54 Aug 3 2020 (8684)

System information: https://web.archive.org/web/20200831131132/https://pastebin.com/Q9xMiJqs

AlyMar1994 commented 4 years ago

I can confirm this, but only ondefault_fov values other than 90.

91*: 91

90*: 90

Sorry about the large images, the problem of their size didn't occur to me until after I posted...

DosAmp commented 2 years ago

Going back to the pre-Steam era, I can confirm that SW viewmodels already disappear with default_fov != 90 at least on the GOTY version of Half-Life (Exe build 2001-09-14 ‏‎14:34:40).

c2a1_1 c2a1_2

barspinoff commented 1 year ago

Half Life engine, in particular of it's software renderer, inherited logic from WinQuake, in which fov >= 90 is equal to command "r_drawviewmodel 0". https://github.com/id-Software/Quake/blob/master/WinQuake/r_main.c#L616

rtxa commented 1 year ago

Half Life engine, in particular of it's software renderer, inherited logic from WinQuake, in which fov >= 90 is equal to command "r_drawviewmodel 0". https://github.com/id-Software/Quake/blob/master/WinQuake/r_main.c#L616

I wonder if this can be fixed by removing that condition in the executable.

motuzj commented 11 months ago

I have the same issue with the latest version of HL25.

Ubuntu 22.04.3 LTS (64 bit) Protocol version 48 Exe version 1.1.2.2/Stdio (valve) Exe build: 23:25:54 Dec 9 2023 (9907)

Samdan9 commented 6 months ago

I still thing that R_DrawViewModel should be very relevant, I love Half-Life in its software because that's how it was intended to be played. I hate low fov and I wish that this could be fixed.