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 why does the adding of lighting, blen... mirro General 0 Mon Feb 11, 2019 3:03 am View latest post
No new posts Question about security of shader dev... Werner Modenbach General 5 Wed Jan 30, 2019 5:50 pm View latest post
No new posts Happy New Year to all OSG Users Chris Hanson General 0 Mon Jan 07, 2019 10:17 am View latest post
No new posts osg-users Digest, Vol 138, Issue 27 Zachary1234 General 0 Tue Jan 01, 2019 1:16 am View latest post
No new posts openGL error 'stack overflow' at afte... nebsar General 7 Sun Dec 23, 2018 6:05 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