No EDT_DIRECT3D9 device rendering Why

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
Sato
Posts: 2
Joined: Fri Aug 25, 2006 11:15 pm

No EDT_DIRECT3D9 device rendering Why

Post by Sato »

Hi,
noob question :roll:

I use DEV-C++ to compile the default examples like "Hello World" aso.
My system is running under W2K with an MSI nVidia grafics card and the newest (W2K compatible) directx 9c drivers installed.

I compile simple example projects of different (directx 3d engines) too.
All these other compiled executables are runing fine on my system with nice rendering results.
Irrlicht executables allways crash if i choose direct 8.1 or direct 9.0c

Any ideas

Sato
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Because the dev-cpp library does not contain directx support. You have tom compile the library on your own again to get directx support.
RhavoX
Posts: 33
Joined: Tue Jul 04, 2006 7:27 pm

Post by RhavoX »

There are lots of posts that show how can this problem be solved. The best way to do this is to download dx devpack and in project options define: -DIRR_COMPILE_WITH_DX9_DEV_PACK
In the linker options: -ld3dx9 -ld3dx8
You'll have to have the dx dlls on your hard drive to run anything in dx :)
cheers
Teh Uber-Pwner xD
Cold_Dog
Posts: 15
Joined: Fri Aug 25, 2006 6:54 am
Location: Dominican Republic

A little question about this

Post by Cold_Dog »

I was just wondering...

Does the directX support for older versions of irrlicht in DevC++ works on irrlicht 1.1?

I mean..if the directX support was supposed to work on irrlicht0.x will it work if I use irrlicht1.1 in DevC++?
I've come in peace, but you'll go in pieces!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

:? The dll is simply compiled with directX disabled, you have to recompile the library. The DirectX devpak works if that is what you meant. Otherwise Irrlicht's directX suppor will also work with newer versions of Irrlicht, but only if you recompile the lib.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I think the DirectX DevPak for DevC++ is getting rather old. I'm noticing DX applications are very slow with DevC++ as well as some advanced shaders actually crash the process.
Image
Cold_Dog
Posts: 15
Joined: Fri Aug 25, 2006 6:54 am
Location: Dominican Republic

Just wondering again...

Post by Cold_Dog »

This 'not-including-directx-support' problem is just for Dev-Cpp or are there another compilers that have this problem too?...if there aren't, which compilers has directx support explicitly in them?....I think that Visual Studio is one of them....name others...

I was just wondering why bother going throught all the problem of configuring dev-cpp to support directx if one can use another compiler that has this feature already?....dont you agree?

Or is there some kind of secret reason to use dev-cpp and not moving to another compiler?
I've come in peace, but you'll go in pieces!
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Re: Just wondering again...

Post by jam »

Cold_Dog wrote: Or is there some kind of secret reason to use dev-cpp and not moving to another compiler?
I would imagine it is just a matter of preference.
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Re: Just wondering again...

Post by sRc »

Cold_Dog wrote:This 'not-including-directx-support' problem is just for Dev-Cpp or are there another compilers that have this problem too?...if there aren't, which compilers has directx support explicitly in them?....I think that Visual Studio is one of them....name others...
i think its a matter of library availability... the DirectX SDK provides librarys for linking with all the compilers supporting their link libraries, other compilers (like devcpp) that use different library methods have to work it out another way
The Bard sRc

Blog | Twitter
Sato
Posts: 2
Joined: Fri Aug 25, 2006 11:15 pm

Post by Sato »

Hi

I just like to inform you all that the hint was realy to change my compiler.

It tock me a while to download the visual studio express 2005 edition, the NECCESSERY platform SDK R2 and to menage the updates inside the Visual C++ directories. see ===> http://msdn.microsoft.com/vstudio/expre ... usingpsdk/

Now my compiled executables have the full directx support.

P.S. One more small problem ........ if you are using any of the stdio.h functions - printf(), sprintf() and so on - you will get a compile error.
It would seem that Microsoft is going to eventually remove stdio.h function calls. To fix the compile errors add this line to the top of your source code:

#pragma warning(disable : 4996)

Best regards
Sato
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

fyi, those functions were pulled because of the buffer overrun problems they cause
The Bard sRc

Blog | Twitter
Bummer
Posts: 1
Joined: Tue Oct 03, 2006 5:41 pm

Post by Bummer »

hybrid wrote::? The dll is simply compiled with directX disabled, you have to recompile the library. The DirectX devpak works if that is what you meant. Otherwise Irrlicht's directX suppor will also work with newer versions of Irrlicht, but only if you recompile the lib.
How to recompile the library?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Download this and use those in place of the irrlicht .dll you normally use

http://www.gprogs.com/gg.Irrlicht/IrrDX_v1_1.zip
Image Image Image
Post Reply