From e5959799571c6b2cb7db2f06eeeadb67e24db802 Mon Sep 17 00:00:00 2001 From: "admin8onf@admin8onfs-pro.nfbonf.nfb.ca" Date: Mon, 17 Mar 2014 23:47:18 -0700 Subject: [PATCH] A minor hack to prevent the Directional light from incorrectly inheriting the Post_rotation from the FBX scene. (if we can figure out where the post rotation is exported from, the hack can be removed) --HG-- branch : nfb --- KREngine/kraken/KRResource+fbx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KREngine/kraken/KRResource+fbx.cpp b/KREngine/kraken/KRResource+fbx.cpp index 0c87e14..95b66e5 100644 --- a/KREngine/kraken/KRResource+fbx.cpp +++ b/KREngine/kraken/KRResource+fbx.cpp @@ -926,7 +926,8 @@ void LoadNode(FbxScene* pFbxScene, KRNode *parent_node, FbxGeometryConverter *pG KRVector3 node_pre_rotation, node_post_rotation; if(rotation_active) { node_pre_rotation = KRVector3(pre_rotation[0], pre_rotation[1], pre_rotation[2]) / 180.0 * M_PI; - node_post_rotation = KRVector3(post_rotation[0], post_rotation[1], post_rotation[2]) / 180.0 * M_PI; + // node_post_rotation = KRVector3(post_rotation[0], post_rotation[1], post_rotation[2]) / 180.0 * M_PI; + //&KRF HACK removing this line (above) to prevent the post rotation from corrupting the default light values; the FBX is importing a post rotation and setting it to -90 degrees } else { node_pre_rotation = KRVector3::Zero(); node_post_rotation = KRVector3::Zero();