Hi, I just started using Irrlicht, and I wrote my own engines before but the design turned out to be the most complicated stage and its very difficult to get the proper interface.
Now, I am very pleased with Irrlicht, and I have version 1.4.1, does irrlicht allow you to load .X file format (directX models) without using the DirectX API, I prefer OpenGL?
Thank you in advance.
Loading *.X file format
Loading *.X file format
---------
I'm on your side.
---------
I'm on your side.
---------
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Yes, it does. The file format loaders are independent of the platform or rendering device.
By default, a Windows Irrlicht build will assume that a DXSDK is present and will try to build a DX9 device. If you don't want that, then in include/IrrCompileConfig.h you can just comment out ...
...then it won't try to compile any DX device. I get by just fine with openGL on Windows.
By default, a Windows Irrlicht build will assume that a DXSDK is present and will try to build a DX9 device. If you don't want that, then in include/IrrCompileConfig.h you can just comment out ...
Code: Select all
#define _IRR_COMPILE_WITH_DIRECT3D_9_
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Re: Loading *.X file format
I never understood why people just trying out stuff like this ???TimVasko wrote:does irrlicht allow you to load .X file format (directX models) without using the DirectX API, I prefer OpenGL?
It's the simplest to just take the hello world example, change the driver to OGL and try to load a DX file instead of the sidney one, isn't it...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
You ungrateful son of a bitch, he thanked you in advance. A million years' bad karma on you!
Last edited by rogerborg on Thu Jun 26, 2008 9:53 pm, edited 1 time in total.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
"does irrlicht allow you to load .X file format (directX models) without using the DirectX API, I prefer OpenGL? "
Yes, there is code written entirely in C++, see CXMeshFileLoader.h for details.
That code will read your .X file no matter what device you select.
The DX API has .x file loaders or mesh loaders, but they are not called or used in Irrlicht.
Yes, there is code written entirely in C++, see CXMeshFileLoader.h for details.
That code will read your .X file no matter what device you select.
The DX API has .x file loaders or mesh loaders, but they are not called or used in Irrlicht.
ROFL, I think I got cursed so many times here, so meanwhile I must be a Zombie !!!rogerborg wrote:You ungrateful son of a bitch, he thanked you in advance. A million years' bad karma on you!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Thank you very much, that answered my questions. I was trying to apply an outdated patch and it included IAnimatedMeshWhateverX file, similar to MD2, 3DS etc. And I missed the fact that the 3d party patch was old.
You guys were very helpful, and rogerborg - I've done that, it doesn't compile w/o the DX SDK
I will stick around.
You guys were very helpful, and rogerborg - I've done that, it doesn't compile w/o the DX SDK
I will stick around.
---------
I'm on your side.
---------
I'm on your side.
---------
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
That's strange. I don't have a DXSDK, and I can build the SVN trunk fine with _IRR_COMPILE_WITH_DIRECT3D_9_ commented out.TimVasko wrote:rogerborg - I've done that, it doesn't compile w/o the DX SDK
Can I ask you to share:
1. The version of Irrlicht that you're building.
2. The exact error message.
3. The compiler that you're using.
I'm wondering if it's a missing Platform SDK / VC++ Express 2005 issue, rather than a DXSDK issue.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
no no no, im sorry I was somewhat ambiguous in my message. It compiles fine with the directive from your message (uh _IRR_COMPILE_WITH_DIRECT3D_9_) commented out. I meant I couldn't compile it with the compiler directive set.
So essentially what I was saying: I had to do what you mentioned earlier, because otherwise it didn't compile.
Forgive my rambling, its the medication. And thanks for your concern.
So essentially what I was saying: I had to do what you mentioned earlier, because otherwise it didn't compile.
Forgive my rambling, its the medication. And thanks for your concern.
---------
I'm on your side.
---------
I'm on your side.
---------