garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

Lighting issue

Open VCSoldier opened this issue 3 years ago • 8 comments

Ive been encountering a lighting issue recently, i fixed it temporarily by doing "mat_dxlevel 110" but it seems to have came back image i dont know why it happens or why it fixes from a dxlevel change.

Bug is on the x86-64 Branch, spawning models/props_debris/plaster_floor001a.mdl and applying models/props_debris/plasterceiling008a to the first submaterial seems to cause it. grabbing it with physgun or interacting seems to fix it for a slight second

VCSoldier avatar Mar 24 '21 17:03 VCSoldier

110 ??? As far as I know, there are only parameters 90 and 95, i.e. mat_dxlevel 90 - DX9 with Shader Model 2 mat_dxlevel 95 - DX9 with Shader Model 3

MARK2580 avatar Mar 25 '21 12:03 MARK2580

110 does work, as it shows up as dx11 on the video settings menu at the bottom right,

VCSoldier avatar Mar 25 '21 18:03 VCSoldier

110 does work, as it shows up as dx11 on the video settings menu at the bottom right,

Source 1 never worked on DX10/11/12. And it says that the level of the "HARDWARE" DirectX, and not at which the game itself is now working. Source Engine 1 only knows DirectX 9.0c

MARK2580 avatar Mar 26 '21 06:03 MARK2580

still this isnt very helpful, i need to know what the hell is causing it, because it seems like just changing the dxlevel in general is fixing it

VCSoldier avatar Mar 27 '21 23:03 VCSoldier

image

gm_spawn models/props_debris/plaster_floor001a.mdl;material_override models/props_debris/plasterceiling008a

Cannot reproduce.

robotboy655 avatar Mar 29 '21 03:03 robotboy655

I meant replace the first SUBMATERIAL, i used sub mat so its the one after "none"

VCSoldier avatar Mar 29 '21 03:03 VCSoldier

also it seems to be an issue with lightmaps, tried clearing addons verifying, nothing worked

VCSoldier avatar Mar 29 '21 03:03 VCSoldier

Using lua_run Entity(1):GetEyeTrace().Entity:SetSubMaterial( 0, "models/props_debris/plasterceiling008a" ) still cannot reproduce.

Make sure you are running on mat_dxlevel 95. For anything else I cannot provide support. Make sure you are not using -dxlevel or -autoconfig (or similar) launch parameters.

Try running with -noaddons -noworkshop Try running with NO mountable games (after a restart) Try messing around with your video settings, and your GPU control panel. You can also try using debug_dump console command (creates a file listing all non default convars) to see if there's some convar that is misconfigured. You can also try making sure mount.cfg is empty Also try deleting (or renaming) your materials/, download/ and lua/ folders, verify the game and see if that solves it in case something you put there is causing issues.

I can't really think of anything else.

robotboy655 avatar Mar 29 '21 05:03 robotboy655