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

Fix Qt6-induced issues #2620

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Fix Qt6-induced issues #2620

merged 3 commits into from
Dec 18, 2024

Conversation

cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Dec 17, 2024

Description

This PR addresses two issues that follow the migration to Qt6:

  1. The compute times are not correctly displayed anymore in the "Statistics" tab when clicking on "Chunks".
  2. Enabling the "Fixed Point Size" feature of the 3D viewer doesn't do anything anymore.

The second issue is also fixed in this related QtAliceVision PR: alicevision/QtAliceVision#81

Features list

  • Correctly display cumulated times in NodeStatistics.
  • Bind the fixedPointSize property to the SfMLoader to handle that case in the point cloud-dedicated QtAliceVision shader.

The `fixedPointSize` parameter was used to determine whether the
point size was fixed or programmable from the QML (using a `PointSize`
render state). With Qt6, this render state is not correctly handled by
the RHI and we need to set directly within the shader whether the point
size is fixed or not, hence the binding.
`pointSize` was divided by 100 before being sent to the shader that
rendered the programmable points, and was used as is to set the size of
the "fixed size" points implicitly in the QML.

Now that both cases are handled by the same shader, we do not need to
perform this division here: it will be done directly in the shader (by
opposition, keeping it here would have meant performing a x100
multiplication in the shader for the "fixed size" case).
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.89%. Comparing base (0aa163d) to head (ebbd000).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2620   +/-   ##
========================================
  Coverage    69.89%   69.89%           
========================================
  Files          121      121           
  Lines         7076     7076           
========================================
  Hits          4946     4946           
  Misses        2130     2130           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fabiencastan fabiencastan merged commit e7a5387 into develop Dec 18, 2024
5 checks passed
@fabiencastan fabiencastan deleted the fix/qt6Issues branch December 18, 2024 08:12
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.

2 participants