From 68ee345a86fa3dfdd534180b418da0e4f963d839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20De=20Lillo?= Date: Fri, 14 Jun 2024 21:06:39 +0200 Subject: [PATCH] [ui] Viewer3D: Fix wrong camera up vector initialization Default camera up should be accurate and consistent with camera view center. Default camera up vector is not refresh or checked when default camera view center is set. --- meshroom/ui/qml/Viewer3D/Viewer3D.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshroom/ui/qml/Viewer3D/Viewer3D.qml b/meshroom/ui/qml/Viewer3D/Viewer3D.qml index 2e9078bf53..a0546c5a07 100644 --- a/meshroom/ui/qml/Viewer3D/Viewer3D.qml +++ b/meshroom/ui/qml/Viewer3D/Viewer3D.qml @@ -20,7 +20,7 @@ FocusScope { readonly property alias mainCamera: mainCamera readonly property vector3d defaultCamPosition: Qt.vector3d(12.0, 10.0, -12.0) - readonly property vector3d defaultCamUpVector: Qt.vector3d(0.0, 1.0, 0.0) + readonly property vector3d defaultCamUpVector: Qt.vector3d(-0.358979, 0.861550, 0.358979) // should be accurate, consistent with camera view center readonly property vector3d defaultCamViewCenter: Qt.vector3d(0.0, 0.0, 0.0) readonly property var viewpoint: _reconstruction ? _reconstruction.selectedViewpoint : null