Lukáš Hejl
0c2d9f01a6
Fixed z-fighting between contour around the area selected by smart fill and painted triangles inside the FDM support painting gizmo.
2021-10-18 11:35:13 +02:00
Lukáš Hejl
b45675b4e1
Follow-up of 6194e67e68
- Separated the part that computed triangles normals and lighting inside the fragment shader into a separate shader mm_gouraud, which is only used for the multi-material painting gizmo.
2021-10-18 11:35:13 +02:00
Lukáš Hejl
2b59a16dc7
Refactored rendering of the contour around areas selected by smart fill to prepare it for the FDM supports painting gizmo.
2021-10-07 13:12:36 +02:00
Lukas Matena
c61a5d234e
After gizmo snapshots are compacted, rename the last one to something generic
2021-09-30 12:17:52 +02:00
Lukáš Hejl
57f7b49223
Corrected undo/redo snapshot name when entering or leaving multi-material painting gizmo.
2021-08-30 10:41:41 +02:00
Lukáš Hejl
18cff61bd2
Reworked visualization of selected triangles by seed fill and bucket fill inside the multi-material painting gizmo. Now is drawn boundary around a selected area, and also all triangles inside the selected area are drawn with a darker color.
2021-08-10 21:38:48 +02:00
Lukas Matena
85c7dea1a9
Finished concept of gizmos with no toolbar icon:
...
on_is_selectable and on_is_activable functions are now completely independent,
the former says if there shall be an icon in the left toolbar, the latter
says if the gizmo can be activated (by a shortcut or GLGizmoManager::open_gizmo)
2021-08-06 16:08:04 +02:00
Lukáš Hejl
6194e67e68
Triangle normals and lighting are computed inside the fragment shader for the multi-material painting gizmo.
...
It results in a six-fold reduction of the amount of data transferred into GPU because there is no need to duplicate vertices for every triangle. Also, normals aren't needed to be transferred to GPU.
2021-07-13 11:23:36 +02:00
Lukáš Hejl
c0092a7b0a
Speed up the rendering of triangles in painting gizmos by only copying triangle data to the GPU when triangles were changed by painting.
2021-07-13 11:23:36 +02:00
Lukáš Hejl
48789e5ae1
Added a limitation on the number of usable extruders in the multi-material gizmo. If a printer has more extruders than this limit, a notification about it is shown.
2021-06-28 08:09:06 +02:00
Lukáš Hejl
15a1b51339
Refactoring and cleanup of painting gizmos.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
8a77fa38f0
Modified MMU painting gizmo behavior so that all triangles aren't painted by default by the first extruder, which was causing several problems.
...
This commit also fixed the following issues:
1) After loading a 3MF with painted triangles using the MMU painting gizmo, the painted triangles might not be displayed correctly in the MMU painting gizmo.
2) The MMU segmentation was unnecessarily executed for all layers and not just for the painted layers.
3) Object's base color wasn't changed when the assigned extruder for that object was changed while the MMU paint gizmo was opened.
4) Changing the base color of an object was only possible by removing all painted triangles.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
b2677f513c
Fixed a possible crash when closing the MMU painting gizmo cause by a non-virtual destructor.
2021-06-16 06:06:33 +02:00
Lukáš Hejl
cc913d52ef
Added name for items in undo/redo stack inside multi-material gizmo.
2021-06-03 18:11:48 +02:00
Lukáš Hejl
660acede9e
Sphere brush color in MMU painting gizmo is now the same as color used for painting.
2021-05-31 14:23:12 +02:00
Lukáš Hejl
781e6607c8
Fixed updating of extruders list in MMU segmentation gizmo after adding extruders and reloading 3MF with different extruder count and colors.
2021-05-04 07:59:16 +02:00
Lukáš Hejl
2d3eef4e84
Fixed possible warnings
2021-05-03 21:13:13 +02:00
Lukáš Hejl
d11d15aa1e
Rework of MMU segmentation gizmo to support more than three colors.
2021-04-30 15:58:25 +02:00
Lukáš Hejl
576c5b78e9
Added seed fill for MMU segmentation
2021-04-27 06:48:09 +02:00
Lukáš Hejl
1b144e80bd
Added hiding of MMU segmentation gizmo when it is selected printer with only one extruder.
2021-04-27 00:35:43 +02:00
Lukáš Hejl
e3c33844d5
WIP: Duplicated the FDM support gizmo for the MMU segmentation
2021-04-19 07:01:11 +02:00