ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.57k stars 596 forks source link

[CS;CZ] [HL25] Model textures get warped further away #3658

Open HLRaven opened 6 months ago

HLRaven commented 6 months ago

image (Schoolgirl.mdl very obvious texture corruption) I noticed that in CS:CZ and Deleted Scenes models seem to warp around with their textures the more you walk away from the model, most noticable is the civilians in CSCZDS, but it does happen on the normal playermodels aswell but very subtle.

image

Is this a model issue or a shader issue? (urban, gsg9, gign, spetsnaz subtle texture corruption on the back of their helmets)

Maharic commented 6 months ago

It seems to me that this is happening because the 25th build applies texture filtering to the character models, while the legacy version does not. Or at least not in the same way. And then, when you apply the increase of 90° FOV on top of that, the texture warping on the character models is exacerbated.

Using texture mode gl_linear fixes the warping versus using gl_linear_mipmap_linear.

So, texture mode gl_linear_mipmap_linear is functioning differently in the 25th build versus the legacy build.

marigi64 commented 5 months ago

While it's not as apparent, it is also shown in hl1 (Barney's face), which I found most noticeable with the hev battery item and the Gman. mip1 mip2 mip3

Haco commented 5 months ago

It seems to me that this is happening because the 25th build applies texture filtering to the character models, while the legacy version does not. Or at least not in the same way. And then, when you apply the increase of 90° FOV on top of that, the texture warping on the character models is exacerbated.

Using texture mode gl_linear fixes the warping versus using gl_linear_mipmap_linear.

So, texture mode gl_linear_mipmap_linear is functioning differently in the 25th build versus the legacy build.

gl_linear doesn't fix the issue completely because it creates another. Now the far parts of the map/world are pixelated/unfiltered (similar to using gl_nearest).

gl_linear - models fixed, but check the far wall behind the vent cs_assault0000

gl_linear_mipmap_linear - weapon and player models blurry/filtered again cs_assault0002

You can see the difference better here (open image in fullscreen)

gl_linear cs_assault0003

gl_linear_mipmap_linear cs_assault0004