Commit Graph

12845 Commits

Author SHA1 Message Date
enricoturri1966
3da63eab27 Tech ENABLE_RAYCAST_PICKING - Method GLCanvas3D::_mouse_to_3d() modified to use the new scene raycaster instead of reading data from the depth buffer
(cherry picked from commit prusa3d/PrusaSlicer@a7af73795d)
2023-11-04 11:41:09 +08:00
enricoturri1966
954904e486 Tech ENABLE_RAYCAST_PICKING - Rendering for rectangle selection made only inside the rectangle, on systems supporting framebuffers
Various other refactorings & fixes

(cherry picked from commit prusa3d/PrusaSlicer@39b1222b22)
2023-11-04 11:41:09 +08:00
enricoturri1966
c142161111 Removed tech ENABLE_RENDER_PICKING_PASS
(cherry picked from commit prusa3d/PrusaSlicer@f45711e7e5)
2023-11-04 11:41:09 +08:00
enricoturri1966
cbc95688df Tech ENABLE_RAYCAST_PICKING - Raytraced picking of Gizmo Flatten
(cherry picked from commit prusa3d/PrusaSlicer@f5e68a6ac6)
2023-11-04 11:41:09 +08:00
enricoturri1966
1964bd4321 Tech ENABLE_RAYCAST_PICKING - Refactoring to allow for easier update of raycasters transform
(cherry picked from commit prusa3d/PrusaSlicer@9ac5ab857b)
2023-11-04 11:41:09 +08:00
enricoturri1966
e60c67dfd2 Tech ENABLE_RAYCAST_PICKING - Raytraced picking of Move, Rotate and Scale Gizmo 2023-11-04 11:41:09 +08:00
Noisyfox
f05da6d0b9 Fix volume picking in cut gizmo 2023-11-04 11:41:09 +08:00
enricoturri1966
846e2b51de Tech ENABLE_RAYCAST_PICKING - Raytraced picking of gizmos - Move Gizmo
(cherry picked from commit prusa3d/PrusaSlicer@df47ba7122)
2023-11-04 11:41:09 +08:00
Noisyfox
f52eb33e5b Implement plate picking 2023-11-04 11:41:06 +08:00
enricoturri1966
ce88d24357 Tech ENABLE_RAYCAST_PICKING - Raytraced picking of volumes 2023-11-04 11:41:06 +08:00
enricoturri1966
e0a21de384 Tech ENABLE_GIZMO_GRABBER_REFACTOR - Refactoring of GLGizmoBase::Grabber to have a single static instance of the cube and cone models to be shared by all grabbers
(cherry picked from commit prusa3d/PrusaSlicer@f504236734)
2023-11-04 11:41:06 +08:00
Noisyfox
c2f3a95932 Fix variable init 2023-11-04 11:41:06 +08:00
Noisyfox
bf00e198de Fix macos build 2023-11-04 11:41:06 +08:00
Noisyfox
9b7ce149ae Fix move gizmo grabber rendering 2023-11-04 11:41:06 +08:00
enricoturri1966
767ae7f9f5 Tech ENABLE_LEGACY_OPENGL_REMOVAL - Fixed rendering of layer editing background on older OpenGL compatibility profile
(cherry picked from commit prusa3d/PrusaSlicer@642f64cb41)
2023-11-04 11:41:06 +08:00
enricoturri1966
4c521342d4 Tech ENABLE_LEGACY_OPENGL_REMOVAL - Fixed calculation of normal matrices sent to shaders
(cherry picked from commit prusa3d/PrusaSlicer@c468dcbed7)
2023-11-04 11:41:06 +08:00
enricoturri1966
8fd3b771b3 Cherry-picked a few changes from Tech ENABLE_GL_CORE_PROFILE 2023-11-04 11:41:06 +08:00
Noisyfox
f23fba6e7a Fix draw cut line 2023-11-04 11:41:06 +08:00
enricoturri1966
748063f3c0 Various fixes 2023-11-04 11:41:06 +08:00
Noisyfox
bf29e629ac Fix preview shell transparency 2023-11-04 11:41:05 +08:00
enricoturri1966
b7746f85e8 Tech ENABLE_LEGACY_OPENGL_REMOVAL - Fix into GLModel::send_to_gpu()
(cherry picked from commit prusa3d/PrusaSlicer@4b4ed423ef)
2023-11-04 11:41:05 +08:00
enricoturri1966
c117de3e3a Tech ENABLE_LEGACY_OPENGL_REMOVAL - Calculation of camera projection matrix
(cherry picked from commit prusa3d/PrusaSlicer@a0630420d9)
2023-11-04 11:41:05 +08:00
enricoturri1966
d872c39808 Tech ENABLE_GL_SHADERS_ATTRIBUTES - Added shaders for glsl version 140
(cherry picked from commit prusa3d/PrusaSlicer@76d1d4949b)
2023-11-04 11:41:05 +08:00
enricoturri1966
013842315d ENABLE_GL_IMGUI_SHADERS - Fixes in ImGuiWrapper::render_draw_data()
(cherry picked from commit prusa3d/PrusaSlicer@4964d6ecd5)
2023-11-04 11:41:05 +08:00
enricoturri1966
af98b9b76b Follow-up of 6b2fea5f8bb67a38bdcb7e3fb43c06a12a6d7798 - Fixed warnings
(cherry picked from commit prusa3d/PrusaSlicer@9701d3b01d)
2023-11-04 11:41:05 +08:00
enricoturri1966
fa1fff420c Tech ENABLE_GL_SHADERS_ATTRIBUTES - Fixed rendering of default bed in thumbnails
(cherry picked from commit prusa3d/PrusaSlicer@568bd39c5a)
2023-11-04 11:41:05 +08:00
enricoturri1966
c3158d2750 Removed obsolete code from GCodeViewer
(cherry picked from commit prusa3d/PrusaSlicer@033bee6431)
2023-11-04 11:41:05 +08:00
enricoturri1966
c171d4feee Tech ENABLE_GL_SHADERS_ATTRIBUTES - Use shader's vertex attributes and matrices in GLMmSegmentationGizmo3DScene
(cherry picked from commit prusa3d/PrusaSlicer@4eee0d05f3)
2023-11-04 11:41:05 +08:00
enricoturri1966
4c81123cfa Tech ENABLE_GL_IMGUI_SHADERS - Render imgui using shaders
(cherry picked from commit prusa3d/PrusaSlicer@d0d89a4d5b)
2023-11-04 11:41:05 +08:00
enricoturri1966
7923f82f97 Few small fixes 2023-11-04 11:41:05 +08:00
Noisyfox
b40e841aab Fix pick rendering depth issue 2023-11-04 11:41:05 +08:00
Noisyfox
bdbbd2d73a Fix mm rendering 2023-11-04 11:41:05 +08:00
Noisyfox
c7730009e5 Fix plate texture rendering depth issue 2023-11-04 11:41:05 +08:00
Noisyfox
0adbe9e032 Fix preview shell rendering 2023-11-04 11:41:04 +08:00
Noisyfox
83cb9433dd Fix outline rendering 2023-11-04 11:41:04 +08:00
enricoturri1966
a5234bb85b Tech ENABLE_LEGACY_OPENGL_REMOVAL - porting remaining changes
(cherry picked from commit prusa3d/PrusaSlicer@2f572d3cf0 )
2023-11-04 11:41:04 +08:00
enricoturri1966
4c22ab5298 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders. 1st installment.
Shader: flat - Default bed

(cherry picked from commit prusa3d/PrusaSlicer@a5ff37013b)
2023-11-04 11:41:04 +08:00
enricoturri1966
33b7ff43f5 Some refactoring into GLGizmoSlaSupports::render_points()
(cherry picked from commit prusa3d/PrusaSlicer@5621f00ee6)
2023-11-04 11:41:04 +08:00
enricoturri1966
4fbc59bdd4 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Use 2D vertices to render GLGizmoPainterBase circle
(cherry picked from commit prusa3d/PrusaSlicer@5193a15852)
2023-11-04 11:41:04 +08:00
enricoturri1966
4b15ad7e47 Removed unneeded pairs glPushMatrix()/glPopMatrix()
(cherry picked from commit prusa3d/PrusaSlicer@5f9aeb1e38)
2023-11-04 11:41:04 +08:00
Noisyfox
3a0d20ed20 Removed empty IMSlider_Utils.hpp 2023-11-04 11:41:04 +08:00
Noisyfox
514337f4b6 Fix a few issues in cut gizmo 2023-11-04 11:41:04 +08:00
enricoturri1966
a44e530d02 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Fix in GLGizmoRotate::render_angle_arc():
Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Fix in GLModel::render()

(cherry picked from commit prusa3d/PrusaSlicer@2379588196)
2023-11-04 11:41:04 +08:00
enricoturri1966
b21ff6987f Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel: GLVolume geometry + removed class GLIndexedVertexArray from codebase
(cherry picked from commit prusa3d/PrusaSlicer@1eac357739)
2023-11-04 11:41:04 +08:00
enricoturri1966
eea834a2d3 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Fixed bug in rendering gizmo rotate
(cherry picked from commit prusa3d/PrusaSlicer@5fcb618f96)
2023-11-04 11:41:04 +08:00
enricoturri1966
1ce6de489b Removed obsolete member variable GLCanvas3D::m_color_by
(cherry picked from commit prusa3d/PrusaSlicer@5089d1460d)
2023-11-04 11:41:04 +08:00
enricoturri1966
d4376857dd Follow-up of fdf8b11d4cfa793d1e45d82560d4bd97d0466d40 - Fixed GLGizmoSlaSupports::render_points()
(cherry picked from commit prusa3d/PrusaSlicer@0c74081f7d)
2023-11-04 11:41:03 +08:00
enricoturri1966
b9e85097b5 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - SLA caps rendered using GLModel
(cherry picked from commit prusa3d/PrusaSlicer@c9ff260d13)
2023-11-04 11:41:03 +08:00
enricoturri1966
646654a4f4 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Removed OpenGL legacy calls from GLCanvas3D::init()
(cherry picked from commit prusa3d/PrusaSlicer@aa4714a239)
2023-11-04 11:41:03 +08:00
enricoturri1966
6b314fdcfb Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Another refactoring to simplify client code of GLModel::Geometry
(cherry picked from commit prusa3d/PrusaSlicer@fa1ff1c357)
2023-11-04 11:41:03 +08:00