pcbjam/tests/kicad/utils
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Istvan Matejcsok 68c711e633 feat: ✨ enable the 3D viewer in the WASM port (WIP)
Builds KiCad's 3D viewer for the browser (opt in with BUILD_3D_VIEWER=ON) and
wires up the legacy-GL emulation it needs.

- build-kicad-target.sh / docker/build.sh: BUILD_3D_VIEWER →
  -DKICAD_BUILD_3D_VIEWER_WASM=ON + -sLEGACY_GL_EMULATION + the GL js-library.
- wasm/shims/gl_immediate_shim.js: display-list emulation (record/replay board
  layers), fixed-function + GLU stubs, throw-guards for unsupported pnames, and
  per-context GLImmediate init for the viewer's SECOND WebGL context.
- tests/kicad/3d-viewer.spec.ts + utils/pcbnew-ready.ts: open View → 3D Viewer.
- bumps the kicad submodule (EMSCRIPTEN-guarded GL changes).

WIP: the viewer window + UI render and geometry draws (glError=0x0), but the
board is not yet visibly rendered — GLImmediate's FFP shader program isn't
linked on the viewer's 2nd WebGL context. Full status + next steps in
features/feat/add-3d-view/notes.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 09:13:41 +02:00
..
board-ready.ts tests: load-pcb e2e for microwave + pic_programmer demos 2026-05-29 09:51:18 +02:00
fs-inject.ts tests: load-pcb e2e for microwave + pic_programmer demos 2026-05-29 09:51:18 +02:00
pcbnew-ready.ts feat: ✨ enable the 3D viewer in the WASM port (WIP) 2026-06-19 09:13:41 +02:00
screenshot-compare.ts fix: 🐛 01-revert-dead-code 2026-06-17 08:16:09 +02:00