Merge pull request #246 from DoubleLee/master

Aspect Ratio fix, and comment about field of view.
pull/251/head
Kim Kulling 2014-03-27 16:12:47 +01:00
commit e97787aa5c
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}