platform wince,irrlicht edition 1.7.1
the program cannot run because the error"Could not load mesh, file format seems to be unsupported",
scene::IAnimatedMesh* mesh = smgr->getMesh("sdmmc/3d/media/0100001_3D_M.obj");
smgr->getMeshManipulator()->makePlanarTextureMapping(mesh->getMesh(0), 0.004f);
printf("load obj file time: %d ms\n", GetTickCount()-dw);
scene::ISceneNode* node = 0;
node = smgr->addAnimatedMeshSceneNode(mesh);
node->setMaterialTexture(0, driver->getTexture("sdmmc/3d/media/0100001M.tga"));
node->getMaterial(0).SpecularColor.set(0,0,0,0);
node->setMaterialFlag(video::EMF_LIGHTING, false);
printf("load tga file time: %d ms\n", GetTickCount()-dw);
how to settel this problem
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Same question as Lonesome Ducky... does it load in the (current) meshviewer or do you get the same error there?
If it fails there, maybe you can put the corresponding .obj file online somewhere so we can test what is going wrong?
If it fails there, maybe you can put the corresponding .obj file online somewhere so we can test what is going wrong?
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm