From 92b29be383ad156fecb338d89e3c88ca33edee15 Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 5 May 2011 18:14:41 -0400 Subject: [PATCH] description writes out each animation channel's position, rotation and scaling key frames --- AssimpToMesh/src/nodetree/nodetree.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AssimpToMesh/src/nodetree/nodetree.cpp b/AssimpToMesh/src/nodetree/nodetree.cpp index ec9ed7d..7e9d56c 100644 --- a/AssimpToMesh/src/nodetree/nodetree.cpp +++ b/AssimpToMesh/src/nodetree/nodetree.cpp @@ -243,6 +243,15 @@ void ShowAnimationInfo(const aiAnimation *animation) fprintf(g_fp, " mNumPositionKeys: %d\n", channel->mNumPositionKeys); fprintf(g_fp, " mNumRotationKeys: %d\n", channel->mNumRotationKeys); fprintf(g_fp, " mNumScalingKeys: %d\n", channel->mNumScalingKeys); + fprintf(g_fp, " mPositionKeys:\n"); + for (unsigned int i = 0; i < channel->mNumPositionKeys; ++i) + fprintf(g_fp, " [%d] %f, %f, %f\n", i, channel->mPositionKeys[i].mValue.x, channel->mPositionKeys[i].mValue.y, channel->mPositionKeys[i].mValue.z); + fprintf(g_fp, " mRotationKeys:\n"); + for (unsigned int i = 0; i < channel->mNumPositionKeys; ++i) + fprintf(g_fp, " [%d] %f, %f, %f\n", i, channel->mRotationKeys[i].mValue.x, channel->mRotationKeys[i].mValue.y, channel->mRotationKeys[i].mValue.z, channel->mRotationKeys[i].mValue.w); + fprintf(g_fp, " mScalingKeys:\n"); + for (unsigned int i = 0; i < channel->mNumScalingKeys; ++i) + fprintf(g_fp, " [%d] %f, %f, %f\n", i, channel->mScalingKeys[i].mValue.x, channel->mScalingKeys[i].mValue.y, channel->mScalingKeys[i].mValue.z); } fprintf(g_fp, " mNumMeshChannels: %d\n", animation->mNumMeshChannels); fprintf(g_fp, " mMeshChannels:\n");