Ogre .mesh?
Posted: Wed Jan 28, 2009 5:01 pm
I have a small problem. Trying to load an ogre .mesh file.. The console says "Loaded media/flat.mesh", but nothing appears? I tryed with an identical 3ds file and that works fine..
Any advice?
Files:
./media/flat.mesh
./media/flat.material
./media/debug1m.png
./debug1m.png
Code: Select all
IAnimatedMesh* mesh = irrsmgr->getMesh("media/flat.mesh");
if(!mesh)
printf("Mesh Error..\n");
ISceneNode* node = irrsmgr->addMeshSceneNode(mesh);
node->setMaterialFlag(EMF_LIGHTING, false);
node->setMaterialTexture(0, irrdriver->getTexture("debug1m.png"));
Files:
./media/flat.mesh
./media/flat.material
./media/debug1m.png
./debug1m.png