Enrico Turri
b557336fa6
Fixed conflicts after merge with master
2019-04-25 08:12:48 +02:00
YuSanka
065448e9e5
Big Refactoring: - deleted/renamed all _Prusa_ prefixes,
...
- cleaned code from commented parts
- rescale() -> msw_rescale()
2019-04-25 01:45:00 +02:00
bubnikv
2cc7b00a7d
WIP: World / local transformations of an object instance from the side panel.
2019-04-24 19:03:05 +02:00
Enrico Turri
d79a2b8d2d
GLCanvas3D -> added support for cursor change and change cursor when using SLA support gizmo rectangle selection
2019-04-24 15:43:52 +02:00
Enrico Turri
9710140948
int GLCanvas3D::m_hover_volume_id replaced with std::vector<int> GLCanvas3D::m_hover_volume_idxs
2019-04-24 15:07:28 +02:00
YuSanka
5761c8f126
Merge remote-tracking branch 'origin/master' into ys_msw_dpi
2019-04-18 15:33:50 +02:00
YuSanka
de55801e31
Merge remote-tracking branch 'origin/ys_bug_fixing' into ys_msw_dpi
2019-04-18 15:24:50 +02:00
Lukas Matena
8df2a19974
SLA clipping plane can now be controlled by Ctrl + mouse wheel rotation
2019-04-17 14:27:20 +02:00
Enrico Turri
dfa924e8eb
Ctrl+C and Ctrl+V for Copy and Paste refactored in the same way as Ctrl+A for Select All
2019-04-16 13:47:37 +02:00
YuSanka
fc63a28481
Application Scaling for MSW:
...
+ Experiments with toolBars scaling
+ Rescaled warning and printing legends
2019-04-16 12:13:45 +02:00
Enrico Turri
e8c08d8f91
Switch to regular shading when manipulating an object with gizmos while layers editing is active
2019-04-16 08:50:46 +02:00
Enrico Turri
00a7673a2b
Fixed glitches in rendering when activating layers editing
2019-04-15 14:19:18 +02:00
Enrico Turri
dddea0db22
Fixed selection when right-clicking in the 3D scene to show the context menu
2019-04-15 10:27:40 +02:00
bubnikv
1e455bc065
Fix of "Variable layer height feature breaks after rotating part #2073 "
...
There was an approximate bounding box used at the GUI, while a snug
bounding box was used at the back end, causing invalidation
of the variable layer height editing profile on rotated objects.
A snug bounding box around the first instance is now cached.
2019-04-13 14:15:54 +02:00
bubnikv
80afb6da78
Fixed SLA clippling plane & picking.
2019-04-12 16:08:40 +02:00
Enrico Turri
7d15ee8fd9
Offset used to place newly added volumes and instances proportional to the bed max size
2019-04-12 15:31:33 +02:00
Enrico Turri
5a1b9cd382
Copy and paste -> Fixed tooltips for copy and paste toolbar items on Mac
2019-04-12 08:57:53 +02:00
Enrico Turri
3e902ecfbd
Fixed conflicts after merge with master
2019-04-12 08:41:59 +02:00
bubnikv
112f218c03
Merge branch 'lm_sla_gizmo_clipping_plane'
2019-04-11 15:45:49 +02:00
bubnikv
4a210aeecf
Vojtech's improvements in the SLA preview cutting dialog.
2019-04-11 15:44:32 +02:00
Enrico Turri
4718c839f6
Copy and paste -> Added items for copy and paste on the toolbar
2019-04-11 13:20:34 +02:00
Enrico Turri
1b6bf30e76
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_copy_and_paste
2019-04-10 14:03:57 +02:00
Enrico Turri
2dc88ab0be
Fixed crash when typing on keyboard during the app start-up
2019-04-10 13:52:18 +02:00
Lukas Matena
678c513cb9
Merge branch 'master' into lm_sla_gizmo_clipping_plane
2019-04-10 13:43:02 +02:00
Enrico Turri
a80978f84a
Do not show as hovered the entire instance when hovering on modifiers
2019-04-10 12:20:07 +02:00
Enrico Turri
6043dbd07d
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_copy_and_paste
2019-04-10 11:20:28 +02:00
Enrico Turri
e61be7d260
Render picking pass renders volumes in the same order as the regular render pass
2019-04-10 11:20:09 +02:00
bubnikv
7b8b8b97ef
Fixed Cmd-A selection in the SLA gizmo.
2019-04-10 10:16:04 +02:00
Enrico Turri
0889877e26
Tweaks to selection from 3D scene
2019-04-09 15:42:00 +02:00
Vojtech Kral
d97037e246
GLCanvas3D: Fix an assert in _set_current()
2019-04-09 15:16:10 +02:00
Enrico Turri
a13b2b1de3
Fixed crash when using mouse wheel before the 3D scene is shown (during app startup)
2019-04-09 11:18:40 +02:00
bubnikv
4904359399
Finished SLA print / material correction visualization.
2019-04-08 18:09:31 +02:00
Lukas Matena
eadf7daa37
Merge branch 'master' into lm_sla_gizmo_clipping_plane
2019-04-08 10:50:10 +02:00
Lukas Matena
bbda1896f9
The gizmo is now able to triangulate and show the cut, the triangulated cut is cached
2019-04-08 10:31:19 +02:00
Lukas Matena
9b7857aaab
SLA gizmo clipping plane logic moved to fragment shader
...
This means the clipping now works again with both legacy and modern OpenGL
2019-04-08 10:31:16 +02:00
Lukas Matena
273fcf68a1
SLA gizmo now uses glClipPlane instead of touching projection matrix
...
Messing with the projection matrix invalidates the z-buffer
This currently only works in OpenGL legacy mode
2019-04-08 10:31:13 +02:00
Lukas Matena
bc9164e40c
SLA gizmo now respects the clipping plane when rendering points and raycasting mouse onto mesh
2019-04-08 10:31:10 +02:00
Lukas Matena
fd1f9d65fb
First steps on SLA clipping plane
2019-04-08 10:31:04 +02:00
Enrico Turri
a688493d91
Merge branch 'et_canvas_gui_refactoring' of https://github.com/prusa3d/Slic3r
2019-04-08 09:09:12 +02:00
Enrico Turri
8cdc461d34
CTRL-click replace SHIFT-click for addind/removing objects to the current selection from the 3D scene
2019-04-08 08:30:28 +02:00
Enrico Turri
6ca49c05df
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring
2019-04-05 11:55:56 +02:00
Lukas Matena
177f5b02fa
Disabled layer editing mode for SLA
2019-04-05 09:51:58 +02:00
Enrico Turri
48da4d4756
Fixed conflicts after merge with master
2019-04-03 08:38:32 +02:00
bubnikv
eeae1c0495
Fixed update of the SLAPrint back end after mirroring in a specific
...
case of mirroring around the X axis.
Fixed some asserts on visual studio due to access to empty std::vector
2019-04-02 18:04:23 +02:00
Vojtech Kral
1979baf619
imgui: Fix font size and scaling on Windows
2019-04-02 15:28:14 +02:00
Enrico Turri
89a0c84c83
Fixed conflicts after merge with master
2019-04-02 15:13:26 +02:00
Enrico Turri
ba4f0445c3
Fixed rendering of sla cap slices after deleting object
2019-04-02 14:43:38 +02:00
Enrico Turri
f147da1e5d
Fixed conflicts after cherry-picking 5c89135
2019-04-02 14:32:12 +02:00
bubnikv
dc64b4d971
Merge branch 'master' of https://github.com/prusa3d/Slic3r
2019-04-02 13:54:46 +02:00
bubnikv
086f11df98
Handling of left hand oriented coordinate systems:
...
is_left_handed() method on transformations and volumes
rendering of GLVolumes in left handed coordinate systems by glFrontFace(GL_CW);
SLA slicing on left hand oriented instances by flipping the mesh for SLAPrintObject in X.
rendering of the SLA cutting plane in left handed systems
resetting the SLA clipping planes on 3D preview invalidation
2019-04-02 13:47:49 +02:00
Vojtech Kral
c542413962
imgui: More refactoring, cut gizmo window positioning
2019-04-02 10:36:24 +02:00
Vojtech Kral
88cc93cdc9
imgui: Refactor font size, font initialization
2019-04-01 14:28:39 +02:00
Enrico Turri
83aaa471cf
Fixed conflicts after merge with master
2019-04-01 14:21:55 +02:00
tamasmeszaros
50942e9382
Merge branch 'tm_reuse_unified'
2019-04-01 12:24:50 +02:00
Enrico Turri
7cfcf8fb9a
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring
2019-04-01 11:40:08 +02:00
bubnikv
62539bc35b
Fix of No preview of position in variable layer editing UI at retina resolution #2050
2019-04-01 11:08:26 +02:00
Enrico Turri
d87b478d60
Camera refactoring
...
1) All camera related OpenGL calls moved into class
2) The Camera class now stores the view matrix, the projection matrix and the viewport
3) The Camera class now exposes methods to get the camera orientation vectors, the camera position, the view matrix, the projection matrix and the viewport
4) All the code operating on the camera or requiring camera data has been modified to use the new methods
2019-04-01 10:00:10 +02:00
tamasmeszaros
725f115756
Merging with master for having minz png compression.
...
Much greater performance boost from better compression algorithm than that from the merged polygons.
2019-03-29 15:21:46 +01:00
Enrico Turri
af3a32b8a0
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring
2019-03-28 09:30:23 +01:00
Enrico Turri
98a848d239
Layers editing initialized only for 3D view and not for g-code preview
2019-03-28 09:12:32 +01:00
Enrico Turri
a4f404a6a4
Selection enabled only for 3D view and not for g-code preview
2019-03-28 08:44:46 +01:00
Enrico Turri
8459410e3c
Fixed conflicts after merge with master
2019-03-27 14:57:05 +01:00
Enrico Turri
d795f07e7b
Added glsafe() around OpenGL calls where missing
2019-03-27 14:42:09 +01:00
Lukas Matena
490074a2dd
SLA gizmo now turns off in case someone adds an object/instance (to prevent rendering points in thin air, etc.)
...
Also, a bug appering when adding an object larger than the bed and scaling it down was fixed (sla gizmo did not work correctly in that case)
2019-03-27 14:19:12 +01:00
tamasmeszaros
bc74761513
Integrating new step, removing old and unused steps.
2019-03-27 10:59:29 +01:00
Enrico Turri
3cd6db2278
Fixed selection lost when Place on Face gizmo is active and user click on another object
2019-03-27 09:06:53 +01:00
Enrico Turri
000542f48d
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring
2019-03-27 08:33:48 +01:00
tamasmeszaros
4d8800bc8a
Fixing broken statistics.
2019-03-26 16:45:04 +01:00
Enrico Turri
fee0a6b6b5
void GLCanvas3D::update_gizmos_data() moved into void GLGizmosManager::update_data(GLCanvas3D& canvas)
2019-03-26 15:55:47 +01:00
Enrico Turri
47c39f51e5
Handling of gizmos related key events moved into new method GLGizmosManager::on_key()
2019-03-26 14:38:30 +01:00
Enrico Turri
52f11a6f0d
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring
2019-03-26 14:08:46 +01:00
Enrico Turri
d18208458b
Handling of gizmos related char events moved into new method GLGizmosManager::on_char()
2019-03-26 14:08:02 +01:00
Enrico Turri
c1d74d2943
Code cleanup
2019-03-26 12:39:40 +01:00
Enrico Turri
eafdcb04ba
Handling of gizmos related mouse events moved into GLGizmosManager::on_mouse()
2019-03-26 12:30:17 +01:00
tamasmeszaros
a49643ebdb
Merging with master, solving conflicts.
2019-03-26 11:13:28 +01:00
tamasmeszaros
57e28b53f2
Further refactor and simplification of slice index and print data.
2019-03-26 10:57:45 +01:00
bubnikv
82321c7aee
Merge branch 'master' of https://github.com/prusa3d/Slic3r
2019-03-26 10:39:08 +01:00
bubnikv
e0e1e2b682
Improved SLA layer view: Low layer shall be rendered from the slice above,
...
triangulated slices are shifted slightly away from the clipping planes.
FDM: Ported a "(bridged)" G-code comment from upstream.
2019-03-26 10:38:50 +01:00
Enrico Turri
a09197879d
Code cleanup
2019-03-26 09:10:35 +01:00
Enrico Turri
3818bfa19a
1st installment of gizmos refactoring
...
1) GLCanvas3D::Gizmos moved into a standalone class GLGizmosManager
2) GLGizmosManager handles mouse events by calling its on_mouse method (wip)
2019-03-26 09:01:04 +01:00
tamasmeszaros
d73d9309f1
Refactoring and commenting slice index solution.
2019-03-25 19:02:05 +01:00
Lukas Matena
3f7f8f978e
Fix of sla gizmo (it sometimes showed supports for hidden objects)
2019-03-24 13:35:09 +01:00
bubnikv
2fe27a29e0
Fixed the SLA layer preview.
2019-03-22 21:26:58 +01:00
tamasmeszaros
4ece50e3db
Merge branch 'master' into tm_slice_index
2019-03-22 15:31:58 +01:00
tamasmeszaros
d165dbb498
Refactoring changes to the slice index.
2019-03-22 15:31:38 +01:00
Lukas Matena
0848617fd3
SLA gizmo fix: adding points to selection by Shift+click should now work again (was broken by 8466c55
)
2019-03-22 10:56:51 +01:00
tamasmeszaros
0ffc0c3a84
Merge branch 'master' into tm_slice_index
2019-03-21 15:17:01 +01:00
tamasmeszaros
24a5dd4235
FIx for broken slice preview
2019-03-21 15:16:33 +01:00
bubnikv
562343cd2a
Localization fix of the warning texts in the 3D scene.
...
Improved anti-aliasing of the warning texts in the 3D scene
and the G-code legend. A ClearType rendering has been suppressed
by rendering of the text into a red channel only.
2019-03-21 14:33:55 +01:00
tamasmeszaros
d4dde12d0d
Slic3r compiles with the new slice index interface.
2019-03-21 12:25:33 +01:00
Enrico Turri
3a923b7121
Fixed conflicts after merge with master
2019-03-20 16:09:14 +01:00
Lukas Matena
8466c55b78
SLA gizmo - points are added on leftdown event, not leftup as before
2019-03-20 14:04:59 +01:00
Lukas Matena
df01af975a
SLA gizmo now forces objects to use their normal color (not SELECTED_COLOR)
2019-03-20 14:04:20 +01:00
Enrico Turri
d23824af97
GLCanvas3D::Gizmos as a standalone class (GLGizmosManager)
2019-03-20 13:51:25 +01:00
Lukas Matena
2728e45646
Renamed function mouse_event to gizmo_event
2019-03-20 13:44:34 +01:00
Enrico Turri
df250039df
Tech ENABLE_CANVAS_GUI_REFACTORING set as default
2019-03-20 09:33:30 +01:00
Enrico Turri
80c1a8d8e4
GLCanvas3D::Selection as a standalone class
2019-03-19 13:30:21 +01:00
Enrico Turri
5bb89f4da2
Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring
2019-03-19 10:48:51 +01:00
Enrico Turri
262f187699
Fixed visual hints for position in case of single volume selection
2019-03-19 10:09:54 +01:00
Enrico Turri
334b5a82a6
Tech ENABLE_MOVE_MIN_THRESHOLD set as default
2019-03-19 10:04:19 +01:00