From 649483f97f91a43cae5961a6ca87c1d6cdd021b4 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Sun, 27 Feb 2011 19:47:00 +0000 Subject: [PATCH] # bugfix 3ds orientation. [see https://sourceforge.net/projects/assimp/forums/forum/817653/topic/4086997] git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@911 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/3DSConverter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/3DSConverter.cpp b/code/3DSConverter.cpp index 6fb6e8efa..9a7e57d78 100644 --- a/code/3DSConverter.cpp +++ b/code/3DSConverter.cpp @@ -788,9 +788,12 @@ void Discreet3DSImporter::GenerateNodeGraph(aiScene* pcOut) for (unsigned int a = 0; a < pcOut->mNumMeshes;++a) pcOut->mMeshes[a]->mColors[0] = NULL; - // Now rotate the whole scene 90 degrees around the x axis to convert to internal coordinate system - pcOut->mRootNode->mTransformation = aiMatrix4x4(1.f,0.f,0.f,0.f, - 0.f,0.f,1.f,0.f,0.f,-1.f,0.f,0.f,0.f,0.f,0.f,1.f) * pcOut->mRootNode->mTransformation; + // No need for coordinate space adjustment, 3ds' coordinate system equals Assimp's. + /*pcOut->mRootNode->mTransformation = aiMatrix4x4( + 1.f,0.f,0.f,0.f, + 0.f,0.f,1.f,0.f, + 0.f,-1.f,0.f,0.f, + 0.f,0.f,0.f,1.f) * pcOut->mRootNode->mTransformation;*/ // If the root node is unnamed name it "<3DSRoot>" if (::strstr( pcOut->mRootNode->mName.data, "UNNAMED" ) ||