Skip to content
Snippets Groups Projects
Commit 45f368f5 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Initrot matrx should be apply prior to orientation matrix

parent 4ffd4bf1
No related branches found
No related tags found
No related merge requests found
......@@ -569,7 +569,10 @@ class BlenderRender(AbstractRender):
axes=convention)
if self._renderaxis == '+x':
initrot = quatmatrix([0.5, 0.5, -0.5, -0.5])
rotmat[:3, :3] = initrot[:3, :3].dot(rotmat[:3, :3])
# The camera is aligned in -z
# A rotation along z wll thus roll the camera
# Althougth the camera should yaw in such case
rotmat[:3, :3] = rotmat[:3,:3].dot(initrot[:3, :3])
# matrix_world in blender are column-major order
# and numpy row-major order
self.camera.matrix_world = np.transpose(rotmat)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment