Page 1 of 1

Importing .X

Posted: Sat Apr 03, 2004 11:35 am
by 3d Max
Hi,
I am trying to export .X files from 3d Studio Max using the Panda exporter and loading them with Irrlicht. It doesn't work:
the ISceneManager::getMesh() function is successful however nothing is displayed.
When I look at the run-time debug information I see messages like:
"Unknown data object in x file: Material"
"Unknown data object in material list in x file: {"
"Unknown data object in material list in x file: SkinWeights"
"Unknown data object in frame in x file: AnimationSet"
"Unexpected ending found in Frame in x file."
"Mesh without material found in x file."

anyone knows what's wrong?
To me it seems Irrlicht is not parsing the file correctly or the file is not exactly in the "IrrLicht" expected format.
if so then
What options should I enable/disable in the Panda Exporter Window in 3DS Max for the IrrLicht to understand it??

Or perhaps it's a different problem? help me please. :cry:

Posted: Sat Apr 03, 2004 12:17 pm
by PadrinatoR
The material's name cannot begin with a digit.
So if your material's name is 01-default, you must change it to default 01, for exaple

I posted that before and found the real answer

Posted: Sat Apr 03, 2004 1:48 pm
by Wolf Dreamer
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1616

Scroll down and you see in quotes the exact same error messages you report.

There are differant .x formats apparently. You'll have to check the link on page two and download the directx 9 thing to run mesh uh... I forget what its called. Load them up in there, save it in a certain way, then its compadiable with the standard Irrlicht uses.

Just click that link and read through all the post to learn more.

There should probably be a note added in the official documents about it, eventually. I'm sure many more will have this problem in time.

Posted: Sat Apr 03, 2004 7:54 pm
by 3d Max
I tried the recommended way exporting X file from 3ds, opening using mview.exe of the DirectX9 SDK and saving it as X file again.
However, sometimes even the mview doesn't show the same model/colors/animations as the 3dStudio original. And sometimes the IrrLicht doesn't show animation or original colors.
Does someone know of a good and proven "Work flow" to export from 3DStudio and import it to IrrLicht with minimal damages on the way?

Posted: Mon Apr 05, 2004 8:56 am
by vermeer
"I tried the recommended way exporting X file "

You meant that on my sig?

and did not worked??

Max 5 or 6?

The dwarf was made with Character Fx ( *whistles* :roll: )

and it works.

But Max also..

Usually should not be needed the opening in mview, just the panda export as I explained... in some cases seems it reformats someway...if you didnt, use those settings bellow....

Posted: Tue Apr 06, 2004 2:01 am
by Domarius
I recently read that Irrlicht only likes this layout;

Code: Select all

function
{
}
and not this

Code: Select all

function {
}
Changing it in a text editor fixed the problem for someone else.

Of course the .x model has to be in text, not binary.