Irrlicht and DX 11

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Irrlicht and DX 11

Post 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.
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Irrlicht and DX 11

Post 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
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post by BingoPlayer »

I downloaded also version 1.8. It is possible to run it with this version ?
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Irrlicht and DX 11

Post 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)
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Irrlicht and DX 11

Post by hybrid »

These headers are in the DX SDK, found at Microsoft's download sites.
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Irrlicht and DX 11

Post 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
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post by BingoPlayer »

Thank you a lot. ;)
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post 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.
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Irrlicht and DX 11

Post by Granyte »

are you trying to compile in debug mode?
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post 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 :/
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Irrlicht and DX 11

Post 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
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post by BingoPlayer »

Aha, so this cause the problem.... many thanks my friend. Can i also contact you anytime when i will need help ? :)
BingoPlayer
Posts: 13
Joined: Fri Sep 28, 2012 2:04 pm

Re: Irrlicht and DX 11

Post 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 ... :/
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Irrlicht and DX 11

Post by Granyte »

against wich version of irrlicht are you recompiling it?

PS ill start porting it to 1.8 later today
Post Reply