Page 2 of 2
Re: Possible solutions for shader problems with AMD cards
Posted: Fri Dec 02, 2011 8:46 pm
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
Re: Possible solutions for shader problems with AMD cards
Posted: Fri Dec 02, 2011 10:16 pm
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
Re: Possible solutions for shader problems with AMD cards
Posted: Fri Dec 02, 2011 10:41 pm
by Ironfist
Unfortunately that link is the login for your account, you need to post the link to the individual file instead.
Ironfist
Re: Possible solutions for shader problems with AMD cards
Posted: Fri Dec 02, 2011 11:11 pm
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').
Re: Possible solutions for shader problems with AMD cards
Posted: Fri Dec 02, 2011 11:34 pm
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
Re: Possible solutions for shader problems with AMD cards
Posted: Fri Dec 02, 2011 11:55 pm
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.
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 12:07 am
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
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 12:10 am
by Cody
I always had to clean out all ATI files after a full uninstall... usually took three reboots to set the replacement driver.
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 12:59 am
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
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 1:30 am
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.
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 1:50 am
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.
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 2:14 am
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).
Re: Possible solutions for shader problems with AMD cards
Posted: Sat Dec 03, 2011 12:06 pm
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.
Re: [EDIT: ACTUAL!] solution for shader problems with AMD .
Posted: Sat Dec 03, 2011 2:13 pm
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);}