OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Lispsm : Shader error, on ATI X1600 Mobile


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Adrian Egli OpenSceneG...
Guest





PostPosted: Mon Oct 20, 2008 8:28 am    Post subject:
Lispsm : Shader error, on ATI X1600 Mobile
Reply with quote

-> 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

------------------
Post generated by Mail2Forum
Back to top
Wojciech Lewandowski
Guest





PostPosted: Mon Oct 20, 2008 9:09 am    Post subject:
Lispsm : Shader error, on ATI X1600 Mobile
Reply with quote

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 -----
Quote:
From: Adrian Egli OpenSceneGraph (3D) (
Only registered users can see emails on this board!
Get registred or enter the forums!
)
To: OpenSceneGraph Users (
Only registered users can see emails on this board!
Get registred or enter the forums!
)
Sent: Monday, October 20, 2008 10:27 AM
Subject: 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






------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Shared openGL Context generating Glyp... pioupiou General 0 Fri Jul 19, 2019 3:23 pm View latest post
No new posts OpenGL Error 'invalid value' when usi... Blanky General 1 Thu Jun 27, 2019 12:10 am View latest post
No new posts Layered rendering with a geometry shader AnyOldName3 General 8 Tue May 14, 2019 11:25 pm View latest post
No new posts Write Image From texture Generated by... GarfieldPig General 1 Wed May 08, 2019 11:42 am View latest post
No new posts override the texture with the gl_frag... GarfieldPig General 1 Sun Apr 14, 2019 8:31 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP