From 8f8d8aa653f6e8d4e02427707fc2e46d714152fa 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 dd3fc872ab..b865011c0b 100644 --- a/meshroom/ui/qml/Viewer3D/Viewer3D.qml +++ b/meshroom/ui/qml/Viewer3D/Viewer3D.qml @@ -22,7 +22,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