Compile irrlicht 1.9.0 without d3d9 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
Noiecity
Posts: 314
Joined: Wed Aug 23, 2023 7:22 pm
Contact:

Compile irrlicht 1.9.0 without d3d9 shaders

Post by Noiecity »

I was using Windows XP, and I noticed that despite having Directx9, which is installed by default, it does not allow me to see examples with shaders since it asks me for a specific Directx9 library(d3dx9_43.dll). For example, I cannot see the shader examples from the irrlicht examples works. However, I can see the xeffects shaders work without the d3dx9_43.dll for any reason, so I tried compiling myself to change some values of shadow for testing... However, when I tried it, i can't see the examples work with d3d9(i need d3dx9_43.dll, why?). How is it possible for the xeffects examples to run in d3d9 without asking me for these dlls, and work? i compile the same example... Chatgpt tells me that I have to disable the shaders when compiling irrlicht.dll, to only use precompiled shaders, however I don't know how to configure this when compiling with visual studio.
I could copy the irrlicht dll that xeffects uses, but it is from version 1.6

I'm about to use that version just because of the way the shadows are, I like those blurry shadows and they run very fast with some settings
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.

Image
**
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Compile irrlicht 1.9.0 without d3d9 shaders

Post by CuteAlien »

Do you get the same error when you run bin\Win32-VisualStudio\10.Shaders.exe from the official irrlicht1.8.5.zip? (with options: D3D9/high level/no Cg)

And how did you build this? You checked out svn trunk I assume. But which compiler? Code::Blocks or native gcc? Or some Visual Studio version? I assume with Windows XP it's probably VS 2008 or so?

Bit long ago since I had XP. But I think it already had Windows7.1 SDK. Which is what Irrlicht needed. You may have to install that. And then it should compile with the default settings. But depending on how old the VS IDE is you may have had to add D3D paths explicitely somewhere - I remember at some point in the past they were some global option I think.

Maybe wayback machine allows to restore Irrlicht wiki article about that (we had wiki once on the Irrlicht website, so if you go back far enough on website you find that link which in the wayback machine might still work... and that had some article about setting up the IDE I think)
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
Noiecity
Posts: 314
Joined: Wed Aug 23, 2023 7:22 pm
Contact:

Re: Compile irrlicht 1.9.0 without d3d9 shaders

Post by Noiecity »

CuteAlien wrote: Thu Nov 20, 2025 4:14 pm Do you get the same error when you run bin\Win32-VisualStudio\10.Shaders.exe from the official irrlicht1.8.5.zip? (with options: D3D9/high level/no Cg)

And how did you build this? You checked out svn trunk I assume. But which compiler? Code::Blocks or native gcc? Or some Visual Studio version? I assume with Windows XP it's probably VS 2008 or so?

Bit long ago since I had XP. But I think it already had Windows7.1 SDK. Which is what Irrlicht needed. You may have to install that. And then it should compile with the default settings. But depending on how old the VS IDE is you may have had to add D3D paths explicitely somewhere - I remember at some point in the past they were some global option I think.

Maybe wayback machine allows to restore Irrlicht wiki article about that (we had wiki once on the Irrlicht website, so if you go back far enough on website you find that link which in the wayback machine might still work... and that had some article about setting up the IDE I think)
Indeed, I had also tried the shaders example in irrlicht 1.8.5, it also does not work in d3d9 due to the lack of the d3dx9_43.dll dll.
Compile with visual c++ 2010 express, opengl does not cause these problems...

This is easily solved if I just update directx9... however I would like to replicate the xeffects solution
Last edited by Noiecity on Thu Nov 20, 2025 4:45 pm, edited 2 times in total.
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.

Image
**
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Compile irrlicht 1.9.0 without d3d9 shaders

Post by CuteAlien »

If those in the zip don't work ... that's strange. Usually only happens if D3D9 is not installed at all on the system. Don't really remember if it was installed back then by default.
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
Noiecity
Posts: 314
Joined: Wed Aug 23, 2023 7:22 pm
Contact:

Re: Compile irrlicht 1.9.0 without d3d9 shaders

Post by Noiecity »

CuteAlien wrote: Thu Nov 20, 2025 4:28 pm If those in the zip don't work ... that's strange. Usually only happens if D3D9 is not installed at all on the system. Don't really remember if it was installed back then by default.
There are official versions of Windows XP where the directx9 runtime is installed, that is, d3d9.dll, but not d3dx9_43.dll, it is Windows XP SP3 x86 recently installed (I installed it yesterday replacing Windows 7)... I did the tests with all the uncompressed files. Currently everything works except the shaders...
If I don't have an easy solution I will just update directx9 and include a directx9 installer in my future projects... The wonderful thing about using c++98 is this too... that it comes installed by default in almost all use cases...
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.

Image
**
Noiecity
Posts: 314
Joined: Wed Aug 23, 2023 7:22 pm
Contact:

Re: Compile irrlicht 1.9.0 without d3d9 shaders

Post by Noiecity »

The shaders in irrlicht 1.6.1 work perfectly, apparently Windows XP does not have d3dx9_43 installed, it only brings from d3dx9_24 to d3dx9_36, for now I will stay on irrlicht 1.6.1.

I don't want to have to force anything to be installed, I like people to come and use what they have installed.
Also thanks mr.cuteAlien

Edit: I will try to compile irrlicht 1.9.0 with directx9 sdk summer 2004...
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.

Image
**
Noiecity
Posts: 314
Joined: Wed Aug 23, 2023 7:22 pm
Contact:

Re: Compile irrlicht 1.9.0 without d3d9 shaders

Post by Noiecity »

CuteAlien wrote: Thu Nov 20, 2025 4:28 pm If those in the zip don't work ... that's strange. Usually only happens if D3D9 is not installed at all on the system. Don't really remember if it was installed back then by default.
Irrlicht 1.9.0 managed to work well with directx9 from 2004 and xeffects, all this was to know which version of pixel shader and vertex shader to target, 3.0 for both, I will not work on shaders lower than that version
**
If you are looking for people with whom to develop your game, even to try functionalities, I can help you, free. CC0 man.

Image
**
Post Reply