Can't view mesh; a little lost
Posted: Sat Mar 13, 2004 8:54 pm
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.
What is the right way to code the object file in?
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();