Object Lighting Glitch

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
mym
Posts: 47
Joined: 09 Feb 2015, 13:31
Gitlab profile: https://gitlab.com/mym34

Re: Object Lighting Glitch

Post by mym »

Thanks for the explanation.
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Object Lighting Glitch

Post by psi29a »

scrawl wrote:Well, I'm tired of not owning the affected hardware to diagnose this issue myself, so I ordered a HD 6450 on ebay. When it gets here I'll look into the issue and try to find a workaround.
Now that is dedication! Cheers man! :D
User avatar
lysol
Posts: 1513
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: Object Lighting Glitch

Post by lysol »

psi29a wrote:
scrawl wrote:Well, I'm tired of not owning the affected hardware to diagnose this issue myself, so I ordered a HD 6450 on ebay. When it gets here I'll look into the issue and try to find a workaround.
Now that is dedication! Cheers man! :D
Hahaha, yes, the word dedication just got redefined.
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Object Lighting Glitch

Post by scrawl »

Quick update. Got the HD 6450 installed, fired up OpenMW 0.38. Didn't see any bugs with the default (open source) driver. But with the proprietary fglrx driver installed, I do have the lighting glitch. This further increased my suspicion that AMD is to blame. But let's not jump to conclusions yet.
fglrx.png
Now I need to set up a development environment on this PC so that I can start trying workarounds. Hopefully I have enough space for that, it's all running off a live USB stick.

Btw, I was surprised how well OpenMW runs on this potato card that cost 15 bucks. Never dropped below 60 fps even in cities. It is slightly faster with the fglrx driver, but the open source driver was performing very good as well.
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Object Lighting Glitch

Post by psi29a »

scrawl wrote:Btw, I was surprised how well OpenMW runs on this potato card that cost 15 bucks. Never dropped below 60 fps even in cities. It is slightly faster with the fglrx driver, but the open source driver was performing very good as well.
This needs to go on the blog... emphasis mine.
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Object Lighting Glitch

Post by scrawl »

What I've gathered so far is, the driver for some reason sets the glColorMaterial to GL_EMISSION, even though we're not telling it to.

Using shaders (i.e. enabling the 'force shaders' option added in OpenMW 0.39) works around the issue. So, if you're affected, just use the nightly builds, and add this line to your settings file:

Code: Select all

[Shaders]
force shaders = true
I'm still looking for other workarounds.
User avatar
Svetomech
Posts: 69
Joined: 01 Jun 2014, 12:51
Location: Moscow
Contact:

Re: Object Lighting Glitch

Post by Svetomech »

The similar bug is also present when running the game on Intel HD 4000. I know, it's really not a videocard one would use to play videogames, but I'm in dire need of prolonged battery life (besides, switching to Radeon HD 7670M that my laptop also has does only help if I don't activate the water shader, enabling it ~equates FPS on both videocards).
User avatar
GameEnder
Posts: 34
Joined: 19 Jul 2014, 05:08

Re: Object Lighting Glitch

Post by GameEnder »

I did some looking in to this lighting problem on Windows and found that Driver 13.12 was the last driver version that the lighting bug dose not happen on.


A archive of old drivers from 3DGuru has a copy of the 13.12 Opengl DLL's. https://mega.nz/#F!8tlAhDyQ!2AkAQukJKAY ... A!g4tTiZ7A Putting those DLL's in the OpenMW directory fixes the problem completely with zero performance difference from what I can tell on both a R7-250 & a R9-290.

I anyone has some experience in driver hacking could look at these and compare them and create some kind of better workaround?
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Object Lighting Glitch

Post by scrawl »

Hell froze over AMD fixed the bug! Or so they say.
Re: Incorrect OpenGL fixed function rendering
dwitczak
dwitczak Employee Feb 23, 2017 3:53 AM (in response to pchiruma)

This issue has been fixed internally. One of the coming driver releases should start to work as expected. Thanks for reporting!
Anyone know if there has been a new driver since?

In any case, a user on reddit suggests another potential workaround:
[OpenMW] I found a fix for the AMD flickering tree bug. (self.Morrowind)
You have to change the Anti-Aliasing settings in Catalyst Control Center to Adaptive Multisampling.
User avatar
damiel
Posts: 34
Joined: 16 Apr 2016, 11:46

Re: Object Lighting Glitch

Post by damiel »

scrawl wrote: 29 Jul 2017, 21:56 Hell froze over AMD fixed the bug!
Haha, thanks for that piece of joy scrawl :D
Post Reply