FBX: Correct camera position and clip planes.
authorMatt Oliver <protogonoi@gmail.com>
Mon, 9 Jan 2017 05:11:32 +0000 (16:11 +1100)
committerMatt Oliver <protogonoi@gmail.com>
Mon, 9 Jan 2017 06:03:32 +0000 (17:03 +1100)
commit5be2351dc6aa06502a561a5e2e8905d6c60e39ca
tree8f032f39da947c667b9e473eef9a2a7be50697e5
parentb34a552fb759d5aa810a7d48c90781b198d856f5
FBX: Correct camera position and clip planes.

Fbx cameras are stored in the scene graph as well as having separate camera properties.
The separate camera properties have a camera position and direction that is already fully
transformed based on its position in the scene graph so this results in the assimp
camera being transformed twice. Since the scene graph contains all the relevant
transformations the camera position and direction can just use default values. Fbx
specifies cameras along the positive x axis so the default camera values have a up and
direction set accordingly.

Fixes: #807 #643
code/FBXConverter.cpp
code/FBXDocument.h