R1 shader problem
by Dave · in Torque Game Engine Advanced · 02/17/2007 (5:05 am) · 22 replies
Hi folks,
Many of the shaders in the demo are not working, the terrain is black, the terrain is also black in the waterworld demo, and my own game just loads a bright yellow screen and hangs. I am getting the following errors in the log
shaders/legacyTerrain/terrainDynamicLightingMaskV.hlsl(2,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
error X3539: ps_1_x is not supported in this version of the compiler
The shdrConsts.h file is there. I don't know enough about shaders to understand the last line of the error messages. Is the compiler built into TGEA?
Appreciate any help, I searched for shdrConsts.h on the forums but found no similar errors or solutions.
This is happening for many shaders not just the one above. for example
shaders/lightingSystem/AlphaBloomShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
shaders/lightingSystem/DownSample8x4ShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
shaders/lightingSystem/DownSample8x4ShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
shaders/lightingSystem/DownSample4x4BloomClampShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
I don't get this problem with 4.2 even though it has an identical include for shdrConsts.h and dir structure. I'd guess there may be some working dir or path change set somewhere for the R1 shader compiler? Can't see why else it would happen. I didn't install in the default directory but that should make no difference right?
Thanks,
Dave.
Many of the shaders in the demo are not working, the terrain is black, the terrain is also black in the waterworld demo, and my own game just loads a bright yellow screen and hangs. I am getting the following errors in the log
shaders/legacyTerrain/terrainDynamicLightingMaskV.hlsl(2,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
error X3539: ps_1_x is not supported in this version of the compiler
The shdrConsts.h file is there. I don't know enough about shaders to understand the last line of the error messages. Is the compiler built into TGEA?
Appreciate any help, I searched for shdrConsts.h on the forums but found no similar errors or solutions.
shaders/lightingSystem/AlphaBloomShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
shaders/lightingSystem/DownSample8x4ShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
shaders/lightingSystem/DownSample8x4ShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
shaders/lightingSystem/DownSample4x4BloomClampShaderV.hlsl(7,10): error X1507: failed to open source file: '../shdrConsts.h'
GFXD3DShader::initVertShader - unable to compile shader!
I don't get this problem with 4.2 even though it has an identical include for shdrConsts.h and dir structure. I'd guess there may be some working dir or path change set somewhere for the R1 shader compiler? Can't see why else it would happen. I didn't install in the default directory but that should make no difference right?
Thanks,
Dave.
About the author
#22
11/14/2007 (1:49 am)
Superb, thank you very much guys!
Torque Owner Jeremiah Moss