|
|
关于Ogre动画的问题。
假如我用3ds max做了一个人物模型+人物模型动作动画,我需要在程序中显示这个人物模型、模型的动作动画。我该怎么做?
问题补充描述:
Step1、用3ds max制作人物模型、人物模型动作动画。
Step2、???
Step3、???
StepN、???
StepN+1:
AnimationState *mAnimationState; // The current animation state of the object
Entity *ent1 = mSceneMgr->createEntity( "Robot", "robot.mesh" );
mAnimationState = ent1->getAnimationState("Idle");//设置动画状态
mAnimationState->setLoop(true);//循环播放
mAnimationState->setEnabled(true);//启用
//我们需要在每一帧内以一个时间更新动画状态
mAnimationState->addTime(evt.timeSinceLastFrame);
|
|