b82e936d04
Use texture instead of texelFetch to make it smoother
2024-08-19 23:11:01 +08:00
5c7e4b1b46
Use a 2-pass depth based outline algorithm when selected
2024-08-18 19:31:08 +08:00
8db93403c7
Mdel preview renders the actual colors of the filaments based on the filaments currently loaded in the AMS
...
Ported from BambuStudio
2024-06-16 17:15:51 +08:00
641e2eea9a
Revert "Add a simple subtle outline effect by drawing back faces using wireframe mode ( #2934 )"
...
This reverts commit 0cee513416 .
2023-12-05 22:05:11 +08:00
b335877362
Add a simple subtle outline effect by drawing back faces using wireframe mode ( #2934 )
...
* Add a simple subtle outline effect by drawing back faces using wireframe mode
* Show outline in white if the model color is too dark
* Make the outline algorithm more reliable
* Enable cull face, which fix render on Linux
* Fix `disable_cullface`
2023-12-03 09:27:03 +08:00
e424281da9
Show wireframe in MMU painter gizmo ( #2808 )
...
* Remove unused shader files
* Port wireframe shader from BBS
* Enable wireframe in MMU painter
Co-Authored-By: zhou.xu <zhou.xu@bambulab.com >
---------
Co-authored-by: zhou.xu <zhou.xu@bambulab.com >
2023-11-21 17:17:22 +08:00
60b05679e9
Cut: Fix model rendering
2023-11-04 11:41:11 +08:00
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
748063f3c0
Various fixes
2023-11-04 11:41:06 +08:00
2738e2b124
Fix thumbnail shader
2023-11-04 11:41:05 +08:00
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
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
a5234bb85b
Tech ENABLE_LEGACY_OPENGL_REMOVAL - porting remaining changes
...
(cherry picked from commit prusa3d/PrusaSlicer@2f572d3cf0 )
2023-11-04 11:41:04 +08:00
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
75b428d06b
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Removed Slic3r::GUI::GeometryBuffer from 3DBed.hpp and replaced with GLModel
...
(cherry picked from commit prusa3d/PrusaSlicer@6b041429f6 )
2023-11-04 11:41:03 +08:00
a4978ff826
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Textures rendering
...
(cherry picked from commit prusa3d/PrusaSlicer@1a47211bfc )
2023-11-04 11:41:03 +08:00
46f1a60b2c
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Background rendering
...
(cherry picked from commit prusa3d/PrusaSlicer@eda55701a2 )
2023-11-04 11:41:01 +08:00
3e9cbd2be5
Tech ENABLE_GLBEGIN_GLEND_REMOVAL - 1st installment - Selection bounding box
...
(cherry picked from commit prusa3d/PrusaSlicer@22f38235ea )
2023-11-04 11:41:00 +08:00
9966dae1e3
FIX:The mirrored patch normal vector needs to be reversed
...
Change-Id: I3a67322eb59355ed91d1af390eb34f7f3d378198
(cherry picked from commit 3187f2b7944ddd2b9b6dc621da07dac6d4b3b31f)
2023-07-07 17:25:51 +08:00
05f4f9d9bb
NEW: add overhang highlight area
...
overhang rgb=(200,0,0),remove supportType,do not save para after overhang operation preview
Change-Id: I947bbd9db264f00f0609b3f02140060f9a2621fb
(cherry picked from commit 796c4460fe998da206f9ca77973a20796fa1d3ca)
2023-07-07 17:25:51 +08:00
0d1fc16f44
ENH: refine the thumbnail rendering
...
1. add specific shader for thumbnail
2. do not render the negative-z part
3. fix the sinking related issue under cli
Change-Id: Ia59083437544c1c0bd924c811274ccbb137e9eb7
2023-04-17 15:39:02 +08:00
c69b7c924b
FIX: modify the shader load error for mac
...
Change-Id: I3e2b282b145b4d87e09c22d4fec1b88537212d60
2023-04-17 15:39:02 +08:00
7e717be2e3
ENH: Cut optimization, support for custom connectors
...
Change-Id: I65163314374fb74f0b16df47dacae82caa6fab0d
(cherry picked from commit 7bacc2c2a89be471f6fee51dd07a42222a28b55a)
2023-04-17 15:39:02 +08:00
fbb6236bfe
ENH: wireframe: refine the rendering logic under paint
...
1. remove wireframe in 3d view, only keep in paint;
2. pass barycentric_coordinates from outside
3. add shortcut hints
Change-Id: I911e5cdf3475926d9527dc0839fdce072ed54746
(cherry picked from commit 6e16d0ccfb71741e55daabd757be9f9e7613e695)
2022-12-15 04:33:48 -05:00
5c67c8fa94
ENH: enable wireframe
...
This reverts commit ed6e149381240fd83b61da70891127d400f30a39.
Change-Id: I010871fcf22322214c627fe907539c0916fa6ff5
2022-12-15 04:33:48 -05:00
aed538de45
ENH: shader: add logic to avoid error when opengl version less than 3.0
...
use a seperate shader for function which needs opengl 3.0 supports
Change-Id: Iff30a90211aa10ae9c4a1e36afeb331d252fb814
2022-10-20 19:34:37 +08:00
aae6b453d8
NEW: add the wireframe rendering mode for debug
...
currently we can turn on/off it by 'ctrl+shift+enter'
Change-Id: Ic9e5460e8955376e8e2c1a3701e12a1f0b4216ad
2022-10-20 19:34:37 +08:00
a41aad6d55
ENH: rendering: refine the rendering logic of GLVolume
...
1. set the unprintable volume to black even if it is mmu painted
2. add the bounding check logic when the object is partly inside of current plate
Change-Id: I69ce25eb85a71398ed8fb1d275136c5d943796d6
2022-09-02 12:52:18 +08:00
f8756e6c89
Add the full source of BambuStudio
...
using version 1.0.10
2022-07-15 23:42:08 +08:00