Game Development Community

T3D 1.1 Preview - Basic Light Issue with Shaders and Fog Color when underwater - NOT A BUG (THREED-1577)

by robo · in Torque 3D Professional · 04/10/2011 (10:48 am) · 10 replies

Build: 1.1 Preview

Platform: Windows XP 32bit

Target: Basic Light,Water Shader compile error

Issues: When I change to Basic Light, shader error occured.

Steps to Repeat:
1. Launch the game
2. Press F11 Lighting Menu -> Basic Light or Open option dialog Lighting Quality -> Lowest
3. Jump to River.

GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/water/waterP.hlsl(143,23): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/water/waterP.hlsl(143,23): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/water/waterBasicV.hlsl(95,11): warning X3206: implicit truncation of vector type
c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/water/waterBasicP.hlsl(182,22): warning X3206: 'computeSceneFog': implicit truncation of vector type
c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/water/waterBasicV.hlsl(95,11): warning X3206: implicit truncation of vector type
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/postFx/fogP.hlsl(19,18): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/postFx/underwaterFogP.hlsl(41,18): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/postFx/ssao/SSAO_P.hlsl(125,21): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/postFx/ssao/SSAO_P.hlsl(125,21): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/postFx/ssao/SSAO_Blur_P.hlsl(35,17): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/postFx/ssao/SSAO_Blur_P.hlsl(35,17): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/lighting/advanced/vectorLightP.hlsl(53,27): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/lighting/advanced/vectorLightP.hlsl(53,27): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005)
   c:/SDKs/Torque 3D Pro 1.1 Preview/Examples/FPS Example/game/shaders/common/lighting/advanced/pointLightP.hlsl(122,27): error X3004: undeclared identifier 'autogenUncondition_55070f7a'
Material - cliff_wall_1_greyrock(2439) - Failed to load diffuse map art/shapes/rocks/grayrock_diffuse for stage 0

Advanced Light
www.myschoollife.co.kr/bug/basic1.png
.
Basic Light
www.myschoollife.co.kr/bug/basic2.png


#1
04/10/2011 (11:12 am)
Yeah I found this too, there's no water fog in Basic Lighting, it's just a solid colour.
#2
04/11/2011 (6:27 am)
Logged as THREED-1577.
#3
04/11/2011 (9:54 am)
Can you post your system specs please? We need to know what video card you are using.
#4
04/11/2011 (10:28 am)
I've got a GTS250(512mb)
#5
04/11/2011 (12:54 pm)
I get the same on a 9800 gtx
#6
04/11/2011 (8:22 pm)
System 1 :
CPU : Q9000
VGA : nVidia 9600M GT(512M)
OS : Win XP(32bit)

System 2 :
CPU : E6600
VGA : nVidia 8800 GTS(512M)
OS : Win XP(32bit)
#7
04/12/2011 (4:13 pm)
Okay, I might've worked this one out.

It looks like the alpha colour of BasicLighting->UnderwaterColor controls the alpha of the colour - thus there is no underwater fog in basic lighting.

Was it always like that? ... checks 1.1B3 ... yes, it's the same there too, so maybe not a bug ... maybe a limitation of BasicLighting (I don't use it much so sometime it's hard to tell).
#8
04/12/2011 (4:19 pm)
Methinks is just limitation of Basic Lighting and inability to waterfog - cause I've seen that lack before... and it might've even been mentioned by someone who knows - memory is foggy... ;)
#9
04/12/2011 (4:21 pm)
Memory foggy ... but water not in Basic Lighting, Grasshopper ...
;)
#10
04/12/2011 (6:39 pm)
This issue is resolved except compiling shader error.

thanks for reply steve.