Skip to content

Commit 5fca8a7

Browse files
gregoire-dlcbentejac
authored andcommitted
[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.
1 parent bfda6f6 commit 5fca8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/ui/qml/Viewer3D/Viewer3D.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FocusScope {
2020
readonly property alias mainCamera: mainCamera
2121

2222
readonly property vector3d defaultCamPosition: Qt.vector3d(12.0, 10.0, -12.0)
23-
readonly property vector3d defaultCamUpVector: Qt.vector3d(0.0, 1.0, 0.0)
23+
readonly property vector3d defaultCamUpVector: Qt.vector3d(-0.358979, 0.861550, 0.358979) // should be accurate, consistent with camera view center
2424
readonly property vector3d defaultCamViewCenter: Qt.vector3d(0.0, 0.0, 0.0)
2525

2626
readonly property var viewpoint: _reconstruction ? _reconstruction.selectedViewpoint : null

0 commit comments

Comments
 (0)