how to settel this problem

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
liusa80
Posts: 17
Joined: Tue Apr 06, 2010 3:24 am

how to settel this problem

Post by liusa80 »

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);
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Are you sure that's the line causing the problem? I don't see anything wrong. Perhaps your .obj is written incorrectly, can you load it in the mesh viewer?
liusa80
Posts: 17
Joined: Tue Apr 06, 2010 3:24 am

Post by liusa80 »

thanks for your relpy,i assure the obj file is right because it can work in the old edition 1.5
liusa80
Posts: 17
Joined: Tue Apr 06, 2010 3:24 am

Post by liusa80 »

anybody know question?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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?
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
Post Reply