Candice Bentéjac
ebbd000714
[Viewer3D] MediaLoader: Send pointSize
as is
...
`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).
2024-12-17 19:07:40 +01:00
Candice Bentéjac
e3f1e27c68
[Viewer3D] MediaLoader: Bind fixedPointSize
for the SfMLoader
...
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.
2024-12-17 19:05:03 +01:00
Fabien Servant
0bf2c41524
Use pixel aspect ratio for 3d viewer
2024-11-26 15:30:09 +01:00
Candice Bentéjac
5f41542ed5
[Viewer3D] Inspector3D: Use Fusion
style instead of Material
...
`Material` was used by mistake following an erroneous import.
2024-11-25 14:48:51 +01:00
Candice Bentéjac
0bbeec5427
[Viewer3D] Set text color for the label of resectioned cameras
2024-11-22 16:55:24 +01:00
Candice Bentéjac
05a742a221
[ui] Fix color for MaterialToolLabel
...
The name of the property used to set the color was ambiguous, causing
the colors to not be applied at all.
2024-11-22 16:54:58 +01:00
Grégoire De Lillo
5fca8a74e2
[ui] Viewer3D: Fix wrong camera up vector initialization
...
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.
2024-11-14 10:49:56 +00:00
Grégoire De Lillo
bfda6f66ac
[ui] Viewer3D: Use directional light & add light controller
...
Use a single light entity instead of one per camera.
Use directional light instead of point light.
Add camera relative directional light controller.
2024-11-14 10:49:56 +00:00
fabien servant
69ea5b88d2
[qt6][Viewer3D] Fix mouse camera controller
2024-11-14 10:03:44 +01:00
Candice Bentéjac
62f0a3e5df
[qt6][Viewer3D] Change picking behavior
2024-11-07 18:15:44 +01:00
Candice Bentéjac
b884fc4e6b
[qt6] Viewer3D: Reset the default render mode to "Textured"
2024-11-07 18:15:43 +01:00
Candice Bentéjac
5953ed5767
[qt6] Add QT6 support for wireframe on nvidia
2024-11-07 18:15:42 +01:00
Candice Bentéjac
5a0b1c0c95
[qt6][qml] Clean-up code and harmonize comments
2024-11-07 18:15:37 +01:00
Candice Bentéjac
b12d1fed06
[qt6][qml] Remove unnecessary module imports
2024-11-07 18:13:36 +01:00
Candice Bentéjac
66c39633b4
[qt6][Viewer3D] Use DiffuseMapMaterial
for texture display
...
Replace `DiffuseSpecularMaterial`, which does not seem to support
correctly textures anymore, with `DiffuseMapMaterial`.
2024-11-07 18:13:21 +01:00
Candice Bentéjac
92e56673ed
[qt6] Use JS functions format to declare explicit parameters in slots
2024-11-07 18:13:19 +01:00
Candice Bentéjac
240188c0b4
[qt6][Viewer3D] Disable wireframe mode
...
Disable and hide the wireframe mode as the shaders need to be updated
for RHI.
2024-11-07 18:13:18 +01:00
Candice Bentéjac
2b569c1fd8
[qt6][Viewer3D] Inspector3D: Set color for labels in Inspector
2024-11-07 18:09:13 +01:00
Candice Bentéjac
f6a9e5d59c
[qt6][Viewer3D] Remove PointSize
render state
...
`PointSize` is not supported by RHI.
2024-11-07 18:09:12 +01:00
Candice Bentéjac
3ff279d99a
[qt6] Use JS functions format to declare explicit parameters in slots
2024-11-07 18:09:10 +01:00
Candice Bentéjac
e1ef8acadc
[qt6][Viewer3D] MediaLibrary: Fix loading medias from attributes
...
Additionally harmonize comments and explicitly declare parameters
for slots that need them.
2024-11-07 18:09:09 +01:00
Candice Bentéjac
138cc18864
[qt6][Materials] Use correct graphics API and update SH shaders
...
With Qt6, OpenGL is not used directly anymore, and we thus must use
the RHI backend, set to version 1.0.
The SphericalHarmonics shaders, which were previously written in OpenGL,
need to be updated accordingly.
2024-11-07 18:09:07 +01:00
Candice Bentéjac
d5b5163828
[qt6] Remove shaders from Meshroom and move them to QtAliceVision
2024-11-07 18:09:05 +01:00
Candice Bentéjac
0e71f2a520
[qt6] Update versions for all the imported modules
...
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00
Candice Bentéjac
6d845376eb
[qt6] Use JS functions format to declare explicit parameters in slots
...
This fixes all the "Injection of parameters into signal handlers
is deprecated. Use JavaScript functions with formal parameters instead."
warnings.
2024-11-07 18:08:59 +01:00
Candice Bentéjac
02be73df65
[qt6] Remove properties that do not exist anymore in Qt6.6
2024-11-07 18:08:55 +01:00
Aurore LAFAURIE
ccd88c4646
[ui] Replacement of Controls1 SplitView to Controls2 SplitView
2024-09-17 18:32:59 +02:00
Aurore LAFAURIE
f8d963e0b0
[ui] Add MScrollBar for better visibility
...
Always visible if height or width need it, with specific colors for hovered and pressed behaviors.
2024-09-11 17:33:29 +02:00
Candice Bentéjac
321ffec85f
[Viewer3D] MediaLibrary: Check current node's existence before accessing it
2024-09-05 09:36:18 +02:00
Fabien Castan
dcb2f672aa
Merge pull request #2379 from alicevision/Fix3DViewerZoom
...
Fix 3D Viewer zooming problem
2024-05-28 08:37:30 +02:00
Fabien Castan
f7e612caa4
Merge pull request #2386 from alicevision/fix/iconMappingBbox
...
[ui] Fix BoundingBox visibility icon because of mapping name
2024-05-25 17:25:07 +02:00
Fabien Castan
bfea635eb0
Merge pull request #2385 from alicevision/Viewer3DBoundingBox
...
Viewer3D: Adjust bounding-box by moving faces
2024-05-12 23:35:09 +02:00
Elyas Benyamina
83926e23b2
Fix the problem that blocked the 3D Viewer and forced us to reload it when zooming too much.
2024-05-03 15:06:07 +02:00
Elyas Benyamina
d376accf81
[UI][BoundingBox] Viewer3D: Adjust bounding-box by moving faces
2024-04-29 11:25:56 +01:00
Aurore LAFAURIE
9b0de32930
[ui] Bounding Box are usable in other nodes, not only Meshing
2024-04-26 11:18:04 +02:00
Aurore LAFAURIE
d6b5e77c02
[ui] Fix BoundingBox visibility icon because of mapping name
2024-04-25 18:14:02 +02:00
Aurore LAFAURIE
369143eca1
[ui] Sync camera gizmo in Viewer3D enabled
2024-04-10 19:39:36 +02:00
Aurore LAFAURIE
361f777118
[ui] Quick Fix of syncViewpointCamera when no element in Scene
...
Disable View Through the active camera if no element in inspector 3d
2024-04-10 19:39:36 +02:00
Fabien Castan
29243765c8
[ui] Viewer3D: remove animations on cameras
2024-04-10 19:39:36 +02:00
Fabien Servant
f87ff95c78
Custom loader for .pc.ply pointcloud
2024-03-25 10:29:38 +01:00
Matthieu Hog
bd21a977b2
added ply to list of supported files
2024-02-13 10:27:57 +01:00
Candice Bentéjac
7d0ff8ccbb
[Viewer3D] SfmDataLoader: Add comment to explain magic number
2023-11-21 15:58:23 +01:00
Candice Bentéjac
e0ebf1446d
[Viewer3D] MediaLoader: Bind the display status of the resection ID slider
2023-11-21 14:44:55 +01:00
Candice Bentéjac
e4d0243e3c
[Viewer3D] Connect any change of the selected view ID to the SfmDataLoader
2023-11-17 11:36:16 +01:00
Candice Bentéjac
a579ea349d
[Viewer3D] Inspector3D: Update resection ID slider upon any index update
2023-11-16 15:16:22 +01:00
Candice Bentéjac
45b267a49b
[Viewer3D] Inspector3D: Replace resectionID-related labels with ToolLabels
2023-11-07 17:00:59 +01:00
Candice Bentéjac
3d67f83090
[Viewer3D] Display resection IDs of the active 3D model
...
Instead of displaying the resection IDs of the 3D model that was loaded
last, update the display whenever the active model selection changes.
2023-11-07 16:45:40 +01:00
Candice Bentéjac
c8ac11ca05
[Viewer3D] Inspector3D: Replace Group
by ExpandableGroup
when relevant
...
The content of the "DISPLAY" and "CAMERA" groups is hidden by default.
Instead of customizing the `Group` object's toolbar to hide/expand these
groups, the `ExpandableGroup` object, which is specifically made to handle
these cases, is used. The groups can be expanded either by clicking
the dedicated tool button or anywhere on the toolbar.
2023-11-07 16:45:31 +01:00
Candice Bentéjac
610523e3ea
[Viewer3D] Add slider to display cameras based on their resection IDs
...
If any model with cameras is displayed in the 3D Viewer, a slider can
be used to filter the cameras that are being currently displayed based
on their resection IDs. This allows to visualize the order in which the
cameras have been added, and the groups in which they have been added.
2023-11-07 11:16:16 +01:00
Candice Bentéjac
9d2974d282
[Viewer3D] Clean-up: Harmonize syntax across all the files
2023-11-06 16:28:20 +01:00