Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qmlSfmData] Upscale the currently selected camera #52

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Oct 31, 2023

This PR adds a getter for the viewId member of the CameraLocatorEntity object and uses it to determine the camera that is currently selected.

That specific camera is upscaled with a factor of 1.5 in order to better stand out and the color of its gizmo is set to blue. Prior to this PR, the currently selected camera was only highlighted by having its object picker's color set to blue. For photogrammetry use cases, this was enough to identify it easily as the cameras are generally spread around. For camera tracking use cases, this was more difficult as the cameras are very closely following each other.

As soon as the camera is not selected anymore, it is rescaled normally and the gizmo's color is set to white again. The upscale is also correctly applied when the global scale for all the cameras is updated.

The information about the currently selected camera is obtained from the QML side through alicevision/Meshroom#2237.

Compared to the non-selected cameras, apply a bigger scale factor
on the camera that corresponds to the currently selected view ID.
A camera's colors are updated to blue when it becomes the active camera,
and set back to white when the current view ID changes.
@fabiencastan fabiencastan merged commit 615f52c into develop Nov 17, 2023
@fabiencastan fabiencastan deleted the dev/highlightSelectedCamera branch November 17, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants