Hi Adrian, These errors are weird. And it looks like GLSL compiler does not know what is gl_LightSource size ? I am puzzled because ite GLSL built in variable.
I looked for web for this error. I have found a thread on gamedev.net. http://www.gamedev.net/community/forums/topic.asp?topic_id=381615 It looks like ATI does not like indexing with non const variables. You may try modifying the code to use constant index 0.Try searching for gl_LightSource[i] and replace it to gl_LightSource[0] on vertex shader text declared in StandardShadowMap.cpp in line 101. Cheers, Wojtek ----- Original Message ----- From: Adrian Egli OpenSceneGraph (3D) To: OpenSceneGraph Users Sent: Monday, October 20, 2008 10:27 AM Subject: [osg-users] Lispsm : Shader error, on ATI X1600 Mobile -> activateShadow: LISPSM VERTEX glCompileShader "" FAILED VERTEX Shader "" infolog: ERROR: 0:31: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:40: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:41: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:42: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:45: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:47: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:50: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:65: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:66: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:67: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:87: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:96: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:97: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:98: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:110: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:111: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:112: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:126: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:128: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:135: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:136: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:137: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:167: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 0:169: '[' : array must be redeclared with a size before being indexed with a variable ERROR: 24 compilation errors. No code generated. -- ******************************************** Adrian Egli ------------------------------------------------------------------------------ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org