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.
problem with EDT_DIRECTX8 and EDT_DIRECTX9
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.
-----------
* 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.
AnimaKomix: A Half-3D Packer & Animator
http://www.freewebs.com/project_z/
http://www.freewebs.com/project_z/
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
http://www.irrdev.com/documents/DXinDev.pdf
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5813
________
Jugalettes
Last edited by area51 on Tue Feb 22, 2011 1:10 pm, edited 1 time in total.