Horde3D

Next-Generation Graphics Engine
It is currently 29.03.2024, 11:25

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 16.04.2009, 01:01 
Offline

Joined: 20.01.2008, 07:16
Posts: 15
Simply put, the shader fails to compile. Below I've attached the engine log. This is with the current Beta 3. The log is from the knight example.

Code:
0.000    Initializing OpenGL renderer using OGL '2.0.1' by 'NVIDIA Corporation' on 'GeForce Go 6800/PCI/SSE2'
0.000    Extension EXT_framebuffer_multisample and/or EXT_framebuffer_blit not supported
0.203    Adding Pipeline resource 'pipelines/hdr.pipeline.xml'
0.203    Adding Pipeline resource 'pipelines/forward.pipeline.xml'
0.203    Adding Material resource 'overlays/font.material.xml'
0.203    Adding Material resource 'overlays/panel.material.xml'
0.203    Adding Material resource 'overlays/logo.material.xml'
0.203    Adding SceneGraph resource 'models/sphere/sphere.scene.xml'
0.203    Adding SceneGraph resource 'models/knight/knight.scene.xml'
0.203    Adding Animation resource 'animations/knight_order.anim'
0.203    Adding Animation resource 'animations/knight_attack.anim'
0.203    Adding SceneGraph resource 'particles/particleSys1/particleSys1.scene.xml'
0.203    Loading resource 'pipelines/hdr.pipeline.xml'
0.203    Adding Material resource 'pipelines/globalSettings.material.xml'
0.203    Adding Material resource 'pipelines/postHDR.material.xml'
0.218    Loading resource 'pipelines/forward.pipeline.xml'
0.218    Loading resource 'overlays/font.material.xml'
0.218    Adding Shader resource 'shaders/overlay.shader'
0.218    Adding Texture resource 'overlays/font.tga'
0.218    Loading resource 'overlays/panel.material.xml'
0.218    Adding Texture resource 'textures/common/white.tga'
0.218    Loading resource 'overlays/logo.material.xml'
0.218    Adding Texture resource 'overlays/logo.tga'
0.218    Loading resource 'models/sphere/sphere.scene.xml'
0.218    Adding Geometry resource 'models/sphere/sphere.geo'
0.218    Adding Material resource 'models/sphere/stones.material.xml'
0.234    Loading resource 'models/knight/knight.scene.xml'
0.234    Adding Geometry resource 'models/knight/knight.geo'
0.234    Adding Material resource 'models/knight/knight.material.xml'
0.234    Loading resource 'animations/knight_order.anim'
0.234    Loading resource 'animations/knight_attack.anim'
0.250    Loading resource 'particles/particleSys1/particleSys1.scene.xml'
0.250    Adding Material resource 'particles/particleSys1/particle1.material.xml'
0.250    Adding ParticleEffect resource 'particles/particleSys1/particle1.particle.xml'
0.250    Adding Material resource 'particles/particleSys1/particle2.material.xml'
0.250    Adding ParticleEffect resource 'particles/particleSys1/particle2.particle.xml'
0.250    Loading resource 'pipelines/globalSettings.material.xml'
0.250    Adding Texture resource 'textures/ambientMap.dds'
0.250    Loading resource 'pipelines/postHDR.material.xml'
0.250    Adding Shader resource 'shaders/postHDR.shader'
0.250    Loading resource 'shaders/overlay.shader'
0.250    Adding Code resource 'shaders/overlay.shader:VS_OVERLAY'
0.250    Adding Code resource 'shaders/overlay.shader:FS_OVERLAY'
0.250    ---- C O M P I L I N G . S H A D E R . shaders/overlay.shader@OVERLAY[0] ----
0.297    Loading resource 'overlays/font.tga'
0.312    Loading resource 'textures/common/white.tga'
0.312    Loading resource 'overlays/logo.tga'
0.312    Loading resource 'models/sphere/sphere.geo'
0.328    Loading resource 'models/sphere/stones.material.xml'
0.328    Adding Shader resource 'shaders/model.shader'
0.328    Adding Texture resource 'textures/models/layingrock.jpg'
0.328    Adding Texture resource 'textures/models/layingrockBump.tga'
0.328    Loading resource 'models/knight/knight.geo'
0.328    Loading resource 'models/knight/knight.material.xml'
0.328    Adding Texture resource 'models/knight/knight.jpg'
0.328    Adding Texture resource 'models/skybox/skybox.dds'
0.328    Loading resource 'particles/particleSys1/particle1.material.xml'
0.328    Adding Shader resource 'shaders/particle.shader'
0.328    Adding Texture resource 'textures/particles/particle1.tga'
0.343    Loading resource 'particles/particleSys1/particle1.particle.xml'
0.343    Loading resource 'particles/particleSys1/particle2.material.xml'
0.343    Loading resource 'particles/particleSys1/particle2.particle.xml'
0.343    Loading resource 'textures/ambientMap.dds'
0.343    Loading resource 'shaders/postHDR.shader'
0.343    Adding Code resource 'shaders/postHDR.shader:VS_FSQUAD'
0.343    Adding Code resource 'shaders/postHDR.shader:FS_BRIGHTPASS'
0.343    Adding Code resource 'shaders/utilityLib/fragPostProcess.glsl'
0.343    Adding Code resource 'shaders/postHDR.shader:FS_BLUR'
0.343    Adding Code resource 'shaders/postHDR.shader:FS_FINALPASS'
0.343    ---- C O M P I L I N G . S H A D E R . shaders/postHDR.shader@FINALPASS[0] ----
0.406    Loading resource 'shaders/model.shader'
0.406    Adding Code resource 'shaders/model.shader:VS_GENERAL'
0.406    Adding Code resource 'shaders/utilityLib/vertCommon.glsl'
0.406    Adding Code resource 'shaders/utilityLib/vertSkinning.glsl'
0.406    Adding Code resource 'shaders/model.shader:FS_ATTRIBPASS'
0.406    Adding Code resource 'shaders/utilityLib/fragDeferredWrite.glsl'
0.406    Adding Code resource 'shaders/model.shader:VS_SHADOWMAP'
0.406    Adding Code resource 'shaders/model.shader:FS_SHADOWMAP'
0.406    Adding Code resource 'shaders/model.shader:FS_LIGHTING'
0.406    Adding Code resource 'shaders/utilityLib/fragLighting.glsl'
0.406    Adding Code resource 'shaders/model.shader:FS_AMBIENT'
0.406    Loading resource 'textures/models/layingrock.jpg'
0.422    Loading resource 'textures/models/layingrockBump.tga'
0.437    Loading resource 'models/knight/knight.jpg'
0.453    Loading resource 'models/skybox/skybox.dds'
0.453    Loading resource 'shaders/particle.shader'
0.453    Adding Code resource 'shaders/particle.shader:VS_SHADOWMAP'
0.453    Adding Code resource 'shaders/utilityLib/vertParticle.glsl'
0.453    Adding Code resource 'shaders/particle.shader:FS_SHADOWMAP'
0.453    Adding Code resource 'shaders/particle.shader:VS_TRANSLUCENT'
0.453    Adding Code resource 'shaders/particle.shader:FS_TRANSLUCENT'
0.453    Loading resource 'textures/particles/particle1.tga'
0.453    Loading resource 'shaders/utilityLib/fragPostProcess.glsl'
0.453    ---- C O M P I L I N G . S H A D E R . shaders/postHDR.shader@BRIGHTPASS[0] ----
0.531    ---- C O M P I L I N G . S H A D E R . shaders/postHDR.shader@BLUR[0] ----
0.593    Loading resource 'shaders/utilityLib/vertCommon.glsl'
0.593    Loading resource 'shaders/utilityLib/vertSkinning.glsl'
0.593    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@SHADOWMAP[0] ----
0.703    Loading resource 'shaders/utilityLib/fragDeferredWrite.glsl'
0.703    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@ATTRIBPASS[4] ----
0.703    Shader resource 'shaders/model.shader': Failed to compile shader context 'ATTRIBPASS' (comb 4)
0.703    Shader resource 'shaders/model.shader': ShaderLog: [Fragment Shader]

(24) : warning C7508: extension GL_ARB_draw_buffers not supported
(74) : error C1102: incompatible type for parameter #1 ("s")
(74) : error C1102: incompatible type for parameter #1 ("s")
(74) : error C1102: incompatible type for parameter #1 ("s")
(74) : error C1102: incompatible type for parameter #1 ("s")
(74) : error C1102: incompatible type for parameter #1 ("s")

0.703    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@ATTRIBPASS[1] ----
6.390    Shader resource 'shaders/model.shader': ShaderLog: [Linking]

Fragment info
-------------
(24) : warning C7508: extension GL_ARB_draw_buffers not supported

6.390    Loading resource 'shaders/utilityLib/fragLighting.glsl'
6.390    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@LIGHTING[4] ----
6.406    Shader resource 'shaders/model.shader': Failed to compile shader context 'LIGHTING' (comb 4)
6.406    Shader resource 'shaders/model.shader': ShaderLog: [Fragment Shader]

(139) : error C1102: incompatible type for parameter #1 ("s")
(139) : error C1102: incompatible type for parameter #1 ("s")
(139) : error C1102: incompatible type for parameter #1 ("s")
(139) : error C1102: incompatible type for parameter #1 ("s")
(139) : error C1102: incompatible type for parameter #1 ("s")

6.406    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@LIGHTING[1] ----
12.203    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@AMBIENT[4] ----
12.218    Shader resource 'shaders/model.shader': Failed to compile shader context 'AMBIENT' (comb 4)
12.218    Shader resource 'shaders/model.shader': ShaderLog: [Fragment Shader]

(143) : error C1102: incompatible type for parameter #1 ("s")
(143) : error C1102: incompatible type for parameter #1 ("s")
(143) : error C1102: incompatible type for parameter #1 ("s")
(143) : error C1102: incompatible type for parameter #1 ("s")
(143) : error C1102: incompatible type for parameter #1 ("s")

12.218    ---- C O M P I L I N G . S H A D E R . shaders/model.shader@AMBIENT[9] ----
17.875    Loading resource 'shaders/utilityLib/vertParticle.glsl'
17.875    ---- C O M P I L I N G . S H A D E R . shaders/particle.shader@TRANSLUCENT[0] ----
17.953    Adding Camera node 'Camera'
17.953    Adding nodes from SceneGraph resource 'models/sphere/sphere.scene.xml'
17.953    Adding nodes from SceneGraph resource 'models/knight/knight.scene.xml'
17.953    Adding nodes from SceneGraph resource 'particles/particleSys1/particleSys1.scene.xml'
17.953    Adding Light node 'Light1'


Top
 Profile  
Reply with quote  
PostPosted: 16.04.2009, 08:14 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
There is an engine option DumpFailedShaders which outputs the last shader file that failed to compile to a text file. This file can be used in combination with the line numbers in the log to see where exactly the problem is in the shader code.


Top
 Profile  
Reply with quote  
PostPosted: 20.04.2009, 02:01 
Offline

Joined: 20.01.2008, 07:16
Posts: 15
After checking around and using a fresh copy of the content, I can't find those errors anymore. Maybe it was a problem with that particular set of files? Anyway, seems this problem is gone. I apologize for wasting anyone's time. ;)


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 25 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