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.
lesPaul456
Posts: 18 Joined: Sat Jan 02, 2010 4:48 pm
Post
by lesPaul456 » Sat Jan 02, 2010 5:31 pm
Hello,
Whenever I tried to load .x files from one of my model packs, I get an error saying that only uncompressed .x files are supported. I didn't create the models.
Does anyone know how I load these files?
DarkRage4
Posts: 31 Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:
Post
by DarkRage4 » Sat Jan 02, 2010 5:34 pm
Are they in like a zipped file? If so try doing:
device->getFileSystem()->addZipFileArchive("file");
and then under it load your .x file
lesPaul456
Posts: 18 Joined: Sat Jan 02, 2010 4:48 pm
Post
by lesPaul456 » Sat Jan 02, 2010 5:38 pm
Thanks for the reply.
No, their not in a zip file.
DarkRage4
Posts: 31 Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:
Post
by DarkRage4 » Sat Jan 02, 2010 6:10 pm
What kind of file is it then, since you said model pack. It would be helpful to know so I could try to help
lesPaul456
Posts: 18 Joined: Sat Jan 02, 2010 4:48 pm
Post
by lesPaul456 » Sat Jan 02, 2010 6:17 pm
It's a .x file from a model pack. Each model from the pack gives the same error.
DarkRage4
Posts: 31 Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:
Post
by DarkRage4 » Sat Jan 02, 2010 6:19 pm
I couldn't say but from the file type and the error I would say that the files are corrupted.
lesPaul456
Posts: 18 Joined: Sat Jan 02, 2010 4:48 pm
Post
by lesPaul456 » Sat Jan 02, 2010 6:30 pm
It's weird. I can open the models using DarkGDK. However, I can't open them using Blender or Irrlicht...
DarkRage4
Posts: 31 Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:
Post
by DarkRage4 » Sat Jan 02, 2010 6:34 pm
That is very odd.
lesPaul456
Posts: 18 Joined: Sat Jan 02, 2010 4:48 pm
Post
by lesPaul456 » Sat Jan 02, 2010 6:44 pm
I found out that the model is a .x compressed binary file, which is not supported by Irrlicht.
DarkRage4
Posts: 31 Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:
Post
by DarkRage4 » Sat Jan 02, 2010 6:45 pm
You would need to uncompress the file, sadly I don't know how to uncompress .x files
I'm not even sure if its possibly
lesPaul456
Posts: 18 Joined: Sat Jan 02, 2010 4:48 pm
Post
by lesPaul456 » Sat Jan 02, 2010 6:55 pm
Thanks for the help DarkRage4.
I was able to find a link to an older version of MView.exe, which I can use to open some (but not all) of the models, and then save them as uncompressed .x files.
Thanks again!
DarkRage4
Posts: 31 Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:
Post
by DarkRage4 » Sat Jan 02, 2010 7:10 pm
Glad to hear you got it mostly figured out