Render the cases through KiCad #15

Merged
rob merged 1 commit from docs/kicad-case-renders into main 2026-11-16 15:04:53 +00:00
Collaborator

The case renders now come from kicad-cli's ray tracer, with soft lighting and a floor shadow, and match the board renders. The lid and base are both dark grey.

scripts/generate_prints.py writes a .wrl model of each assembled case. The new scripts/generate_renders.py attaches it to a temporary copy of the board and renders that. It also renders the bare boards, so it replaces both render_boards.py and render_cases.py. Nothing needs FreeCAD's window any more.

The engraved lettering renders white. That is how KiCad draws the shallow engraving, not how a print looks.

Tested: both scripts were run for all three boards and the three case renders were checked by eye.

Merging this cuts a release, since it changes generate_prints.py. The released files do not change.

The case renders now come from `kicad-cli`'s ray tracer, with soft lighting and a floor shadow, and match the board renders. The lid and base are both dark grey. `scripts/generate_prints.py` writes a `.wrl` model of each assembled case. The new `scripts/generate_renders.py` attaches it to a temporary copy of the board and renders that. It also renders the bare boards, so it replaces both `render_boards.py` and `render_cases.py`. Nothing needs FreeCAD's window any more. The engraved lettering renders white. That is how KiCad draws the shallow engraving, not how a print looks. Tested: both scripts were run for all three boards and the three case renders were checked by eye. Merging this cuts a release, since it changes `generate_prints.py`. The released files do not change.
FreeCAD's view is a flat preview and needs its window open. KiCad ray-traces from the command line, so the case is attached to a temporary copy of the board as a 3D model and rendered with it.
rob merged commit 5df9626a43 into main 2026-11-16 15:04:53 +00:00
rob deleted branch docs/kicad-case-renders 2026-11-16 15:04:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
CamperCan/hardware!15
No description provided.