Skip to content

Conversation

@gregoire-dl
Copy link
Member

@gregoire-dl gregoire-dl commented Jun 19, 2024

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

  • First implementation of the new PhongImageViewer.
  • Add support for base color and texture opacity in PhongImageViewer shader.
  • Fix some errors with 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

gregoire-dl and others added 5 commits November 14, 2024 10:26
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 cbentejac force-pushed the dev/qt6.6_phongImageViewer branch from dd3b89e to f4ac148 Compare November 14, 2024 09:44
@cbentejac cbentejac merged commit 9ea433c into dev/qt6.6 Nov 14, 2024
@cbentejac cbentejac deleted the dev/qt6.6_phongImageViewer branch November 14, 2024 10:49
@cbentejac cbentejac mentioned this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants