if (!ai_scene)
return false;
+ PlotASNode(ai_scene->mRootNode);
+
std::string dirpath = lib_geo::Path::GetParentDirPath(filename);
BoneMap bone_map;
}
}
+void AssimpReader::PlotASNode(aiNode* n)
+{
+ static int layer = 0;
+
+ for (int i = 0; i < layer; ++i)
+ {
+ OutputDebugStringA("|");
+ }
+
+ OutputDebugStringA("+");
+ OutputDebugStringA(n->mName.C_Str());
+ OutputDebugStringA("\n");
+
+ for (unsigned int i = 0; i < n->mNumChildren; ++i)
+ {
+ layer++;
+ PlotASNode(n->mChildren[i]);
+ layer--;
+ }
+}
+
// 0\95b\96¢\96\9e\82Ì\83L\81[\83t\83\8c\81[\83\80\90\94\82ð\90\94\82¦\82é
int AssimpReader::GetNumMinusKeyFrames(const aiNodeAnim* ch) const
{
void SetKeyToBone(aiNodeAnim* ch, geom::Bone* bone);
void ApplyASTransform(aiNode* n, aiMatrix4x4& t, std::map<int, geom::MeshBuf*>& AiToLGMesh);
+ void PlotASNode(aiNode* n);
};