Can't view mesh; a little lost

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
Draco
Posts: 14
Joined: Sat Mar 13, 2004 8:55 pm

Can't view mesh; a little lost

Post 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?
Draco
Posts: 14
Joined: Sat Mar 13, 2004 8:55 pm

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