When I start Cogs the Logo appears, and then the screen stays black.
When looking at the console output the following lines appear suspicious:
Shader compile log for data/effects/TextureBumpCubemap.fsh:
Fragment shader failed to compile with the following errors:
ERROR: 0:41: error(#132) Syntax error: 'smooth' parse error
ERROR: error(#273) 1 compilation errors. No code generated
It seems that smooth may be a keyword or something like that (maybe only my driver, fglrx?). Since when I replace smooth with something else, i.e. smoother
the game works.
The following patch fixes the issue for me:
--- TextureBumpCubemap.fsh 2011-07-26 21:53:45.475304298 +0200
+++ TextureBumpCubemap.fsh_new 2011-07-26 21:53:45.508303520 +0200
@@ -38,8 +38,8 @@
//** normal and a "bumped" normal. Note that this "flat"
//** normal is based on the texture space coordinate basis.
//**--------------------------------------------------------
- vec3 smooth = vec3(0.5, 0.5, 1.0);
- fvNormal = smooth*(1.0-bumpiness) + fvNormal*bumpiness; //lerp( smooth, fvNormal, bumpiness );
+ vec3 smoother = vec3(0.5, 0.5, 1.0);
+ fvNormal = smoother*(1.0-bumpiness) + fvNormal*bumpiness; //lerp( smoother, fvNormal, bumpiness );
fvNormal = normalize( ( fvNormal * 2.0 ) - 1.0 );
//**---------------------------------------------
Good catch! It looks like the ATI drivers keep "smooth" as a reserved word.
Alex's patch will get you going in the short term, but we're going to put an updated build on the Humble Bundle site soon to correct this.
--ryan.
This is fixed in the build we just uploaded.
It should be live on the Humble Bundle site now. Just redownload the Linux
version with your existing download key.
You can get rid of the existing install by running the uninstall-cogs.sh script
in the game's installation directory. Then install the new build like you did
the previous one.
--ryan.
When I start Cogs the Logo appears, and then the screen stays black. When looking at the console output the following lines appear suspicious: Shader compile log for data/effects/TextureBumpCubemap.fsh: Fragment shader failed to compile with the following errors: ERROR: 0:41: error(#132) Syntax error: 'smooth' parse error ERROR: error(#273) 1 compilation errors. No code generated It seems that smooth may be a keyword or something like that (maybe only my driver, fglrx?). Since when I replace smooth with something else, i.e. smoother the game works. The following patch fixes the issue for me: --- TextureBumpCubemap.fsh 2011-07-26 21:53:45.475304298 +0200 +++ TextureBumpCubemap.fsh_new 2011-07-26 21:53:45.508303520 +0200 @@ -38,8 +38,8 @@ //** normal and a "bumped" normal. Note that this "flat" //** normal is based on the texture space coordinate basis. //**-------------------------------------------------------- - vec3 smooth = vec3(0.5, 0.5, 1.0); - fvNormal = smooth*(1.0-bumpiness) + fvNormal*bumpiness; //lerp( smooth, fvNormal, bumpiness ); + vec3 smoother = vec3(0.5, 0.5, 1.0); + fvNormal = smoother*(1.0-bumpiness) + fvNormal*bumpiness; //lerp( smoother, fvNormal, bumpiness ); fvNormal = normalize( ( fvNormal * 2.0 ) - 1.0 ); //**---------------------------------------------