Page 1 of 1

Can't view mesh; a little lost

Posted: Sat Mar 13, 2004 8:54 pm
by Draco
I just started looking over Irrlicht a few weeks ago and have just now finished the examples. I'm trying to do some things on my own now. I'm modifying the specialfx demo to have another model be shown as well. It loads, but I cant see it when I run the program. I tried to follow the examples with my code.

Code: Select all

scene::IAnimatedMesh* flower = smgr->getMesh("../../media/flower.obj");
	scene::IAnimatedMeshSceneNode* fnode = smgr->addAnimatedMeshSceneNode(flower);
	fnode->setPosition(core::vector3df(50,50,50));
	fnode->setMaterialTexture(0, driver->getTexture("../../media/Faerie5.BMP"));
	fnode->setMD2Animation(scene::EMAT_STAND);
	fnode->addShadowVolumeSceneNode();
What is the right way to code the object file in?

Posted: Sun Mar 14, 2004 2:21 pm
by Draco
I did a little checking of different things and the problem is in the object file, not my code. Since it's a compatible file type, what might be wrong that my object can't be displayed by the engine?