Page 1 of 2

Irrlicht and DX 11

Posted: Mon Oct 01, 2012 8:36 am
by BingoPlayer
Hey guys, i have a problem.
I am making a 3d game (Venom) and i am using irrlicht 1.7.3. i decided to improve it and i downloaded the Irrlicht Engine with DX 11 from

Code: Select all

https://bitbucket.org/evandromillian/irrlicht-20xx
.
When i was trying to run any example in DX 11 , it always quit and send me error message like : Error, could not create device.
Can someone help me with that ?

Image

I have a new graphic card AMD Radeon HD 7310m with DX 11.

BingoPlayer.

Re: Irrlicht and DX 11

Posted: Mon Oct 01, 2012 2:25 pm
by Granyte
You probably need to recompile irrlicht and all the library for it to work i think it's what i needed to do

i have not worked with it in a long time since i ported it to 1.8

Re: Irrlicht and DX 11

Posted: Mon Oct 01, 2012 2:59 pm
by BingoPlayer
I downloaded also version 1.8. It is possible to run it with this version ?

Re: Irrlicht and DX 11

Posted: Tue Oct 02, 2012 4:15 am
by Granyte
it's not possible currently how ever i will port it to 1.8 in the comming weeks i ported it in the past but forgot to make a backup befor i started porting it to the FVF (wich was a unsucessfull port)

Re: Irrlicht and DX 11

Posted: Tue Oct 02, 2012 6:38 am
by BingoPlayer
But if i want to re-compile Irrlicht source to the .dll, i need headers like d310math or something else... where can i find it?
Any link to download all headers ??

Thank you for your help.

Re: Irrlicht and DX 11

Posted: Tue Oct 02, 2012 7:13 am
by hybrid
These headers are in the DX SDK, found at Microsoft's download sites.

Re: Irrlicht and DX 11

Posted: Tue Oct 02, 2012 3:35 pm
by Granyte
note that if you are recompiling with dx11 you will also need to recompile and link the effect framework wich is in the example folder

Re: Irrlicht and DX 11

Posted: Wed Oct 03, 2012 9:09 am
by BingoPlayer
Thank you a lot. ;)

Re: Irrlicht and DX 11

Posted: Wed Oct 03, 2012 8:17 pm
by BingoPlayer
Hey guys I need your help again.

I downloaded DirectX SDK (June 2010) but when I am trying to compile Irrlicht to the dll i am getting errors :

1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3dx10math.h(425): error C2059: syntax error : 'constant'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3dx10math.h(425): error C2091: function returns function
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3dx10math.h(425): error C2802: static member 'operator new' has no formal parameters
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3dx10math.h(425): error C2059: syntax error : 'constant'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3dx10math.h(426): error C2238: unexpected token(s) preceding ';'
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\D3DX10math.inl(1003): error C2761: 'void *(__cdecl *_D3DXMATRIXA16::operator new(void))(size_t)' : member function redeclaration not allowed
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\D3DX10math.inl(1003): fatal error C1903: unable to recover from previous error(s); stopping compilation

The problem is here :

void* operator new (size_t);
void* operator new[] (size_t);


It is just underlined like an error ... i dont understand :/ ...

Can anybody tell me how can i fix it? A found some document where is some information about how to add a header file with some declarations, but it didnt work. :oops:

Thank a lot.

BingoPlayer.

Re: Irrlicht and DX 11

Posted: Wed Oct 03, 2012 10:43 pm
by Granyte
are you trying to compile in debug mode?

Re: Irrlicht and DX 11

Posted: Thu Oct 04, 2012 7:05 am
by BingoPlayer
Yeah in debug mode ... but now i switched to realease mode and it works ...
umm ...

1>CD3D11CustomMaterialRenderer.obj : error LNK2001: unresolved external symbol _D3DCompile@44
1>CD3D11CustomMaterialRenderer.obj : error LNK2001: unresolved external symbol _D3DX11CreateEffectFromMemory@20

only this error report :/

Re: Irrlicht and DX 11

Posted: Thu Oct 04, 2012 8:36 am
by Granyte
you have to compile the dx11 effect framework wich is located in the smaple folder in the directx sdk and then add the library to your project for compiling

Re: Irrlicht and DX 11

Posted: Thu Oct 04, 2012 11:08 am
by BingoPlayer
Aha, so this cause the problem.... many thanks my friend. Can i also contact you anytime when i will need help ? :)

Re: Irrlicht and DX 11

Posted: Thu Oct 04, 2012 1:11 pm
by BingoPlayer
OK so, i compiled Effects 11 in the sample folder... i copied lib file to my project , linked it but wtf? it doesnt work... i just dont understand anything ... :/

Re: Irrlicht and DX 11

Posted: Thu Oct 04, 2012 7:27 pm
by Granyte
against wich version of irrlicht are you recompiling it?

PS ill start porting it to 1.8 later today