41SPoseAnimation::SPoseAnimation(
SScene* scene,
const std::string& animationName,
SEntity* entity,
const unsigned short&
id,
const unsigned short& poseHandle) :
SAnim(scene, animationName, entity, id,
SAnim::SO3_POSE_ANIM)
45 ogrePoseHandle = poseHandle;
48 Ogre::Animation::VertexTrackList ogreVertexTracks =
ogreAnimation->_getVertexTrackList();
49 for (Ogre::Animation::VertexTrackList::iterator it = ogreVertexTracks.begin(); it != ogreVertexTracks.end(); it++)
51 Ogre::VertexAnimationTrack* ogreVertexTrack = it->second;
52 std::string animationTrackName = animationName+
".poseTrack_"+boost::lexical_cast<std::string>(ogreVertexTrack->getHandle());
58SPoseAnimation::SPoseAnimation() :
SAnim(0,
"", 0, 0, SO3_UNKNOWN_ANIM)
75 Ogre::Animation::VertexTrackList ogreVertexTracks =
ogreAnimation->_getVertexTrackList();
76 for (Ogre::Animation::VertexTrackList::iterator it = ogreVertexTracks.begin(); it != ogreVertexTracks.end(); it++)
78 Ogre::VertexAnimationTrack* ogreVertexTrack = it->second;
79 Ogre::VertexPoseKeyFrame* ogreKeyFrame = ogreVertexTrack->getVertexPoseKeyFrame(0);
80 ogreKeyFrame->updatePoseReference(ogrePoseHandle + i, weight);