Possible solutions for shader problems with AMD cards

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Possible solutions for shader problems with AMD cards

Post by Ironfist »

Do you have somewhere you could put a zipped copy of your log file and post the link here so that we can have a complete look at it all?

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Possible solutions for shader problems with AMD cards

Post by UK_Eliter »

Ironfist wrote:
Do you have somewhere you could put a zipped copy of your log file and post the link here so that we can have a complete look at it all?

Ironfist
Thanks Ironfist / all. The log is here: http://www.box.com/shared/moreq536ht
Last edited by UK_Eliter on Fri Dec 02, 2011 11:11 pm, edited 1 time in total.
User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Possible solutions for shader problems with AMD cards

Post by Ironfist »

Unfortunately that link is the login for your account, you need to post the link to the individual file instead.

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Possible solutions for shader problems with AMD cards

Post by UK_Eliter »

Ironfist wrote:
Unfortunately that link is the login for your account, you need to post the link to the individual file instead.

Ironfist
Oops. Fixed (and the file is called 'latest.zip').
User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Possible solutions for shader problems with AMD cards

Post by Ironfist »

Now I can see the version of the ATI driver you are using, I think I had very similar problems with version 11.9 the upgrade to 11.10 fixed it all. See https://bb.oolite.space/viewtopic.php?f=3&t=11056 I carried out a series of tests with the help of others on here.
So I think upgrade to 11.10 - I have not checked 11.11 yet to know if it is OK or not.

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Possible solutions for shader problems with AMD cards

Post by UK_Eliter »

I tried 11.10, though (and 11.9) and no joy. Perhaps I didn't do a full enough uninstall. Perhaps I'll need to uninstall, delete everything (all files, all registry stuff) and then install 11.10.

Lord, what a faff. I think I'll stop 'upgrading' any of my software - it so often causes problems.
User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Possible solutions for shader problems with AMD cards

Post by Ironfist »

Yes 11.9 was bad and I have just tried 11.11 and the version of OpenGL has gone back to 4.1.1.xxxx under 11.10 it was 4.2.1. This is now giving shader errors again. I think going up in version numbers works if you just install but going back needs an unistall, reboot, re-install route. 11.8 was OK, I am now going back to 11.10.

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Possible solutions for shader problems with AMD cards

Post by Cody »

I always had to clean out all ATI files after a full uninstall... usually took three reboots to set the replacement driver.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Possible solutions for shader problems with AMD cards

Post by Ironfist »

I have actually had to go back to 11.8 to get a fully working system. What I can not find for the time being is the version of ATI driver that installed the OpenGL version 4.2.1 all the ones I have tried tonight have installed various versions of 4,1,1xxx.
I will have another look in the morning.

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Possible solutions for shader problems with AMD cards

Post by UK_Eliter »

Ironfist wrote:
I have actually had to go back to 11.8 to get a fully working system. What I can not find for the time being is the version of ATI driver that installed the OpenGL version 4.2.1 all the ones I have tried tonight have installed various versions of 4,1,1xxx.
I will have another look in the morning.

Ironfist
Yep, my clean install of 11.10 preserved the errors. And disabled my AMD 'overdrive'. Oh dear.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Possible solutions for shader problems with AMD cards

Post by Cody »

You will probably know this... but are you uninstalling the complete CCC suite, or just the driver?
I found that uninstalling everything, including their installer, rebooting, then running the install .exe of the full suite and rebooting again was the best solution.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Possible solutions for shader problems with AMD cards

Post by UK_Eliter »

El Viejo wrote:
You will probably know this... but are you uninstalling the complete CCC suite, or just the driver?
I found that uninstalling everything, including their installer, rebooting, then running the install .exe of the full suite and rebooting again was the best solution.
Hi El Viejo

Yes, I did that - and cleaned out some file and registy stuff manually. Actually, the game looks pretty good now - but I still seem to have errors in the latest log (and I think that some ships I designed are lacking their shaders).
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Possible solutions for shader problems with AMD cards

Post by Svengali »

Please complain/report it in the related OXPs topics.

Most of the problems in your log are well known (and the fix too) for quite some time.
But it looks as if some shaders in OXPs are not updated and the problems will grow, because ppl will c&p.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: [EDIT: ACTUAL!] solution for shader problems with AMD .

Post by UK_Eliter »

Svengali wrote:
Please complain/report it in the related OXPs topics.

Most of the problems in your log are well known (and the fix too) for quite some time.
But it looks as if some shaders in OXPs are not updated and the problems will grow, because ppl will c&p.
Ah - and thanks. So: the problems are in fact in the code of various OXPs (although perhaps the graphics driver exposes some of these errors)? If so, then I've got some work to do - because one of the shaders with problems is from one my OXPs, namely 'Extra Thargoids'. For that OXP I get this error:

Code: Select all


  03:14:59.765 [shader.compile.failure]: ***** ERROR: GLSL fragment shader compilation failed for extraThargoids.fragment:
>>>>> GLSL log:
Fragment shader failed to compile with the following errors:
ERROR: 1:92: error(#397) Illegal escape sequence. 
ERROR: 1:93: error(#132) Syntax error: '{' parse error
ERROR: error(#273) 2 compilation errors.  No code generated
I took the shader in question from, I think, the Thargoid Threat OXP. That OXP - including, I think, the shader - was created by Arexack_Heretic and modified by Eric Walch; and the original version of the shader was the 'freaky thargoid shader' by Ahruman. I'll see what I can find on the boards about this - or rather about the fix.

EDIT: Aha! I've removed a line of space from one of the two shader files at issue, and, in the other one, removed the backslashes that seperated lines - and, instead, joined the lines together to make one very large line - and now my Extra Thargoids shader works!

EDIT: At least the following OXPs are affected: Thargoid Threat; Second Wave; Xarik; Neocaduceus; Kirin. In all of them, the code (or code almost identical to)

Code: Select all

#define LIGHT(idx) \
   { \
      vec3 lightVector   = normalize(gl_LightSource[idx].position.xyz); \
      vec3 reflection   = normalize(-reflect(lightVector, v_normal)); \
      diffuse += gl_FrontMaterial.diffuse * gl_LightSource[idx].diffuse * max(dot(v_normal, lightVector), 0.0); \
      specular += gl_LightSource[idx].diffuse * pow(max(dot(reflection, eyeVector), 0.0), 5.0); \
   }

will work if changed to the following (or the following making necessary adjustments for variations in the source):

Code: Select all

#define LIGHT(idx)  { vec3 lightVector = normalize(gl_LightSource[idx].position.xyz); vec3 reflection = normalize(-reflect(lightVector, v_normal)); diffuse += gl_FrontMaterial.diffuse * gl_LightSource[idx].diffuse * max(dot(v_normal, lightVector), 0.0); specular += gl_LightSource[idx].diffuse * pow(max(dot(reflection, eyeVector), 0.0), 5.0);}
Post Reply