@christiansamuelbakti on Simple 3D Devboard designer
I built a 3D DevBoard Designer, a browser-based tool for visually laying out electronic components on a PCB using Three.js. The most challenging part was bridging the gap between 2D screen coordinates and 3D space; I had to implement a custom raycasting system to accurately detect mouse clicks on the board and write the math to snap those coordinates to a strict 5mm grid. I’m really proud of how the final product turned out visually; by adding procedural copper traces, metallic mounting holes, and soft dynamic shadows, it feels like a premium, native desktop application rather than just a basic web page, all built with zero external frameworks.
To test the project, you don’t need to install anything or set up a local server. Simply save the code as an .html file and open it directly in any modern web browser like Chrome or Firefox. Once it loads, pick a component (like an MCU or LED) from the left sidebar and click anywhere on the green board to place it. You can then use right-click drag to orbit the camera, scroll to zoom, and use the properties panel on the right to tweak the board’s dimensions or change component colors in real-time.
- 1 devlog
- 5h