1.8 and HLSL shaders

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mikeee
Posts: 9
Joined: Tue Feb 14, 2006 3:15 pm
Location: Germany

1.8 and HLSL shaders

Post by mikeee »

Hi,
I had my project working OK on 1.7.3 but after I switched to 1.8 I got some problems with HLSL shaders.
Everything compiled OK but the HLSL Shader won't work.

First, I got this error:

Code: Select all

Could not load shader function D3DXAssembleShader from dll, shader disabled: d3dx9_43.dll 
so I downloaded d3dx9_43.dll and put this file in my exe-directory and it was better,
but now I got these two messages:

Code: Select all

Could not create vertex shader
HLSL vertex shader compilation failed
No shaders are loaded and what I got, is only black-screen...
I have exactly the same problem with the original Irrlicht example: 10.Shaders (missing file: d3dx9_43 file and then Could not create vertex shader..)

Im using DX9c (several HLSL-s), Windowx XP Sp3 and ATI HD6670 (and I have not problems with modern games, all drivers are current).
and as I said, my project worked perfectly OK on 1.7.3.


Any Ideas?
-Thank you...
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: 1.8 and HLSL shaders

Post by Mel »

Install the directX that comes with the June 2010 DirectX SDK. It is the most likely version of DirectX that was used to compile Irrlicht
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: 1.8 and HLSL shaders

Post by CuteAlien »

June 2010 DirectX SDK is correct. Though I didn't expect it to run into problems with other versions.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply