Console error: Couldn't find shader
by Steve Acaster · in Torque Game Engine Advanced · 06/20/2008 (12:58 pm) · 3 replies
This isn't particularly important as I haven't even started looking at shaders, just something I noticed after porting over from TGE to 1.7.1
I'm not sure why these are getting called. They don't get called in ~\game\scriptsAndAssets\client\scripts\shader.cs --- but AtlasBlender20Shader, AtlasBlender11AShader, AtlasBlender11BShader are.
I'm using DX9SDK (March2008) - but I haven't even looked at it. Just using it as the TGEA1.7.1 instructions say for compiling.
I'm not trying to use any of these shader things yet, and everything seems to work as expected. Just wondering if anyone has any ideas.
*** Phase 2: Download Ghost Objects Mapping string: MissionStartPhase2Ack to index: 1 [b] ClipMapBlenderCache::initialize - Couldn't find shader 'LegacyBlender20Shader'! ClipMapBlenderCache::initialize - Couldn't find shader 'LegacyBlender11AShader'! ClipMapBlenderCache::initialize - Couldn't find shader 'LegacyBlender11BShader'! [/b] Allocating a 1024 px clipmap for a 65536px source texture. - 6 base clipstack entries, + 1 cap. - Using approximately 37.240002MB of texture memory.
I'm not sure why these are getting called. They don't get called in ~\game\scriptsAndAssets\client\scripts\shader.cs --- but AtlasBlender20Shader, AtlasBlender11AShader, AtlasBlender11BShader are.
I'm using DX9SDK (March2008) - but I haven't even looked at it. Just using it as the TGEA1.7.1 instructions say for compiling.
I'm not trying to use any of these shader things yet, and everything seems to work as expected. Just wondering if anyone has any ideas.
About the author
One Bloke ... In His Bedroom ... Making Indie Games ...
#2
After a little look through the examples I saw that their shader.cs had a few extra lines of script than my New Project generated file. Just copied them across and the console errors have cleared up.
Thanks for pointing me in the right direction.
Steve
07/30/2008 (7:12 pm)
Aha! Thanks for that Dave. After a little look through the examples I saw that their shader.cs had a few extra lines of script than my New Project generated file. Just copied them across and the console errors have cleared up.
Thanks for pointing me in the right direction.
Steve
Associate Dave Calabrese
Cerulean Games
Projects\Template\game\scriptsAndAssets\client\scripts\shaders.cs
That file defines the shaders. The note for the shaders you mention reads:
And the location of the .HLSL files for the shaders mentioned are at:
\Projects\Template\game\shaders\atlas
Chances are you are missing files, or your shaders.cs file could have a script error. Might be best to look into it, especially if it's the shader.cs file, as there could be a problem with something else not getting loaded properly.
-Dave Calabrese
Gaslight Studios