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.
superpop
Posts: 21 Joined: Mon May 14, 2007 1:17 pm
Post
by superpop » Thu Feb 11, 2010 2:50 pm
I use the code below to load my ogre skeleton mesh,but when the mesh loaded,the node will automatic play the animation.
how to control ogre animation play the custom animation?
Code: Select all
irr::scene::IAnimatedMesh* model = m_IrrSmgr->getMesh(fileName.c_str());
if (model)
{
animModel = m_IrrSmgr->addAnimatedMeshSceneNode(model);
if (animModel)
{
animModel->setMaterialFlag(irr::video::EMF_LIGHTING,false);
animModel->setPosition(irr::core::vector3df(0,0,-1000));
}
}
Adler1337
Posts: 471 Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.
Post
by Adler1337 » Thu Feb 11, 2010 3:27 pm
multum in parvo
superpop
Posts: 21 Joined: Mon May 14, 2007 1:17 pm
Post
by superpop » Fri Feb 12, 2010 10:55 pm
Adler1337 wrote: Take a look at the
API .
sorry,i didnt what you mean.
for example,if can i according the animation name "run"to play the animation?
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Sat Feb 13, 2010 12:22 am
No, you need to use frame intervals. Named animation are not yet supported for all mesh types. However, I'd have to check the actual ogre-Irrlicht mapping.