jean-pierre charras
519abec88b
3D Viewer: fix incorrect render of plated copper of texts.
...
Previously, with option "Use bare copper color for unplated copper", the
plated area of texts were drawn using their bounding box.
(cherry picked from commit becaba531b08b8dd7f9d24b36bb9039ffdd34b96
and from commit ca5f867957f7252f1b7043446a5d3183548ca594)
2025-01-20 17:56:12 +01:00
Alex Shvartzkop
26ef463ffa
Raytracing: use all lights in preview mode.
...
It's not significantly slower, but looks much better.
Related: https://gitlab.com/kicad/code/kicad/-/issues/17354
(cherry picked from commit 0118d7fb3867cdd65c6f60312f92cbd2009254d8)
2025-01-20 06:41:21 +03:00
Alex Shvartzkop
ad4667bb96
Raytracing: convert from linear RGB to sRGB in preview mode.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17354
2025-01-20 06:40:33 +03:00
Alex Shvartzkop
499105c1c3
Raytracing: fix orthogonal camera frustum normal calculations.
...
Normal values were very close to 0 in orthogonal camera projection,
causing issues on the arm64/macOS platform.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18207
(cherry picked from commit 87c42db898c8bb0cb26d477bd2514b719cf43b3e)
2025-01-20 05:59:38 +03:00
Seth Hillbrand
fc65a157f5
Use proper indexing for board poly
...
In rare cases the fracture call will reduce the outline count, leading
to crashes when we dereference them.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19664
(cherry picked from commit bc12591449d491a2ad2105c8549082e4087d08e3)
2025-01-16 20:27:43 -08:00
Jeff Young
8417ca7836
Use render cache (when available) for 3D viewer.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18672
2024-12-24 21:00:45 +00:00
Jeff Young
bbd2d75a62
Fix double-click in footprint chooser.
...
Also fixes the assert when closing the chooser after the 3D
view was shown.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18107
(cherry picked from commit a3f69046ba78ae0ffe68e1a69e01621b5bf4717e)
2024-12-20 13:33:28 +00:00
Jeff Young
3c206df680
Reduce dependency on dynamic_cast.
...
(Especially where it is no-worky on MacOS.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17245
(cherry picked from commit 94f995c49eb1818846d01fc0a723d0aacd5c5e58)
2024-12-06 08:04:50 -05:00
Kamil Galik
64134cee92
ADDED: 3D Mouse support in places
...
Gerber Viewer, Drawing Sheet Editor and Footprint Properties 3D Model tab
Fixed https://gitlab.com/kicad/code/kicad/-/issues/14002
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13306
2024-11-20 15:56:19 +00:00
Seth Hillbrand
b10ab478bd
Fix 3D viewer omission of STEP models with relative path assignment
...
The project was not assigned to the board in the 3D viewer frame,
resulting in a failure to locate the relative path for STEP models.
To fix this, the current project should be assigned to the board in
the 3D viewer frame.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16242
(cherry picked from commit d2e51fdb5f0b10d169a45f93c61ba9ed8e75452a)
c824484c Fix 3D viewer omission of STEP models with relative path assignment
Co-authored-by: Dhineshkumar S <dhineshkumar@cgvakindia.com>
2024-11-17 07:21:14 +00:00
jean-pierre charras
06a91637a7
3D viewer: Ensure the 3D display view is not modified after left clicking.
...
After opening a context menu and left clicking on the 3D canvas, the view
was modified because a drag event was generated, probably a wxWidgets bug.
From master branch.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17422
2024-11-11 17:11:07 +01:00
jean-pierre charras
96acf00e81
fix incorrect code committed in commit 1dcd65ec
2024-09-17 15:27:31 +02:00
jean-pierre charras
1dcd65ec71
3D viewer, minor fix: vias not fully displayed when the top layer was not shown.
...
From master branch.
2024-09-14 17:04:22 +02:00
John Beard
9779ee0fd3
Fix Boost 1.86 SHA1 one last time
...
There's a change in Boost 1.86 that breaks the SHA1 hashing
in 3D cache.
The master KiCad branch ditches SHA1 entirely here, but it's quite
an invasive change to backport. So apply a sticking plaster for
the remainder of v8.
Relates-To: https://gitlab.archlinux.org/archlinux/packaging/packages/kicad/-/issues/1
2024-09-10 12:10:33 +01:00
jean-pierre charras
87139ce571
3E viewer: fix incorrect custom pad shape in some cases.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18495
2024-08-06 13:50:25 +02:00
Jeff Young
c6215b08ed
Use wxWidgets to track DPI.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17981
(cherry picked from commit 931de120721bf0a7b76042c031f6a86cd1935464)
2024-06-03 18:47:43 +01:00
Jeff Young
995c1a179e
Honour shift-key for spin buttons in 3D preview.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17541
(cherry picked from commit f7c7791b6c96fb1bbcec46ca1af1d3cc3421c2e8)
2024-06-03 18:29:37 +01:00
Alex Shvartzkop
c7dd993439
Add OpenGL info to About.
...
(cherry picked from commit 5e14ae96988a64a0ade6d1561973e91694bfadc7)
2024-05-05 21:58:10 +03:00
Jeff Young
edace908fb
Make sure color settings are saved when modified.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17864
(cherry picked from commit 3b3de58e5e18c7cda608d2ef4215a080735b6f6c)
2024-04-28 21:54:16 +01:00
Jon Evans
55b7852a65
Disable lazy-loading of 3D models on macOS
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17198
(cherry picked from commit b36312ff2424c170bbf21b660876ce090b22eb0e)
2024-04-07 12:21:11 +00:00
jean-pierre charras
65ace8d03d
3D viewer: Allow setting colors not in board stackup, when use board stackup option is set.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17632
2024-04-01 09:38:24 +02:00
jean-pierre charras
663e857df6
3D viewer: fix some graphic issues:
...
Avoid issue when a copper layers thickness is 0 (min value is now 1 micrometer)
Fix incorrect rendering of plated graphic items and vias (vertical walls not drawn)
From master branch
2024-03-29 07:39:49 +01:00
Alex Shvartzkop
46faa0f678
Fix assert in BOARD_ADAPTER::createLayers.
...
(cherry picked from commit f9ad0a434d5ea881c207573c7cb99acd01df2499)
2024-03-15 01:17:49 +03:00
Jeff Young
1b3cf70eef
Fix copy/pasta in GetLayerColors().
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17374
(cherry picked from commit c8d897ed0f029c10a2e1cf9b7ed6a504c5bc6849)
2024-03-11 17:48:32 +00:00
Alex Shvartzkop
2ad3ccc4d8
Use 64-bit type to represent microseconds.
...
int and long are 32-bit on Windows, causing overflows.
(cherry picked from commit 85b19784086faa7676d030f03bfc4801705c180f)
2024-03-03 21:47:23 +03:00
Alex Shvartzkop
3bab589405
Do not reload window sizes when changing 3D viewer settings.
...
(cherry picked from commit 337489c77d0ec6c2fde8bc06f44871ac12ffe743)
2024-03-03 21:47:23 +03:00
Jeff Young
53d8e2c8c3
Separate "use board stackup colors" into separate checkbox.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17085
(cherry picked from commit 8dddd9cc2c953ea464585c4ee21139e6baa692fa)
2024-03-01 23:45:37 +00:00
Alex Shvartzkop
67208df602
Improve 3D appearance manager preset compare.
...
(cherry picked from commit 656821b2822cfa8ad097b50534cc3bfdb487c6dd)
2024-02-29 19:13:12 +00:00
Jeff Young
f4a085575a
Show friendly name in toolbar button tooltips.
...
(Don't require the same text to be put into the tooltip.
It's error-prone and also disallows us from having a separate
tooltip for toolbar buttons.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17009
2024-02-22 23:37:13 +00:00
jean-pierre charras
0afac71b27
3D viewer: fix the case of circles having a thickness > radius/2
...
Fixes #17035
https://gitlab.com/kicad/code/kicad/-/issues/17035
2024-02-20 09:20:33 +01:00
jean-pierre charras
9622918c31
3D view export to PNG/JPEG: ensure highlighted item under cursor is exoperted
...
not highlighted.
Fixes #14289
https://gitlab.com/kicad/code/kicad/-/issues/14289
2024-02-19 16:28:38 +01:00
Jon Evans
7b0bb59b37
Remove hard-coded versioned env vars in most places
2024-02-15 15:31:08 +00:00
jean-pierre charras
4c61a79e47
3D viewer: show "not covered by solder mask" graphic items with the right color.
...
Previously, only pads and tracks were using the gold color when not covered by
the solder mask layer.
Fixes #16892
https://gitlab.com/kicad/code/kicad/-/issues/16892
2024-02-09 11:35:38 +01:00
Alex Shvartzkop
9b11dfd4d4
Fix 3D viewer getting stuck or rendering twice when dragging, at least on GTK.
2024-02-08 15:19:54 +03:00
Jeff Young
fef404352d
Remove stale TODOs.
2024-02-05 15:49:57 +00:00
Wayne Stambaugh
92c2ddf77a
Do not parent dialogs to non top level windows in panels or widgets.
2024-02-03 10:40:28 -05:00
Marek Roszko
93b9fb9124
Fix crash switching footprints with 3dviewer OPENGL
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16802
2024-01-28 16:04:24 -05:00
Jan Wichmann
693248f60f
pcbnew: 3d viewer: disable show DNP footprints by default
2024-01-18 22:33:02 +00:00
Jeff Young
fceace93da
Remove dead code. (Coverity)
2024-01-04 16:00:43 +00:00
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2023-12-27 21:10:01 -05:00
Wayne Stambaugh
81cec494f2
Fix string grammar in 3D viewer.
2023-12-26 08:33:33 -05:00
jean-pierre charras
427de4cda6
BOARD::GetBoardPolygonOutlines(): add option to add NPTH as board holes.
...
Used in 3D viewer to truncate plated holes intersecting NPTH.
Fixes #16325
https://gitlab.com/kicad/code/kicad/-/issues/16325
2023-12-13 08:31:29 +01:00
jean-pierre charras
35ee0b12d1
3d_viewer_id.h: minor fix.
2023-11-28 16:59:01 +01:00
Jeff Young
df83e24eb7
Cleanup.
...
It's been a long time since line style was specific to plotting.
2023-11-25 13:12:45 +00:00
Alex Shvartzkop
4defa6b58f
Reduce editing timeout in 3D viewer raytracing.
2023-11-20 21:57:43 +03:00
Jeff Young
2ec3cd91fa
Nullptr safety.
2023-11-20 13:47:24 +00:00
Jeff Young
af9fc5be2f
Hack to keep 3D Viewer's "home" zoom from being too small.
2023-11-19 14:07:50 +00:00
Jeff Young
f9530d0b3f
Remove "Reset View", which does the same as "Home View".
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16115
2023-11-19 14:07:50 +00:00
Jon Evans
18833ad271
Silence a warning on macOS
2023-11-16 12:11:42 -05:00
jean-pierre charras
abcbba5635
PCB_TEXTBOX, create 3D shape: fix incorrect transform of the box, round 2:
...
when the box is a polygon (rotated rect by a non cardinal angle) the polygon
is not filled, so the shape is just a set of thick segments.
So we cannot use PCB_TEXTBOX::TransformShapeToPolygon to create the 3D view
Fixes #16072
https://gitlab.com/kicad/code/kicad/-/issues/16072
2023-11-11 18:11:50 +01:00