[fixed]error while loading an x object file

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
radubolovan
Posts: 60
Joined: Tue Nov 13, 2007 7:03 pm
Location: Bucharest - Romania
Contact:

[fixed]error while loading an x object file

Post by radubolovan »

I recieve an error while load a x object file:
Unknown data object in mesh in x file: DeclData
The file was generated with Maya 7.0
Here some part of that file:
MeshMaterialList {
2;
1632;
0,
0,
0,
0,
0,
0,
0,
...and so on
}
VertexDuplicationIndices {
6464;
1602;
0,
1,
2,
3,
4,
5,
6,
7,
8,
... and so on
}
DeclData {
2;
2;0;6;0;,
2;0;7;0;;
38784;
3207922978,
3055013160,
1060439236,
1056401004,
1060824784,
1056401210,
3207923229,
... and so on}
One more think ... it seams that the object can recieve ambiental light, but directional, spot or point not! :( Any ideea?
Of course I have this line of code:

Code: Select all

m_sceneNode->setMaterialFlag( EMF_LIGHTING, true );
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I'd have to have a look at the full file, but I guess that this is quasi-binary FVF data, which is not supported by Irrlicht. However, the message is only a warning, the file is fully parsed. The lights problem might be due to wrong or missing normals. Try to change some exporter settings, maybe you can export it into some simpler representation. Otherwise you could try the mview.exe from older DX SDKs. Those had an option to save .x files, usually using a simpler version of the format.
radubolovan
Posts: 60
Joined: Tue Nov 13, 2007 7:03 pm
Location: Bucharest - Romania
Contact:

Post by radubolovan »

The file is not binary ... it's text ... if you want I can make a zip with that file and all textures and send you via e-mail ...

I've opened that file in viewer from DX SDK and it's all ok!!!
Tonight when I'll reach home (right now I'm at work) I'll open it in First King Mesh viewer :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Of course it's ascii, I can see it. But the dta presented in those fields have to be interpreted like bitfields (at least I'd guess so). And that's not doen in Irrlicht.
The problem with the new mview is that it cannot save anymore, so you can only check if it works at all, but that's usually expected.
The FKMeshviewer also uses the usual mesh loader, so as long as you are using the SVN version of Irrlicht there's no change expected.
Yes, send me the file (address found on my website) or upload it somewhere.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

You can find a copy of the old mesh viewer here-
http://dump.bitplane.net/mview.zip

Just open and save again, it should *hopefully* fix the problem.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, in fact this should work correctly, because the DeclData does not contain polygon information, but only additional attributes (in this case tangents and binormals, which is a very interesting thing for further support, I'll look into this later). However, I couldn't yet check the file, so I don't know what's actually happening here, but in the next days...
radubolovan
Posts: 60
Joined: Tue Nov 13, 2007 7:03 pm
Location: Bucharest - Romania
Contact:

Post by radubolovan »

Thank you very much ... I will test later when I reach home :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Any progress? I did check the file and it showed up correctly (maybe upside down, I couldn't exactly figure which one is up).
Post Reply