Page 1 of 1

Example bug with DevC++

Posted: Sat Mar 27, 2004 1:30 pm
by Guest
Hi!
I am trying to run the examples of Irrlich 0.6 with DevC++.
The first one is ok. The others compile well, but I get a runtime error when the file is executed.

As the HelloWorld example runs well I think everything is set up ok (include, libraries and .dll path.)

Any one else has this problems? Ideas?

-Rune-

Posted: Sat Mar 27, 2004 7:14 pm
by Electron
unless you've recompiled the Dev-cpp version of the dll to support DirectX (which is possible, but requires a couple additional dlls with all your programs plus DirectX9 rendering doesn't seem to come out well) you need to change a parameter to createDevice from EDT_DIRECTX8 to EDT_OPENGL

Posted: Sun Mar 28, 2004 7:42 pm
by Guest
Thanks. Changing to OPEN_GL solved the problem. It is much slower, than the irrlich demo I downloaded though. Guess there is no OpenGL hardware accelration on my portable. Same low speed under Linux. :-(

Guess the only real solution is to buy hardware with OpenGL accelration or the Microsoft development tools?

-Rune-

Posted: Mon Mar 29, 2004 7:46 pm
by ZDeveloper
I thought that support OpenGL is one of the standart features of 3D graphic card. Is it false?

Sorry for my bad english.

Posted: Tue Mar 30, 2004 3:33 am
by Domarius
Yes that is false. OpenGL is just another standard. It's just very popular, which means that it's usually supported by every 3D card, but it's not written anywhere that they have to.

Re: Example bug with DevC++

Posted: Tue Mar 30, 2004 7:04 am
by Guest
Anonymous wrote:Hi!
I am trying to run the examples of Irrlich 0.6 with DevC++.
The first one is ok. The others compile well, but I get a runtime error when the file is executed.

As the HelloWorld example runs well I think everything is set up ok (include, libraries and .dll path.)

Any one else has this problems? Ideas?

-Rune-

Posted: Tue Mar 30, 2004 9:10 am
by Domarius
My only suggestion is to read the "How to get directX8 in Dev-C++" thread in the FAQ forum.

But it's really strange that the helloworld works but the others don't.

What renderer are you using? Can you check the line of code in the Helloworld example that starts the renderer? Does it say EDT_OPENGL, EDT_DIRECTX8 (or 9), or EDT_SOFTWARE?

Then compare it to the same line in the other examples. What do they say?

Posted: Tue Mar 30, 2004 8:33 pm
by Electron
Hello World will work anywhere because it uses EDT_SOFTWARE for rendering

Posted: Wed Mar 31, 2004 6:36 am
by Domarius
Well if his copy of "hello world" is unmodified (which is what I was trying to find out), then I am pretty certain his probem is the old one, solved in the "How to get directX8 in Dev-C++" thread in the FAQ forum.