enricoturri1966
b9caacfdd9
Merge branch 'et_opengl_3_rebase' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_raycast_picking_rebase
2022-07-13 13:50:34 +02:00
enricoturri1966
3928c5c01c
Tech ENABLE_GL_CORE_PROFILE - Fixed rendering of circle cursor with dashed lines in GLGizmoPainterBase
2022-06-22 10:51:54 +02:00
enricoturri1966
df47ba7122
Tech ENABLE_RAYCAST_PICKING - Raytraced picking of gizmos - Move Gizmo
2022-06-13 13:09:24 +02:00
enricoturri1966
1a1cf108fc
Tech ENABLE_GL_SHADERS_ATTRIBUTES merged into ENABLE_LEGACY_OPENGL_REMOVAL
...
Fixed conflicts during rebase with master
2022-05-26 10:50:32 +02:00
enricoturri1966
46283cfde3
Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES renamed as ENABLE_GL_SHADERS_ATTRIBUTES
2022-03-09 08:22:07 +01:00
enricoturri1966
5ffe010a9d
Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL merged into ENABLE_LEGACY_OPENGL_REMOVAL
2022-03-08 14:50:32 +01:00
enricoturri1966
05efb88e3f
Tech ENABLE_GLBEGIN_GLEND_REMOVAL renamed as ENABLE_LEGACY_OPENGL_REMOVAL
2022-03-08 14:08:11 +01:00
enricoturri1966
66fa2b1e26
Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
...
Shader: mm_contour
2022-03-08 10:57:43 +01:00
Filip Sykala
74cf6649f3
Merge branch 'master' into fs_mouse
2022-02-10 10:26:04 +01:00
enricoturri1966
df3d670357
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Removed Slic3r::GUI::GLPaintContour from GLGizmoPainterBase.hpp/.cpp and replaced with GLModel
2022-02-09 15:11:56 +01:00
enricoturri1966
8916a00821
Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel:
...
TriangleSelectorGUI::m_iva_enforcers
TriangleSelectorGUI::m_iva_blockers
TriangleSelectorGUI::m_iva_seed_fills
TriangleSelectorGUI::m_varrays
GLGizmoPainterBase::s_sphere
2022-02-09 13:13:10 +01:00
Filip Sykala
0c40e2f8c8
Merge branch 'master' into fs_mouse
...
# Conflicts:
# src/slic3r/GUI/Gizmos/GLGizmoRotate.cpp
# src/slic3r/GUI/Gizmos/GLGizmoRotate.hpp
2022-02-08 10:43:29 +01:00
enricoturri1966
afcac6e2ea
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Refactoring of GLModel to:
...
1) allow for custom vertex data layout
2) allow for custom index data format
3) allow for any OpenGL primitive type
2022-01-27 12:00:51 +01:00
YuSanka
7111da2dbf
Merge remote-tracking branch 'origin/master' into dev
2022-01-24 08:37:51 +01:00
enricoturri1966
0e3a3aa522
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - GLGizmoPainterBase circle
2022-01-21 09:33:52 +01:00
Lukáš Hejl
6fed5c29a1
Fixed use of an uninitialized variable in GLGizmoPainterBase::update_raycast_cache().
2022-01-20 15:31:53 +01:00
Filip Sykala
f23c356507
Merge branch 'dev' into fs_mouse
...
# Conflicts:
# src/slic3r/GUI/GLCanvas3D.cpp
# src/slic3r/GUI/Gizmos/GLGizmoBase.cpp
# src/slic3r/GUI/Gizmos/GLGizmoBase.hpp
# src/slic3r/GUI/Gizmos/GLGizmoScale.cpp
# src/slic3r/GUI/Gizmos/GLGizmoScale.hpp
2022-01-20 09:25:06 +01:00
enricoturri1966
6201dad245
Tech ENABLE_COLOR_CLASSES set as default
2022-01-14 08:19:00 +01:00
enricoturri1966
cd4094743e
Tech ENABLE_COLOR_CLASSES - 1st installment -> Introduction of classes ColorRGB and ColorRGBA to unify color data definition and manipulation
2021-12-22 10:45:35 +01:00
Filip Sykala
03d0e36f2f
Merge branch 'dev' into fs_mouse
...
# Conflicts:
# src/slic3r/GUI/Gizmos/GLGizmoBase.cpp
# src/slic3r/GUI/Gizmos/GLGizmoBase.hpp
# src/slic3r/GUI/Gizmos/GLGizmoPainterBase.hpp
# src/slic3r/GUI/Gizmos/GLGizmoRotate.cpp
# src/slic3r/GUI/Gizmos/GLGizmoRotate.hpp
2021-12-14 11:13:42 +01:00
Filip Sykala
123903f317
Clean up GLGizmoManagaer
...
Clean up GLGizmoBase
2021-12-10 14:58:06 +01:00
enricoturri1966
e3d5cd445c
Gizmos refactoring - Removed GLModels defined into GLGizmoBase, and mostly unused, to avoid wasting GPU memory. Use a shared GLModel for Gizmos inheriting from GLGizmoPainterBase. Initialization of GLModels moved from constructor to render methods
2021-12-10 11:28:12 +01:00
Filip Sykala
c751d6327d
Separate GizmoManager on_move into gizmo itself
2021-12-10 09:09:53 +01:00
Lukáš Hejl
7bb38840e1
Replaced the repeated application of Cursors (Sphere or Circle) in painting using 2D and 3D Capsules.
...
Previously, the Cursor (Sphere or Circle) was repeatedly applied between two mouse positions, creating brushstrokes with ripples on the edges between those mouse positions.
Now, a single capsule (3D or 2D) is applied between those mouse positions, which creates brushstrokes without these ripples.
2021-12-02 12:36:48 +01:00
Lukáš Hejl
c6940970f2
Decreased the minimum diameter of the brush in the multi-material painting gizmo to 0.1 with respect to #7108 .
2021-11-12 17:52:12 +01:00
Lukas Matena
ba56a79795
Simplify gizmo now renders the volume by itself,
...
it does not rely on the usual GLVolume rendering. GLCanvas3D::toggle_model_object_visibility
was extended to hide a single volume. Rendering the model and wireframe uses the same
vertex buffer, which is now used through GLModel class. GLGizmoRenderTransparent class
should no longer be needed. GLCanvas3D::reload_scene calls replaced with request_rerender.
2021-11-12 06:49:09 +01:00
Lukas Matena
a01ab28e4c
Fixed encoding of gizmo entering/leaving undo redo snapshots,
...
which was broken by adding an extra TakeSnapshot overload in 41dc265
2021-10-29 21:47:47 +02:00
Lukáš Hejl
d8a0d0523f
Allowed painting in the FDM supports, seam, and multi-material gizmo to only triangles not clipped by a clipping plane.
2021-10-21 08:49:24 +02:00
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 6194e67e689d85d4e6d0666dd4c2b993fdeeb90d - 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
6f6f6de506
Added an option to limit painting to triangles only highlighted by "Highlight by angle" in the support painting gizmo.
2021-10-18 10:54:31 +02:00
Lukáš Hejl
542ba1bb9a
Added rendering of smart fill and contour around selected areas for the FDM supports painting gizmo.
2021-10-07 13:12:36 +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
Filip Sykala
a2d2dec107
Merge branch 'master' into fs_simplify_wireframe
2021-09-30 13:03:32 +02:00
Filip Sykala
e3459c7c46
Add Rendering wire frame when simplify
2021-09-30 13:03:15 +02:00
Lukas Matena
5fe90599fc
Painting gizmos no longer use a separate undo/redo stack
2021-09-30 12:18:43 +02:00
Lukáš Hejl
3b4d10656c
Renamed 'Seed fill' to 'Smart fill'.
2021-09-01 14:32:34 +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
dd55b55853
Swapped the position of seed fill and bucket fill inside the multi-material gizmo. Changed the default value for the seed fill angle.
2021-08-06 16:46:48 +02:00
enricoturri1966
b24488ce51
Tech ENABLE_SINKING_CONTOURS -> Sinking contours shown while dragging Move/Rotate/Scale gizmos and show contours for gizmo cut
2021-07-27 13:02:06 +02:00
Lukáš Hejl
51b94f4747
Added the bucket fill tool into the multi-material gizmo. Also, the multi-material gizmo was reworked to show only options applicable for a chosen painting tool.
2021-07-16 09:19:40 +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
ae1a799cf4
Fixed an issue for multi-volume objects where the seed fill visualization in the multi-material gizmo didn't disappear after the mouse was moved to another volume.
2021-06-16 06:06:34 +02:00
Lukáš Hejl
15a1b51339
Refactoring and cleanup of painting gizmos.
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
7377fc34ac
Fixed cracks in MMU painting gizmo. All triangles, even not painted triangles, are now rendered inside MMU painting gizmo.
...
The cracks were caused by using glPolygonOffset to resolve Z-fighting. All triangles of the object were firstly rendered entirely with a base color. And then paint triangles were drawn over these already rendered triangles.
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
0a8a3f6d8c
Fixed build on Windows.
2021-04-30 15:40:27 +02:00