Horde3D

Next-Generation Graphics Engine
It is currently 02.05.2024, 10:36

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ERROR: error(#277)
PostPosted: 06.12.2009, 16:20 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
I'm using default shaders and I'm getting a bunch of these errors in the EngineLog.
Code:
Shader resource 'shaders/model.shader': ShaderLog: [Linking]

Fragment shader(s) linked, vertex shader(s) linked.
ERROR: error(#277) Symbol 'pos' usage doesn't match between two stages
ERROR: error(#277) Symbol 'vsPos' usage doesn't match between two stages
ERROR: error(#277) Symbol 'pos' usage doesn't match between two stages
ERROR: error(#277) Symbol 'vsPos' usage doesn't match between two stages

Should they considered as important errors ?


Top
 Profile  
Reply with quote  
 Post subject: Re: ERROR: error(#277)
PostPosted: 07.12.2009, 15:57 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
Those usually imply that you have declared the same name as an attribute in the vertex shader, and a uniform in the fragment shader. Double-check your names, and make sure there are *no* overlaps.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: ERROR: error(#277)
PostPosted: 07.12.2009, 17:13 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
swiftcoder wrote:
Those usually imply that you have declared the same name as an attribute in the vertex shader, and a uniform in the fragment shader. Double-check your names, and make sure there are *no* overlaps.
Yep, vsPos is defined in both VS_GENERAL and FS_LIGHTING at model.shader. Here is the EngineLog generated after running the Knight sample in the official beta4 SDK : http://pastebin.com/m67280971


Top
 Profile  
Reply with quote  
 Post subject: Re: ERROR: error(#277)
PostPosted: 08.12.2009, 18:54 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
*BUMP* Just wanted to note this problem occurs with original shaders and I didn't touched anything.


Top
 Profile  
Reply with quote  
 Post subject: Re: ERROR: error(#277)
PostPosted: 09.12.2009, 20:55 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Does the shader work correctly?

The error seems to come from the fact that the varyings pos and vsPos are written in the shared vertex shader VS_GENERAL but not declared/read in all the fragment shaders.


Top
 Profile  
Reply with quote  
 Post subject: Re: ERROR: error(#277)
PostPosted: 09.12.2009, 22:57 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
marciano wrote:
Does the shader work correctly?

The error seems to come from the fact that the varyings pos and vsPos are written in the shared vertex shader VS_GENERAL but not declared/read in all the fragment shaders.
Yes, everything goes well and there is no problem regards to the rendering in the knight and chicago samples. Just noticed at those errors in the engine log.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group