Page 1 of 1

problem with EDT_DIRECTX8 and EDT_DIRECTX9

Posted: Sun Jul 24, 2005 10:30 am
by alfa
Hi, i'm a new member of this forum and i'have a problem with the first tutorial.

at this point:
IrrlichtDevice *device =
createDevice(EDT_OPENGL, dimension2d<s32>(1024, 768), 32,
false, false, false, 0);

if i replace EDT_OPENGL with EDT_DIRECTX8 or EDT_DIRECTX9. there is an error of initialization.
scuse me for my basic english.

Posted: Mon Jul 25, 2005 5:31 am
by DexteR
Some Hints:
-----------

* Make sure u have a DirectX installed

* Make sure your monitor or video card supports
1024x768 resolution, as u use this resolution in your code.


This ff will make irrlicht reports an error in creating DX interface:
---------------------------------------------------------------------

* if it cannot load "d3d9.dll",getting DX address, and creating pID3D
*
........."Error, could not load d3d9.dll."
........."Error, could not get proc adress of Direct3DCreate9."
........."Error initializing D3D."

* If it cannot get the "Display mode" of your video adapter
*
........."Error: Could not get Adapter Display mode."


* if it fails to Create the Device
*
........."Was not able to create Direct3D9 device."



Hope this will help you get to know where the problem is.

Posted: Mon Jul 25, 2005 12:48 pm
by area51
If you're using Dev C++ then you could try some of these links to get it going:

http://www.irrdev.com/documents/DXinDev.pdf

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5813
________
Jugalettes

Posted: Mon Jul 25, 2005 1:54 pm
by alfa
yes i use dev c++. and now is all ok.