Commit Graph

34 Commits

Author SHA1 Message Date
jun.zhang 2589673749 ENH: remove black edge of silhouette effect
jira: no-jira

Change-Id: Id1b2e6f78bb567ebc74cf5a20c77fd9f5337f044
2025-04-15 08:20:29 +08:00
jun.zhang cab351837e FIX: silhouette shader
jira: STUDIO-10736 / STUDIO-10723 / STUDIO-10720

Change-Id: Id4335e53bb80fa6f9c0404a0d0de6b530ff9f691
2025-03-24 09:12:10 +08:00
jun.zhang 219712788a ENH: silhouette effect
jira: no-jira

Change-Id: I1aca7242e87f15582384e4250b6329cdd0a48a69
(cherry picked from commit d141f81dc52eca0ac04aa17e26edf0005e82a6f9)
2025-03-24 09:12:09 +08:00
zhou.xu 1d5b02989b ENH:Optimize the display effect of overhang areas
jira: STUDIO-10685
Change-Id: I0354d66ca7ba3efbe507b044c3c8a9125020f013
2025-03-24 09:12:09 +08:00
zhou.xu 998d0322d1 ENH:overhang use chess to render
jira: none
Change-Id: I6acf6046a57c6378de2dbe0f0d831d50cef595e5
(cherry picked from commit 3fc313b3dd9d39340907fbfe7dd48f710169e3ca)
2025-03-24 09:10:29 +08:00
jun.zhang 9f060f9135 NEW: cherry-pick rendering-stuff to github branch
jira: no-jira

Change-Id: If615d572b2021e707cc9ff037fefeabf46dacfa4
2025-03-24 09:04:57 +08:00
jun.zhang 999bae0f53 FIX: black edge issue
jira: STUDIO-9954

Change-Id: Ib503039383763074947992606ac9a8f7b8409ec8
(cherry picked from commit 3870dbb980a36535f22ec8a0849546c0b1ee7b4c)
2025-03-23 20:31:10 +08:00
jun.zhang 00e3844eb8 FIX: remove float precision control
as glsl 110 does not supoort it

jira: STUDIO-9025

Change-Id: I99ab9c3cbffe3f2fda29cda86f9b461ae0800b98
(cherry picked from commit 44f2e30f707cd20390b510160d7b5605bdc1383b)
2025-03-23 20:26:19 +08:00
jun.zhang 3edf32a528 FIX: volume acne caused by float precision
jira: STUDIO-9025

Change-Id: Iab4ca5f82bfab59807a2003c8426ace8987ccc9e
(cherry picked from commit d522379b79721602a7ba7b47eb6073c3a02ef98c)
2025-03-23 20:26:19 +08:00
jun.zhang b9056ee3ff FIX: imgui crash
jira: STUDIO-9633

Change-Id: I9e6a11d8294cd82df4dc9785da90b286c6daed3a
2025-03-23 20:18:26 +08:00
jun.zhang fd2524a09e NEW: add silhouette effect
jira: STUDIO-8928

Change-Id: Ia64a96e7e13e65d8be85fddfedcfdc4e5cff4ed5
(cherry picked from commit f090726830ea0490994b62c93c93e18ead731681)
2025-03-22 21:54:20 +08:00
zhou.xu 302c461842 FIX:delete is_out_print_limit == false
jira: none
Change-Id: I54c3d3a673595dd349d6ef17b9bbb24ae2115f3e
2025-03-22 21:11:22 +08:00
zhou.xu 14103e6d6e NEW:add "extruder printable height render"
jira: none
Change-Id: I962fa4c72c7097899f4429cb8d71fe948910cd41
2025-03-22 21:10:13 +08:00
lane.wei 62b1d00d1f ENH: 3dbed: support rendering extruder area with different color
JIRA: STUDIO-7494
Change-Id: I717999e8b7ab1d7d350299b412a3a270c6ba7a9e
2025-03-22 20:53:53 +08:00
zhou.xu 960af84f8f FIX:change condition in goruaud.vs
jira: none
Change-Id: I6d1e80320a2d234f875385f8f747f22d42d1112d
2025-03-22 20:21:52 +08:00
zhou.xu bb53c4b517 NEW:Use instance rendering by opengl for plate
jira: none
Change-Id: I3d5888480ad033953a597a6f74b0b9c8ac47795e
(cherry picked from commit 7fa3cb3d6224bab6ef6d8ad75446ed1b460afd4e)
2024-10-15 15:50:26 +08:00
zhou.xu 8c852bc925 ENH:update render code in PartPlate
jira: STUDIO-5985
most of code from OrcaSlicer,thanks for OrcaSlicer and enricoturri1966

commit 28d0147d0988917a8b9d85441b8836453e0f222e
Author: enricoturri1966 <enricoturri@seznam.cz>
Date:   Fri Oct 20 15:41:26 2023 +0800

    Introduction of classes ColorRGB and ColorRGBA to unify color data definition and manipulation

Change-Id: I94ff38d9a03b4b91183b150617d6407a8ffa279e
2024-10-15 15:50:26 +08:00
zhou.xu 47c442a61e NEW:add no light thumbnail
Jira: none
Change-Id: I3c0510dd4d7e444f1a6326b7a59a0ebd5e7aa410
(cherry picked from commit a3d8c36783716e24f39803a8c146a43b1014c092)
2024-06-11 18:17:08 +08:00
zhou.xu 17e9bb48d8 FIX:Replace v_barycentric by gl_Color to slove factory computer issues
modify Shortcut keys to toggle Wireframe
Jira: STUDIO-4772

Change-Id: Ica5c1c6c0a41ed247c85173b3b0437632f596e7d
(cherry picked from commit 79a1805e8fde6e0b735a529ab7c7c7fe9015865b)
2023-11-09 10:09:10 +08:00
zhou.xu 26b8ca6599 NEW:add flat shader for cut tool
Jira:STUDIO-4227
thanks for PrusaSlcer and enricoturri1966

commit 76d1d4949bbd0964717f8112aae992a1267c5eb4
Author: enricoturri1966 <enricoturri@seznam.cz>
Date:   Mon Mar 21 13:10:47 2022 +0100
    Tech ENABLE_GL_SHADERS_ATTRIBUTES - Added shaders for glsl version 140
...

Change-Id: I4db00805830f07a5eaa95cfc7b8254c61b86f0c8
2023-11-01 09:33:21 +08:00
zhou.xu 5658d32633 FIX: enable wireframe in paint tool
Jira: STUDIO-3996

The buffer data submitted when the wireframe function is closed is half less than the buffer data submitted when the wireframe function is open

Change-Id: I92542190a5a45f562ec89d7c41fef3cdf1c26418
(cherry picked from commit b95650954f8bdb0cf81a2063efba4b2fced13a2f)
2023-11-01 09:33:21 +08:00
zhou.xu eb7f53d6c1 FIX: modify enforcer and blocker color
Jira: STUDIO-4304
Change-Id: I1d58d1b61929a831fc87f53ef364eb0d1af91c17
(cherry picked from commit 40022ec91a15f2663ce51948118fe2a5b716ecdf)
2023-11-01 09:33:21 +08:00
zhou.xu bcd8c90b4f FIX:add new light for text shape
Jira: STUDIO-2623
Change-Id: I3a189154455040e8c2cb41ff8d8ac065661406ad
(cherry picked from commit 5854839c8f552b136cca6b3ff75605fa1e696fd0)
2023-11-01 09:33:21 +08:00
zhou.xu def87a59c0 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
zhou.xu 507a8a6d36 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
lane.wei 90760e0d07 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
zhimin.zeng b746877d70 FIX: modify the shader load error for mac
Change-Id: I3e2b282b145b4d87e09c22d4fec1b88537212d60
2023-04-17 15:39:02 +08:00
zhimin.zeng cd4cddfca4 ENH: Cut optimization, support for custom connectors
Change-Id: I65163314374fb74f0b16df47dacae82caa6fab0d
(cherry picked from commit 7bacc2c2a89be471f6fee51dd07a42222a28b55a)
2023-04-17 15:39:02 +08:00
lane.wei a9a228d071 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
lane.wei 79b5c94f4f ENH: enable wireframe
This reverts commit ed6e149381240fd83b61da70891127d400f30a39.

Change-Id: I010871fcf22322214c627fe907539c0916fa6ff5
2022-12-15 04:33:48 -05:00
lane.wei 227e1f4dc3 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
lane.wei b4d66394e7 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
lane.wei 5a2b0e845e 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
lane.wei 1555904bef Add the full source of BambuStudio
using version 1.0.10
2022-07-15 23:42:08 +08:00