Directx Problems(0.4.2)

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
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Directx Problems(0.4.2)

Post by qwe »

Whenever I compile an Irrlicht program using (E)DT_DIRECTX8, everything seems to be fine; however, when I run the program, it gives me(in the console):

Warning: Was not able to create Direct3D8 device.
Warning: Was not able to create DirectX8 device.
Warning: Could not create DirectX Driver.

And the program crashes.

I'm using MSVC++ 6.0 on winXP/win98se. the same thing happens on both machines.

OpenGL works fine.

and yes, i do have directX 8 installed :D

any ideas?

thanks
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

And the tutorials work? Did you try to create the device using bad settings like an unsupported video mode?
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

actually, the tutorials don't work. nor the technical demo(i think). I also just installed DX9 to get the latest dx8 dll's(some of them were debug versions) but that didn't help either.

**edit**

I lie. It doesn't like windowed mode, for some bizarre reason. Fullscreen works fine.
Guest

Post by Guest »

I lie. It doesn't like windowed mode, for some bizarre reason. Fullscreen works fine.


What VC do you have ?
I'm guessing Voodoo chip based... :?:
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

I've got some Intel integrated video on the winXP box... I haven't tried compiling on the 98se yet, but that's got a Voodoo Banshee(voodoo 3000 stripped of a texture unit).
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

qwe wrote: I lie. It doesn't like windowed mode, for some bizarre reason. Fullscreen works fine.
Ah! If you try to switch your desktop video mode from 32 to 16 bit (or the other way round) does this solve your problem?
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

OH DUH :roll:

that'll do it. :D
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Really? Ok, then it is a bug in the engine. :)
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

no, actually, it's a directX shortcoming: it'll only do 3d in 16 and 32-bit color, not 24(which most people have). OpenGL has no problem.

It'd be nice if the engine changed the color depth for windowed mode though :wink:
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

ah, ok. :)
qwe wrote:It'd be nice if the engine changed the color depth for windowed mode though :wink:
That's what I'll do :)
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

or you could do what I did, a simple test at the beginning of the program:
create a null device, grab the desktop depth, if it's not 16 or 32 error out.
Post Reply