View Issue Details

IDProjectCategoryView StatusLast Update
0004962The Dark ModGraphicspublic06.05.2019 02:52
ReporterNightcrawler Assigned Toduzenko  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinux x64OSUbuntuOS Version18.10
Product VersionTDM 2.07 
Target VersionTDM 2.07Fixed in VersionTDM 2.07 
Summary0004962: Lightning stops working in TDM v2.07
DescriptionLight sources do not produce any visible light in TDM v2.07beta.
Additional InformationI attached some screenshots of the same scenes in tdm v2.07 and tdm v2.06 to illustrate this issue.
TagsNo tags attached.

Relationships

related to 0004961 resolvedduzenko Tdm v2.07 crashes as soon as you enter the game if "Maps" was chosen as shadow implementation. 

Activities

Nightcrawler

Nightcrawler

17.01.2019 00:20

reporter  

light_bug_screenshots.zip (4,232,387 bytes)
Springheel

Springheel

17.01.2019 02:09

administrator   ~0011368

Any relation to this? http://forums.thedarkmod.com/topic/19807-lights-not-working-fixed/
nbohr1more

nbohr1more

17.01.2019 02:23

developer   ~0011370

Does this happen if you set r_useGLSL 0 ?

Please post a condump and your Darkmod.cfg
nbohr1more

nbohr1more

17.01.2019 02:26

developer   ~0011371

Also:

DRM 3.26.0, 4.18.0-13-generic

Does lighting work if you use AMD's non-free drivers?
Nightcrawler

Nightcrawler

17.01.2019 19:05

reporter  

Darkmod.cfg (12,894 bytes)
Nightcrawler

Nightcrawler

17.01.2019 19:08

reporter   ~0011400

Yes, this http://forums.thedarkmod.com/topic/19807-lights-not-working-fixed/ seems to be the same.

Setting r_useGLSL 0 fixed it for me.

I uploaded my darkmod.cfg if that's still useful
duzenko

duzenko

18.01.2019 12:40

developer   ~0011403

How about the shader compile log?
I believe you're on nVidia 7600? Or Intel?
Nightcrawler

Nightcrawler

18.01.2019 12:58

reporter   ~0011406

No, I'm on AMD Radeon R5.

Not sure where/how to get the shader compile log
nbohr1more

nbohr1more

18.01.2019 15:28

developer   ~0011411

The backtrace from 4961 has GL logging but we normally would want the results from:

1) Open Console
2) reloadGLSLprograms
3) Condump mygraphicissue.txt

thanks
Nightcrawler

Nightcrawler

20.01.2019 16:13

reporter  

graphicsIssue.dump (29,994 bytes)
Nightcrawler

Nightcrawler

20.01.2019 16:15

reporter   ~0011447

Ok, there you go
nbohr1more

nbohr1more

22.01.2019 15:37

developer   ~0011473

Last edited: 22.01.2019 15:39

View 2 revisions

Per stgatilov:

Too late in the development cycle to risk global changes to GL version support.
Updated shaders may be supplied at Moddb when a consensus has been reached about the best approach.

stgatilov

stgatilov

27.01.2019 13:36

developer   ~0011517

Last edited: 27.01.2019 13:37

View 2 revisions

I have the same problem in VMWare Linux VM.
It has:
  OpenGL vendor: VMware, Inc.
  OpenGL renderer: Gallium 0.4 on SVGA3D; build: RELEASE; LLVM;
  OpenGL version: 3.0 Mesa 12.0.6
  v - using GL version 2.0 (core)
I cannot see any sort of lights in any mode.

In fact, we now have stupid problem:
1) If we leave GL_EXT_gpu_shader4 extension in shader, then old GL2 cards and some new Linux drivers cannot get interaction lights working in any mode. Even with hard stencil shadows, which don't actually need this extension.
2) If we remove GL_EXT_gpu_shader4 extension in shader, then most of the cards can stop working with Stencil shadows because of syntax error (using type undefined in GLSL 1.20).

What this story teaches us?
1) Always enable new features by conditional compilation, don't use only uniforms for that. Just like you do #ifdef in C++.
2) GL3 core profile is really important if we want to get TDM friendly to wide range of drivers.

duzenko

duzenko

27.01.2019 14:40

developer   ~0011518

Switch to shadow maps if GL_EXT_gpu_shader4 not supported and gl version >= 4?
stgatilov

stgatilov

28.01.2019 12:53

developer   ~0011520

Last edited: 28.01.2019 12:54

View 2 revisions

Geometry shaders extension is not supported (and core geometry shaders too since it is GL 3.0) =)

We have two workarounds for people with this problem.
Applying either of them is enough:
1) Set "r_useGLSL 0" and restart to revert to old shaders.
2) Download file "interaction_oldgl.fs" from here, and rename it into file "glprogs/interaction.fs" (this path is relative to TDM installation root dir).

I hope the whole mess with extensions will go away by TDM 2.08.

stgatilov

stgatilov

28.01.2019 12:54

developer  

interaction_oldgl.fs (10,748 bytes)
duzenko

duzenko

28.01.2019 13:28

developer   ~0011521

I mean the particular problem reported by actual users, not your experience with VMWare
duzenko

duzenko

03.02.2019 15:06

developer   ~0011537

@Nightcrawler

Can you try the current MESA driver version?
duzenko

duzenko

09.02.2019 09:35

developer   ~0011553

At revision: 7948
Revision: 15621
duzenko

duzenko

19.02.2019 18:27

developer   ~0011625

Please could anyone test and report this
Nightcrawler

Nightcrawler

29.03.2019 23:55

reporter   ~0011699

Just tested the latest 2.07-hotfix and that bug is gone :)

No need to install the newest MESA driver (atm I use OpenGL version: 4.4 Mesa 18.2.8).

Sorry for the waiting...
duzenko

duzenko

05.05.2019 17:41

developer   ~0011784

Ready to close?
stgatilov

stgatilov

06.05.2019 02:52

developer   ~0011786

Fixed in 2.07-hotfix (just released).

Issue History

Date Modified Username Field Change
17.01.2019 00:20 Nightcrawler New Issue
17.01.2019 00:20 Nightcrawler File Added: light_bug_screenshots.zip
17.01.2019 02:09 Springheel Note Added: 0011368
17.01.2019 02:23 nbohr1more Note Added: 0011370
17.01.2019 02:26 nbohr1more Note Added: 0011371
17.01.2019 11:11 STiFU Status new => acknowledged
17.01.2019 11:11 STiFU Product Version => TDM 2.07
17.01.2019 11:11 STiFU Target Version => TDM 2.07
17.01.2019 19:05 Nightcrawler File Added: Darkmod.cfg
17.01.2019 19:08 Nightcrawler Note Added: 0011400
18.01.2019 12:40 duzenko Note Added: 0011403
18.01.2019 12:58 Nightcrawler Note Added: 0011406
18.01.2019 15:27 nbohr1more Relationship added related to 0004961
18.01.2019 15:28 nbohr1more Note Added: 0011411
20.01.2019 16:13 Nightcrawler File Added: graphicsIssue.dump
20.01.2019 16:15 Nightcrawler Note Added: 0011447
22.01.2019 15:37 nbohr1more Note Added: 0011473
22.01.2019 15:37 nbohr1more Target Version TDM 2.07 => TDM 2.08
22.01.2019 15:39 nbohr1more Note Edited: 0011473 View Revisions
27.01.2019 13:36 stgatilov Note Added: 0011517
27.01.2019 13:37 stgatilov Note Edited: 0011517 View Revisions
27.01.2019 14:40 duzenko Note Added: 0011518
28.01.2019 12:53 stgatilov Note Added: 0011520
28.01.2019 12:54 stgatilov Note Edited: 0011520 View Revisions
28.01.2019 12:54 stgatilov File Added: interaction_oldgl.fs
28.01.2019 13:28 duzenko Note Added: 0011521
03.02.2019 15:06 duzenko Note Added: 0011537
09.02.2019 09:33 duzenko Assigned To => duzenko
09.02.2019 09:33 duzenko Status acknowledged => assigned
09.02.2019 09:35 duzenko Note Added: 0011553
09.02.2019 09:35 duzenko Status assigned => resolved
09.02.2019 09:35 duzenko Fixed in Version => SVN
09.02.2019 09:35 duzenko Resolution open => fixed
19.02.2019 18:27 duzenko Note Added: 0011625
19.02.2019 18:28 duzenko Status resolved => feedback
19.02.2019 18:28 duzenko Resolution fixed => reopened
29.03.2019 23:55 Nightcrawler Note Added: 0011699
29.03.2019 23:55 Nightcrawler Status feedback => assigned
05.05.2019 17:41 duzenko Note Added: 0011784
06.05.2019 02:52 stgatilov Target Version TDM 2.08 => TDM 2.07
06.05.2019 02:52 stgatilov Note Added: 0011786
06.05.2019 02:52 stgatilov Status assigned => resolved
06.05.2019 02:52 stgatilov Fixed in Version SVN => TDM 2.07
06.05.2019 02:52 stgatilov Resolution reopened => fixed