DX8 problemo

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
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

DX8 problemo

Post by Zizilamoroso »

I'm having some strange problems.

I've got 2 machines with exactly the same setup: win98/2 - dx9 SDK - irrlicht 0.4
The only thing different is the gfx card. Machine A got a radeon9700, machine B got a nvidia riva tnt2.

I try to do create the device like this:
pDevice=createDevice(DT_DIRECTX8,dimension2d<s32>(800,600),16,false,false,0);

This works on machine A :D but on machine B it fails. :cry:

Code: Select all

Warning: Was not able to create Direct3D8 device.
Warning: Was not able to create DirectX8 device.
Warning: Could not create DirectX Driver.
The IrrlichtDevice is created, but if we try to get the videodriver, it returns NULL.

Anyone experienced this problem before?
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

Post by Zizilamoroso »

It has nothing to do with Release/Debug mismatch, tried dx in both configurations.

Even stranger...

DT_OPENGL works! Eventhough I cannot remember I ever installed the openGL drivers :?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Does it work when creating the device in fullscreen mode?
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

also, what are the resolution/colordepths of each machine?
a screen cap is worth 0x100000 DWORDS
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

Post by Zizilamoroso »

Fullscreen or windowed doesn't make a difference.

Machine A runs on 1280x1024x32, machine B runs on 1024x768x16.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

I saw this when I had Windows SP2 Beta installed on a PC. The Radeon's worked fine, but the nVidia 53.xx drivers wouldn't properly define themselves to DirectX.

Do you have the Windows SP2 Beta installed?
Crud, how do I do this again?
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Doh, I forgot, it wasn't Windows XP Beta 2, it was this application called GameXP, that tweaks all of the settings in XP to make it run faster. Even after uninstalling it, whatever change it made on the DX subsystem destroyed DirectX and caused me to start getting those "Unable to create a DirectX device."

I had to completely reinstall Windows to fix that.
Crud, how do I do this again?
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

Post by Zizilamoroso »

saigumi wrote:Doh, I forgot, it wasn't Windows XP Beta 2, it was this application called GameXP, that tweaks all of the settings in XP to make it run faster. Even after uninstalling it, whatever change it made on the DX subsystem destroyed DirectX and caused me to start getting those "Unable to create a DirectX device."

I had to completely reinstall Windows to fix that.
Dx works fine actually. If I code directly into dx, there's never a problem. I only have this problem with irrlicht.
yikyak
Posts: 12
Joined: Tue Jan 13, 2004 1:54 am

Which binaries are you using?

Post by yikyak »

One of my set-ups is identical to your machine B (the one having problems).

It took me a while to get Directx8 working on that one too. The 'out-of-the-box' binaries that come supplied with Irrlicht don't have DirectX capability compiled in (or at least they don't seem to ?). This is possibly to do with DirectX's lack of cross-platform-ness.

I had to rebuild Irrlicht to get it working.

If you're using DevC++, hlide's excellent advice on {this page} is worth following.

You need to make sure you link against d3d8.x and d3dx8d.x ('x' will vary according to your compiler - usually 'lib' or 'a' - the import libraries anyway).

You also need to make sure that you link against the libraries that come supplied with Irrlicht in the irrlicht/lib directory, or you might get library mismatches.

Obviously, the compiler needs to know the paths to these. Doing that got it working for me (and boy does it work...).

OpenGL will work out-of-the-box as Microsoft has been supplying versions of openGL since the mid-90's as part of the default Windows install (there will be a dll in your Windows/System directory called Opengl32.dll - that's the baby).

Cheers
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

Post by Zizilamoroso »

K I'll try to recompile. I have DX9 though, not version 8.

For now, I use DX on one and openGL on the other. Can be interesting too...
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

Post by Zizilamoroso »

Nothing works :(

I had to uninstall the dx9 SDK and completely remove and reinstall the dx9 runtime.

Now it works :lol:

... typical 'gates' stuff :twisted:
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

The problem was fixed, but I found another cause for this type of problem. In DXDiag, make sure hardware acceleration is set to "FULL". If it isn't, Irrlicht and many games will not find or be able to create a DirectX device.
Crud, how do I do this again?
Post Reply