Can't load mesh correctly

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
crazymax
Posts: 4
Joined: Wed Dec 16, 2015 11:03 am

Can't load mesh correctly

Post by crazymax »

Hi all.
I have a project which uses irrlicht 1.7.2 and it loads mesh with errors.
my code is shown below, most of variables are class attributes.

Code: Select all

    u32 x, y;
 
    x = 300;
    y = 450;
 
    param.AntiAlias = 8;
    param.DriverType = irr::video::EDT_OPENGL;
    //param.WindowId = reinterpret_cast<void*>(Vid.GetSafeHwnd());
    param.WindowSize = dimension2d<u32>(x, y);
    device = irr::createDeviceEx(param);
    if (!device)
    {
        exit(1);
    }
 
    driver = device->getVideoDriver();
 
    smgr = device->getSceneManager();
    guienv = device->getGUIEnvironment();
    //node->setAnimationSpeed(15);
    if (!smgr){
        exit(1);
    }
    mesh = smgr->getMesh("Pers&Anim/Fashion/Rest.x"); // all errors appear at this line
    if (!mesh)
    {
        device->drop();
        exit(1);
    }
console output:

Code: Select all

Irrlicht Engine version 1.7.2
Professional Edition  (Build 9200)
Using renderer: OpenGL 4.0.0
Intel(R) HD Graphics 4000: Intel
OpenGL driver version is 1.2 or better.
GLSL version: 4.0
Unknown data object in animation of .x file: Header
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/Resn.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/teeth.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/Hair3.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/brown_eye.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/brown_eye1.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/young_lightskinned_female_diffuse3.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/Fut.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/zoey_color3.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/eyebrow001.jpg
Loaded texture: C:/Users/Crazy_000/Desktop/JestFileReader/JestFileReader/JestFileReader/build-JestFileReader-Desktop_Qt_5_5_1_MinGW_32bit-Debug/Pers&Anim/Fashion/tongue01_diffuse.jpg
Loaded mesh: Pers&Anim/Fashion/Rest.x
Unsupported texture format
Unsupported texture format
 
my mesh link: https://drive.google.com/file/d/0B5JBGE ... sp=sharing
I've rebuild irrlicht 1.7.2 with mingw492-32
environment: os windows 10 x64, mingw492-32, IDE: qt
Can anyone tell me why it can't load mesh correctly?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Can't load mesh correctly

Post by CuteAlien »

Ah, Irrlicht 1.7.2... that's why I can't reproduce it. It doesn't give that error with 1.8 it seems. You'll have to update - we just don't have the manpower to support several years old versions.

Edit: I did a quick check and don't even get the "Unsupported texture format" with 1.7. But compiled latest version myself. So you can maybe update to that - you don't evenhave any interface changes then. 1.7.2 is not even latest released 1.7 - it's really old!
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
crazymax
Posts: 4
Joined: Wed Dec 16, 2015 11:03 am

Re: Can't load mesh correctly

Post by crazymax »

CuteAlien wrote:Ah, Irrlicht 1.7.2... that's why I can't reproduce it. It doesn't give that error with 1.8 it seems. You'll have to update - we just don't have the manpower to support several years old versions.

Edit: I did a quick check and don't even get the "Unsupported texture format" with 1.7. But compiled latest version myself. So you can maybe update to that - you don't evenhave any interface changes then. 1.7.2 is not even latest released 1.7 - it's really old!
another developer at the project said me that "it's not working with 1.8+ irrlicht" and advice me to use 1.7.2.
But okay, i've build 1.8.3 and now I don't get "Unsupported texture format", but I still get "Unknown data object in animation of .x file: Header".
Model is loaded (http://i.imgur.com/c4pJTNx.png), it has breathing animation, but it also must do an another animation, but it doesn't.
It works fine at another PC with env: msvs compiler, irrlicht 1.7.2, render_type dxd9.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Can't load mesh correctly

Post by CuteAlien »

Not sure what the "Unknown data object" is about right now. I'm getting that as well.

But I can see those sign language animations. Maybe you still have the old include-path set after you updated to Irrlicht 1.8 in your project? Or maybe it finds the old dll. Take a look at the debug-output at the start (disable loading to avoid having so much text and just see that) - it should tell you the dll version used and if headers/dll do not match it gives a warning.

And don't listen to developers telling you to still use 1.7.2, I'm pretty certain that wasn't anyone from our team :-) 1.8 is far better (more stable as well as more features) than any 1.7 version.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
crazymax
Posts: 4
Joined: Wed Dec 16, 2015 11:03 am

Re: Can't load mesh correctly

Post by crazymax »

There was a bad code which makes irrlicht crazy. So, this was my mistake.
Now I see that irrlicht works nice with 1.8.3. Big thangs, CuteAlien.
SOLVED
Post Reply