1444 Commits

Author SHA1 Message Date
Joshua Wise
9f86a4cd7a wxMediaCtrl2: provide a better error message if the system does not have h.264 codecs installed
Change-Id: I0c6ee1c869a5d37e70e63d74b6127386eea4e683
2023-01-19 10:16:07 +08:00
Joshua Wise
e352234a0d gstbambusrc: improve compatibility with older GStreamer versions
Change-Id: Ifa6f8928b83c30113ac5a6f74ab039934727ad8f
2023-01-19 10:16:07 +08:00
Joshua Wise
41c861b12c Add support for Bambu Lab X1 series live video stream on Linux.
wxWidgets on Linux uses GStreamer as its back-end for wxMediaCtrl, which
doesn't have a bambu: URI handler.  On Windows, this is handled by a Windows
Media subsystem plugin, and on Mac, this is handled with a BambuPlayer
class.  Luckily, the libBambuSource.so binary that is distributed with the
network plugin package already contains support for receiving h.264 data
from the network, and the API is the same as is used by the tiny
bambusource.exe binary on Windows; we glue this into a GStreamer source
plugin that registers a URI handler for bambu:.

To make this work, we make a few additional changes elsewhere.  GStreamer
seems to have trouble rendering an Xv overlay onto a 32bpp X visual, but
Bambu Slicer seems to request a 32bpp visual for some background
transparency in the Notebook; it doesn't seem to use it in an interesting
way on Linux, though, so we remove that request for transparency to allow
Bambu Studio to render to a 24bpp visual.  The media controller
infrastructure also makes a few assumptions about when sizing information
can be queried from a wxMediaCtrl backend that do not hold true on Linux; we
either fix those assumptions, or fake them out, as needed.  We also make a
few changes needed to successfully compile C.

This has only been tested with the GStreamer backend for wxWidgets --
notably, not the GStreamer-play backend (these are, astonishingly, two
different things!).  If you find that this seems not to work, consider
*un*installing the libgstreamer-plugins-bad1.0-dev package and then
rebuilding wxWidgets.
(cherry picked from commit ebbf494723042ea71bfced626b3ddbd3c365cd3f)

Change-Id: I3c27a1de3172103f90f02f6be92010d3432b5d5c
2023-01-19 10:16:07 +08:00
Joshua Wise
3f1a6c877a deps/wxWidgets: avoid patching too many times
Each time the dependency build was run, previously, the build system
attempted to patch wxWidgets after checking it out from Git.  The problem,
of course, is that if this happened once, it would not succeed a second
time, so the only workaround was to blow away the wxWidgets source tree.

The real solution to this is to create a BBL fork of wxWidgets (or to
upstream the changes...).  But for now, we add a file to determine whether
the patch has taken place already, and if it's there, we don't apply the
patch again.  This will mean that all kinds of exciting things happen if you
change Git revisions of wxWidgets or the patch changes (in those cases,
you'll have to blow away the build), but at least this makes it possible to
build twice in the same repository in the best case.

To update an existing checkout, run:

  $ touch deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets/WXWIDGETS_PATCHED
(cherry picked from commit 7df4d22e378275c28afb52ccb79b9f0f7dc0f5fa)

Change-Id: I645de1f76c3814735b573d81f3a0505359234a41
2023-01-19 10:16:07 +08:00
Arthur
87217fab3a FIX: raft density in tree support was wrong
Jira: STUDIO-2005
Change-Id: Ic2e9a3824ea943f101737270382c63cfaea656a1
(cherry picked from commit e10e17863a40638329ff43c8fa12b88c79e7b76b)
2023-01-19 10:16:07 +08:00
Joshua Wise
bbd2f921cc ENH: Linux: update GLEW to 2.2.0, and enable EGL support in GLEW to match wxWidgets
On Linux, wxGTK by default attempts to use EGL if it is available on the
system, rather than GLX.  Unfortunately, the ancient version of GLEW that we
packaged in did not support EGL, and even if it did, the configuration was
not set up to enable EGL.  To solve this, we:

  * upgrade GLEW to version 2.2.0, from upstream GitHub

  * modify the Bambu build process to enforce that we use GLEW from the
    built dependency

  * remove the "extra" even older GLEW that was packaged

  * modify GLEW's CMake configuration to enable EGL support when it is
    available on the system (using the same test as wxWidgets uses to decide
    whether to enable EGL support); if EGL isn't available at compile time,
    both GLEW and wxWidgets will fall back on GLX

Note that you probably will have to blow away your CMakeCache for this to
work correctly -- otherwise, you may end up with the system GLEW, if you
have one installed (which is probably not what you want -- on Ubuntu, the
system GLEW is GLX, not EGL).

Change-Id: I06de009a3fac9e5cf6a3ef16dde33df1516102e9
2023-01-19 10:16:07 +08:00
lane.wei
570c23c0a4 ENH: version: change to 1.4.2
Change-Id: Ia1c6e2690b89f3b876c8c43556a7980be5923438
2023-01-19 10:16:07 +08:00
Stone Li
54d1c991e7 FIX: fix check k / n logic
Change-Id: I0f9fe5c95523d79b4c6435555d10f2d641639b13
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-01-19 10:16:07 +08:00
salt.wei
3cfb86b2b6 ENH: add some new filament
Bambu PLA tough, Bambu PLA Marble, Bambu PLA Sparkle

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ib882485d9bdf6a29b8f5c8681e2d7bda8c7e1da0
2023-01-19 10:16:07 +08:00
tao wang
f7140f055b FIX:Fixed some UI layout issues for monitor page
Change-Id: Ifbb7dd7271195bed17dcd83a398bb7a65b13dca2
2023-01-19 10:16:07 +08:00
chunmao.guo
5a48e21706 ENH: request lan ip if liveview failed with lan tunnel (2)
Change-Id: Ie40c31b8c3600dc30228d931013cc0e12a6b1a78
2023-01-19 10:16:07 +08:00
chunmao.guo
58bda8446e FIX: [STUDIO-1969] disable mouse wheel on SpinCtrl
Change-Id: I9d568c5fe48defe88c94a476a295143c7089d960
(cherry picked from commit d3ddc246d27ab5f435dd15433f18d5dbc64ed667)
2023-01-19 10:16:06 +08:00
Stone Li
1d9f518963 ENH: update po files for BambuStudio
Change-Id: Ie6af81c6bc8d2f977ef2a867d2df5a9d588d12d6
2023-01-19 10:16:06 +08:00
chunmao.guo
b3a26913d0 ENH: request lan ip if liveview failed with lan tunnel
Change-Id: Ib987ce684873869e5abc71da9bad8600479c7146
2023-01-19 10:16:06 +08:00
Stone Li
fb8829c894 ENH: refine entries for extrusion calibration
Change-Id: Idcefca17cb026887ea5bd32387ab6d269f8f9d58
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-01-19 10:16:06 +08:00
Stone Li
d1e1f8b05e ENH: optimize the copy description format
remove "\n" from _L macro

Change-Id: If1beda4a77f1c2b42945657b7386e155b8bc7a20
Signed-off-by: Stone Li <stone.li@bambulab.com>
(cherry picked from commit e7ea7705005379a7cc563254a8eaf7f48603e4a8)
2023-01-19 10:16:06 +08:00
Stone Li
b8d524e4f1 NEW: add extrusion calibration
1. display factor of extrusion calibration
2. add progress to calibration extrusion
3. support ext spool

Change-Id: Ic124a0097f16e6287c09f5f133eea84eeefb4000
Signed-off-by: Stone Li <stone.li@bambulab.com>
2023-01-19 10:16:06 +08:00
Stone Li
a51423d3e3 ENH: refine max/min/close button position in BBLTopbar
Change-Id: Idb86daf195df856e24c32363e763e38d77f39744
Signed-off-by: Stone Li <stone.li@bambulab.com>
(cherry picked from commit 986c3b162c7f5934c9f88ba281b6e47787b0f9fb)
2023-01-19 10:16:06 +08:00
salt.wei
71b421d407 ENH: for issue that initial layer temp doesn't work
Start gcode of P1P is wrong.

This is for github issue #1044

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Id078b7c9020ef773373c3486f74dc51385b9dcc0
2023-01-19 10:16:06 +08:00
tao wang
5297db0d99 FIX:dynamically update layout when options are changed
Change-Id: I57633604428e42f4a67dfcfd80336ab33767e099
(cherry picked from commit 3c9ca0d59da9aa1631470019cd22b5b736733c14)
2023-01-19 10:16:06 +08:00
tao wang
6c645d04b9 ENH:enter access code with ip address when lan mode connect
Change-Id: I987f953bad20d8ddea299226eb6f49a157fc7be4
(cherry picked from commit 118380ebd55f6b343b778da0423820a72811b156)
2023-01-19 10:16:06 +08:00
tao wang
809b38ef67 ENH:change to generic ip address enter dialog
Change-Id: I4d3b4f091e435d600216ef8ec44d04ca7c90a26d
(cherry picked from commit 5796a72a567ee1a2b3dee7508832d9e0d6348820)
2023-01-19 10:16:06 +08:00
tao wang
341dfb9585 ENH:allows the user to enter a printed IP address
Change-Id: I9d2617d0dd42f53e93d61e98bcf3cc97979a93f6
(cherry picked from commit 24ab56f8568e9637634e97a0632309cfd2762749)
2023-01-19 10:16:06 +08:00
gerrit
2aa6a8effd ci: update network module based on commit 8836418
Change-Id: I765e67382a07ef14171ec14e51b47b036683a7c5
2023-01-19 10:16:06 +08:00
tao.jin
59caced614 FIX: refine shortcuts on collapse/expand sidebar
Change-Id: I2332617e69ee73edeaabb5b6fd7a225ac073b76e
(cherry picked from commit 1bb6c5c55bc780691c87e0e03a15d4387c358a80)
2023-01-19 10:16:06 +08:00
chunmao.guo
9a92a39c19 FIX: [STUDIO-1908] add printer cert and version compatible
Change-Id: I6aef8c1169952a0b541516ab3a0d7de2d3e213b3
2023-01-19 10:16:06 +08:00
tao wang
ea5bb229d5 ENH:add total layer/current layer UI
Change-Id: Ib0ceae161280258d9a9fbf6fb46d34810f24c57a
Signed-off-by: Stone Li <stone.li@bambulab.com>
(cherry picked from commit 1f5b67da2973ffa1d5a1de8d7677079883928cd6)
2023-01-19 10:16:06 +08:00
tao wang
e6bb9835ca ENH:add ams humidity tips and update new icon
Change-Id: I8f504fa911ef7a84ca8929af3c5d7c53d289761e
(cherry picked from commit 87a44ef7d5fdd549e62e98c71c824a9ad849c243)
2023-01-19 10:16:06 +08:00
tao wang
0249b88ee5 ENH:wxStaticText set the default foreground colour
Change-Id: Ifb03554848bc869f8605fb10945e7681147204d5
(cherry picked from commit 4599444719d60c92e432d595de7cea2607572b1b)
2023-01-19 10:16:05 +08:00
chunmao.guo
d064a261aa FIX: label color
Change-Id: I1de550178601fab8844fac9aabf9728233a965bb
(cherry picked from commit 82ebfa23a9ad870cf5b39ab9e869b0ce784b421b)
2023-01-19 10:16:05 +08:00
chunmao.guo
59fd5265da ENH: detect printer uses ssl for local connection
Change-Id: I6131bf5ed1f6d44f0bd761ad6bc3a492ba4945b7
(cherry picked from commit c68d48ecf290e5abd37a97654c5b1f7779f061e2)
2023-01-19 10:16:05 +08:00
tao wang
65ec29b2ba FIX:fixed object table Brim does not take effect after setting
Change-Id: Ic9dbe6b4c016a69d0e26b6c9a232deda7f526d12
(cherry picked from commit af80fe51a82d7c29add886748fbc5843c621a43e)
2023-01-19 10:16:05 +08:00
Arthur
2d5cd7200b ENH: only allow setting height when cut plane is horizontal
Jira: STUDIO-1819
Change-Id: I04d258949cbf98a59f7313d714430f361bb2c4a9
(cherry picked from commit 2ffa8430b819cfffe20f4c7734125a3aabd33202)
2023-01-19 10:16:05 +08:00
Arthur
8adc87c72c ENH: add gcode command for void printing detection
1. add gcode command for void printing detection
2. fix the issue that the toolhead is not at excess chute position when
  smooth timelapse ends, by adding 2s pause after M991 command.
  Jira: STUDIO-1996

Change-Id: I40cf16116e742744cea9bd90969e556a9ea2b2f1
2023-01-19 10:16:05 +08:00
salt.wei
2c3038af5c ENH: add raft contact distance
For github issue #975

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I3b2c4f105374fccf4fb0cdbfba5bb6181da6dd93
(cherry picked from commit c7225c6c961ea2d8d5217c2b8e610cc661a2d227)
2023-01-19 10:16:05 +08:00
liz.li
74263a6df8 ENH:optimize method of gcodeviewer marker get current move
Change-Id: I935d8da52212156b4158d727b49d8b0e51105fa3
(cherry picked from commit 4826570649608691184c05260edf4c074dccb780)
2023-01-19 10:16:05 +08:00
salt.wei
6eee5084ad ENH: disable clipper2 in perimeter generator
Clipper2 doesn't solve wrong line issue for some
specific model and sometimes has performance issue.

Return to clipper1.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I906f8b81083ac8c03ecc9fe3e8d2ade20be95c04
2023-01-19 10:16:05 +08:00
salt.wei
062236d300 ENH: remove bed temperature check
This is useless now. Remove.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Id9a5e7822b19a74bf35670d5913214467b5a90ac
(cherry picked from commit 52580e16098ffb5386501d58d607c188861c96f2)
2023-01-19 10:16:05 +08:00
salt.wei
36ef437d19 ENH: sync some change in gcode viewer
Improve the loading speed of gcode preview

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I9cf4b32f10753e1bc1d9b109557b995d5f3fd549
(cherry picked from commit f854afa94982bc02a4f7ce292c2dbedb87cade93)
2023-01-19 10:16:05 +08:00
salt.wei
48fb8e4b29 ENH: add layer progress into gcode file
As title

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I7b083e15e0f9030d7822494c4d6fc9cc72335ec2
(cherry picked from commit f86fc7fd4a16d3e0f5bf1bd3ee817fb0bdd91e97)
2023-01-19 10:16:05 +08:00
lane.wei
5df2335fd6 FIX: fix the gap_fill not take effect
when using new render logic
the area is calculated with error

Change-Id: Ia0ac1cb6c46c0e312b704d27c8ccc0ca6ac5f8ec
2023-01-19 10:16:05 +08:00
tao wang
5ce9ba73ed ENH:optimize the popup position of the fan control dialog
Change-Id: I98212c2860dfec955072c82710c8dee31866fd1d
(cherry picked from commit 8cde04d61f16068a59861bbdd989eeba15c5ab18)
2023-01-19 10:16:05 +08:00
lane.wei
65acb3117b ENH: copyright: change the copyrights to lunkuo
Change-Id: Ie2804275a422a1314a5f948fc35cfc5bb7a31e29
(cherry picked from commit 60554e76a7f7daa7af1577e2cd895ddb1ad61f90)
2023-01-19 10:16:05 +08:00
salt.wei
d36bebdb76 ENH: disable slow down for overhang when fuzzy skin is used
When fuzzy skin is used, it's unmeaning to calculate
the overhang degree of extrusion line, because there
are a lot of random fuzzy point which change the line.

Disable in this case. This can also speed slicing up
when fuzzy skin is used.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ia65e20e24fd7a5cd224635fd69a272387135ba12
(cherry picked from commit 93ab1b521ed238a138412f1efe4987cd56ac6858)
2023-01-19 10:16:05 +08:00
lane.wei
b13553fd74 FIX: fix the crash issue when right-click on object list in preview
Change-Id: I31fc987b762fe2718b4ca1659d14864e44a86225
2023-01-19 10:16:05 +08:00
gerrit
f5ccd42cce ci: update build version to 01.04.01.52
Change-Id: I2df45013c155c03e6d64253b7bdf39afe1344e08
v01.04.01.52
2022-12-26 12:50:45 +08:00
Arthur
7c7e113f61 ENH: improve generate_contact_points tree support
1. Previously we used integer Point type to detect corner, which was wrong.
2. Delete duplicate points more aggressively to prevent too many points
   around curved overhangs.
3. Do not generate roof_1st_layers if there is no interface at all.

Change-Id: I1167ac04c533ec8f29dc9e656ba7072d1b54197f
(cherry picked from commit 1329347c4bf9c8207cf21e591a6ad113bb565673)
2022-12-26 12:50:45 +08:00
lane.wei
5998ab42cb FIX: fix the seq_print circle size not correct
Change-Id: Ie0674c2653e1db691447c150d9c669967960650e
2022-12-26 12:50:45 +08:00
tao wang
92091ebb50 ENH:UpdateVersionDialog compatible web mode
Change-Id: I4a9294fc89005995be13cc3503d883324cb01ebf
2022-12-26 12:50:44 +08:00
gerrit
c4aaa17b64 ci: update build version to 01.04.01.51
Change-Id: Ia2c83ec777f803667f1f5398426ba19554e6dc7c
2022-12-26 12:50:44 +08:00