This project is read-only.

SimpleShadowShader.fx compile error - GoblinXNAv4.0beta3

Feb 23, 2012 at 2:45 PM

Dear all,

I've just started with GoblinXNAv4.0beta3, when I compiled the Tutorial8 project in vs2010, there are the following errors:


C:\GoblinXNAv4.0beta3\data\Shaders\SimpleShadowShader.fx(170,18): error : Errors compiling C:\GoblinXNAv4.0beta3\data\Shaders\SimpleShadowShader.fx:C:\GoblinXNAv4.0beta3\data\Shaders\SimpleShadowShader.fx(170,18): error : (170,18): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect themC:\GoblinXNAv4.0beta3\data\Shaders\SimpleShadowShader.fx(170,18): error : (220,23): ID3DXEffectCompiler::CompileEffect: There was an error compiling expressionC:\GoblinXNAv4.0beta3\data\Shaders\SimpleShadowShader.fx(170,18): error : ID3DXEffectCompiler: Compilation failed


All the other tutorials examples run fine on my computer. Is there anyone could help or have experienced similar problem?



Feb 23, 2012 at 7:29 PM

Hmm.. that's very strange. I never had that issue, and haven't heard from anyone else so far. 


Mar 6, 2012 at 4:45 AM

This problem seems to depend on the DirectX SDK installed on the machine. I just run into this problem on one of my machine after Windows Update, but not on other machines. Trying to figure out what is the cause. In any case, this is supposed to be a warning rather than error for most cases, but for certain case, it treats it as an error for some reason.


Mar 6, 2012 at 10:11 PM

Interestingly, if you compile it in Debug mode, it won't have the compilation problem, but it will show that error in Release mode. Never was like this before, very strange.


Jul 6, 2012 at 10:30 AM

I've read on some other forums that this is a bug in VS compiler, so unless Microsoft has an update, it'll be there. I believe we can get rid of by turning off some of the compiler flag, but I don't have time to look into it. If someone figures out, please let me know.