Skip to content

Commit

Permalink
[ui] Viewer3D: Fix wrong camera up vector initialization
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gregoire-dl authored and cbentejac committed Oct 11, 2024
1 parent 97bcbda commit 68ee345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshroom/ui/qml/Viewer3D/Viewer3D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68ee345

Please sign in to comment.