Using .x models with Irrlicht...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
misterdan
Posts: 4
Joined: Tue Jun 20, 2006 12:03 pm

Using .x models with Irrlicht...

Post by misterdan »

Hello everybody.

I am very green with 3D graphics, but have dabbled a bit with C++. I am trying to import an .x file to use in a game I am developing. I can compile and build my code successfully but no model appears when I run the .exe and I get the following messages in the console window:

"Only text encoded x file supported currently. Could not load mesh"

What am I doing wrong? Also, I notice that with the model I have some .cfg files and.bmp images for textures. In order to display the model correctly how do all these files fit together?

Thank you in advance for any help you can offer.
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Read the message, your x file isn't text, open it and look if you can read it... you have to save it as text file not as hex
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Or - since you can compile code - use the binaryX patch found on my patch page. Rebuild Irrlicht afterwards, and you file will be loaded (unless it uses even more advanced features of the format)
misterdan
Posts: 4
Joined: Tue Jun 20, 2006 12:03 pm

Post by misterdan »

Thanks for the quck response.

I have tried opening the .x file with a hex editor and then saving it as text but it still doesn't work.

I will try Hybrid's converter.

Thanks again.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You shouldn't convert it with a hex editor, but with a 3d editor supporting both .x formats. Your file is just currently binary (or in other words hex code).
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Maybe the MView workaround will help... :?: :idea: :?:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
misterdan
Posts: 4
Joined: Tue Jun 20, 2006 12:03 pm

Post by misterdan »

I will try MView. Thank you to everybody who responded.
Post Reply