Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[HL2][Linux][NVIDIA] No dynamic lighting for NPCs when 'Shadow details' set on 'High'

Open ar-lex opened this issue 13 years ago • 13 comments

The NPCs in HL2 and episodes don't get dynamic lighting when 'Shadow details' set on 'High'. Everything is OK in Left 4 Dead 2 Linux Beta. I don't have this issue when running HL2 with WINE as well.

Shadow details - High (notice dynamically lighted eyeballs): shadow_details-high Shadows details - Medium: shadow_details-medium

Steam System Information: https://gist.github.com/ar-lex/5563817 glxinfo output: https://gist.github.com/ar-lex/5563825

ar-lex avatar May 12 '13 15:05 ar-lex

edit: Actually, my post is more related to #652 - but flashlight also fails to apply to these items

2013-05-10_00391 2013-05-10_00098 2013-05-11_00041

johndrinkwater avatar May 12 '13 20:05 johndrinkwater

This is surely a bug related to NVIDIA. I tried to run HL2 on Ubuntu 13.04 at my Intel Ivy Bridge (HD4000) based laptop and had no such problem. Also I wanted to add, that when I switch 'Shadow details' parameter, I get the following output in the console:

Unknown command: mat_disable_d3d9ex
Redownloading all lightmaps

ar-lex avatar May 18 '13 22:05 ar-lex

Getting this exact same problem. High shadows: http://steamcommunity.com/sharedfiles/filedetails/?id=146550359 Medium shadows: http://steamcommunity.com/sharedfiles/filedetails/?id=146550414 And for kicks, low shadows: http://steamcommunity.com/sharedfiles/filedetails/?id=146550727

https://gist.github.com/Electrifry/5610735 <--- System info

I'm also going to try running this without my dedicated gpu and see if the problem persists.


Just like ar-lex, the problem goes away when running the game with my intel processor.

Electrifry avatar May 20 '13 17:05 Electrifry

Interestingly enough I didn't have this problem, but noticed that NPCs don't receive flashlight shadows but their eyes do - so here is the opposite version the demonic Alyx: This screenshot is from Episode One with shadow detail set to "High". Note: it's only the flashlight shadows, normal unobstructed flashlight lights the eyes correctly.

system information

dscharrer avatar May 26 '13 11:05 dscharrer

I have this problem as well, on an NVidia GTX 560 Ti:

High: 2013-05-30_00004 Medium: 2013-05-30_00003

This is in Episode 1. Have not played HL2 or E2 yet, so I can't say if they suffer as well.

junefrench avatar May 31 '13 03:05 junefrench

I have the same problem on an Nvidia 285GTX. I tested this on the steampipe beta version of HL2 in windows. This was not a problem in d3d9 in windows on the same card. I agree with ar-lex about the possibility of an nvidia bug. This would not be the first time there were opengl issues in a linux game that were related to nvidia opengl only. I wanted to test the theory with the nouveau drivers, but I could never get the games to start using the nouveau driver. I also tried the windows steampipe version in wine using -dxlevel 90 and setting shadows to high. There was no flashlight issue there either, so it seems isolated to the native linux version.

pjansen33621 avatar Jun 05 '13 22:06 pjansen33621

I finally got the chance to test this using the nouveau open source driver with the Nvidia 285GTX. This issue does not exist using the nouveau driver. This does appear to be a linux nvidia driver bug.

pjansen33621 avatar Aug 10 '13 20:08 pjansen33621

I tried again with nvidia driver 325.15, and still have this issue. I also got debug info on the command line.

IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 120 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 120 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 120 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 120 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 136 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 136 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 136 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 136 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 28 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 28 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 28 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 28 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 2 IDirect3DDevice9::CreatePixelSCGLMShaderPair::SetProgramPair: Centroid masks differ at link time of vertex shader lightmappedgeneric_vs20 and pixel shader decalbasetimeslightmapalphablendselfillum2_ps20b! hader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file eyes_flashlight_ps20b ps-index 0 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file eyes_flashlight_ps20b ps-index 0 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file eyes_flashlight_ps20b ps-index 0 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file eyes_flashlight_ps20b ps-index 0 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 40 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 40 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 40 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 40 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 24 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 24 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 24 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 24 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file teeth_flashlight_ps20b ps-index 0 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file teeth_flashlight_ps20b ps-index 0 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file teeth_flashlight_ps20b ps-index 0 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file teeth_flashlight_ps20b ps-index 0 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 40 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 40 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 168 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 168 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid masLoaded program cache file "glshaders.cfg", total keyvalues: 600, total successfully linked: 600

pjansen33621 avatar Aug 10 '13 22:08 pjansen33621

@johndrinkwater Driver engineers have tracked this down and it appears to be a bug in the shader that gets worked around on certain versions of hardware. I'll contact you through email and we can sort out how to proceed.

nvMcJohn avatar Mar 10 '14 19:03 nvMcJohn

Sure thing, if I remember correctly that was my ASUS GT630; upgraded to a 660Ti but still got the old card sitting around in a box if you need further hw/fw deets

johndrinkwater avatar Mar 10 '14 19:03 johndrinkwater

@nvMcJohn, I still have the same GTS450 as in first post. This problem persists in Ubuntu 14.04 with 331.38 drivers. Feel free to ask, if you need any other info.

ar-lex avatar Mar 10 '14 20:03 ar-lex

@nvMcJohn - I still have the GTX285 that I was using as well. The problem persists with nvidia-331.49 driver.

pjansen33621 avatar Mar 11 '14 12:03 pjansen33621

Thanks, this is fixed. A future build will include the fix!

Plagman avatar Mar 11 '14 21:03 Plagman