.X Files and 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
Syphonix
Posts: 25
Joined: Tue Oct 05, 2004 9:00 pm

.X Files and Irrlicht

Post by Syphonix »

How do you use .X files with Irrlicht? I don't know how to load them or display them. I want to use them as maps, so how would I get them to be solid like the map in the Collision Detection example?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

How about loading it like the map in the Collision Detection example??? :roll:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Syphonix
Posts: 25
Joined: Tue Oct 05, 2004 9:00 pm

Post by Syphonix »

I tried that, but it didn't work. It gives all these runtime errors.
Syphonix
Posts: 25
Joined: Tue Oct 05, 2004 9:00 pm

Post by Syphonix »

okay, I got by with a 3DS file, but I really need a .x file loading capability. I get all these strange errors with .x files!
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Irrlicht loads x files only in text format, no binary. Make sure your model is in right format.
Syphonix
Posts: 25
Joined: Tue Oct 05, 2004 9:00 pm

How...

Post by Syphonix »

How would I convert a binary to a text file?
vermeer
Posts: 2017
Joined: Wed Jan 21, 2004 3:22 pm
Contact:

Post by vermeer »

open it in mview and save as text in the save dialog.

also, export as tex in the exporter setting in your 3d package
Finally making games again!
http://www.konekogames.com
Dogs
Posts: 195
Joined: Wed Sep 15, 2004 1:04 am
Location: michigan

Post by Dogs »

There are many post in this forum about this topic, in fact i even posted one myself... Download direct x sdk it comes with a small proggy that will open your x files.. Once loaded into mview you can resave it...
When you reasave it chose save as text format and any mistakes in the x code are usally fixed and then as long as the textures are located in the same dir as the x file it should load when called from the irrlicht engine...

Hope this helps... :)

Also if you have slow conection the dir x sdk is quite large and there is a post some place where just the mview is posted...
Syphonix
Posts: 25
Joined: Tue Oct 05, 2004 9:00 pm

Post by Syphonix »

I already have the SDK (woohoo). Where would this "tool" be? What is its name?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

if u have DX9 sdk installed just go to Microsoft DX9 SDK under program then Utilities->Mesh Viewer
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Syphonix
Posts: 25
Joined: Tue Oct 05, 2004 9:00 pm

Post by Syphonix »

I have found it! This is good. Now, how would I use .x files as levels?
Dogs
Posts: 195
Joined: Wed Sep 15, 2004 1:04 am
Location: michigan

Post by Dogs »

Reading and going over the code for the examples that came with the download of irrlicht is the best bet for you... It shows how to load a .x file for a animated avatar in one of the examples....
You can add the same code for collision that is used for the 3ds file called room.3ds in the effects example...

I found a lot of info that I needed to know just by looking over the code from the examples...

BUT i will say that most everyone here in this forum are great help as well when you do come across a problem that seems to just never be resolved by yourself...

And I often come here and just read the forum and ive found many topics that are good info to read about and you may learn tons of things without even haveing to ask a question at all..... :)
Post Reply