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);
}
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
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?