Some stuff not clarifyed in tutorials.

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
Jett
Posts: 4
Joined: Wed Jul 12, 2006 5:23 pm

Some stuff not clarifyed in tutorials.

Post by Jett »

  • How do you create animations in a model?
  • 2 How do you trigger specifically named animations?
2 Not like this.

Code: Select all

IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
if (node)
{
	node->setMaterialFlag(EMF_LIGHTING, false);
	node->setFrameLoop(0, 310);	
	node->setMaterialTexture( 0, driver->getTexture("../../media/sydney.bmp") );
}
Post Reply