-
Notifications
You must be signed in to change notification settings - Fork 16
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
[qtAliceVision] Add new image viewer with Blinn-Phong model #72
Open
gregoire-dl
wants to merge
16
commits into
dev/qt6.6
Choose a base branch
from
dev/qt6.6_phongImageViewer
base: dev/qt6.6
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 tasks
cbentejac
force-pushed
the
dev/qt6.6_phongImageViewer
branch
from
July 9, 2024 15:49
181bf73
to
2fb8020
Compare
In particular, the shaders for the point cloud display are updated to be compatible with the Rhi backend.
…ility The shaders for the FloatImageViewer are removed from C++ files and compiled as a dedicated component. The ShaderImageViewer file is fully removed. The code from the FloatImageViewer and the FloatTexture are updated to reflect the changes from the Qt3D API.
When images in the PanoramaViewer are hovered, their gamma is increased to highlight them and make it obvious to the user which image is currently being seen. This commit fixes an issue that occurred when the mouse was moving away from the image it was hovering: the added gamma was never removed, meaning that, by hovering one image enough times, said image would become totally white. The highlighting effect now correctly increases and decreases the hovered image's gamma level, including when the user clicks to edit the panorama.
… shader Clamp negative values in the FloatImageViewer fragment shader before performing the successive `pow`. The result of `pow` is undefined when it is provided negative values. On Linux platforms, it still gives the expected result, but on Windows this leads to issues.
Using sequence player by default may cause errors when `FloatImageViewer` is reactivated.
Source texture should always be initialized to avoid errors (texture binding) when no image is loaded, especially when `FloatImageViewer` is reactivated.
Allows to load and display image (albedo and normal) with a given light direction. Shading is done using Blinn-Phong reflection model.
`std::powf` fails to compile with gcc which is not compliant with C++17 when it comes to libstdc++. Additionally, static casts are performed to fix warnings.
cbentejac
force-pushed
the
dev/qt6.6_phongImageViewer
branch
from
October 11, 2024 17:21
094ec9a
to
dd3b89e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add a new image viewer (Albedo + Normal) with Blinn-Phong model, the
PhongImageViewer
.With customizable shader parameters and light direction.
A normal map with two light directions using the new viewer in Meshroom.
Features list
PhongImageViewer
.PhongImageViewer
shader.FloatImageViewer
especially when reactivated.Implementation remarks
This PR is based on the Qt6 migration branch: https://github.com/alicevision/QtAliceVision/tree/dev/qt6.6
Linked to Meshroom PR: alicevision/Meshroom#2444