From 22726bc5656ce3e5d405616de2dbf68e490023ae Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 31 Aug 2020 10:20:19 +0300 Subject: [PATCH] Fix spherical camera elevation angle --- libs/geom/source/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/geom/source/camera.cpp b/libs/geom/source/camera.cpp index 9b54a9f3..117affce 100644 --- a/libs/geom/source/camera.cpp +++ b/libs/geom/source/camera.cpp @@ -102,7 +102,7 @@ namespace psemek::geom translation({0.f, 0.f, -distance}).homogeneous_matrix() * homogeneous(swap(1, 2).matrix()) * homogeneous(scale({1.f, -1.f, 1.f}).matrix()) - * homogeneous(plane_rotation(2, 1, elevation_angle).matrix()) + * homogeneous(plane_rotation(1, 2, elevation_angle).matrix()) * homogeneous(plane_rotation(1, 0, azimuthal_angle).matrix()) * translation({ -target[0], -target[1], -target[2] }).homogeneous_matrix() ;