From 2e3b602c0b894101675de3343ee940d3985530d2 Mon Sep 17 00:00:00 2001 From: DoubleLee Date: Wed, 26 Mar 2014 16:44:49 -0500 Subject: [PATCH] Aspect Ratio fix, and comment about field of view. --- code/FBXConverter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index d08dc3dce..4df579b31 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -378,10 +378,11 @@ private: out_camera->mName.Set(FixNodeName(model.Name())); - out_camera->mAspect = cam.AspectWidth(); + out_camera->mAspect = cam.AspectWidth() / cam.AspectHeight(); out_camera->mPosition = cam.Position(); out_camera->mLookAt = cam.InterestPosition() - out_camera->mPosition; + // BUG HERE cam.FieldOfView() returns 1.0f every time. 1.0f is default value. out_camera->mHorizontalFOV = AI_DEG_TO_RAD(cam.FieldOfView()); }