PurpleVisualizer
OSHPark 3D PCB layer visualizer based on three.js
Install / Use
/learn @jglim/PurpleVisualizerREADME
Purple Visualizer

Setup

Drag the bigass button in the setup page to your bookmarks bar
To use, click the previously added bookmark when reviewing your OSHPark PCB. The URL should resemble something like "https://oshpark.com/uploads/xxxxxx/approval/new"
How it works
- The bookmarklet creates an iframe to load the preview page, with links to oshpark-generated previews passed via GET parameters
- The preview fetches the preview images via a CORS proxy. This is required unless OSHPark adds
access-control-allow-originto their images - An alpha mask is made from the Edge.Cuts layer
- The other images are keyed out using the "oshpark purple" #330055
- Everything is put together in the three.js view
This isn't official or endorsed by the folks at oshpark.com though I would be glad to see them implement something like this.
Known Issues
- Controls appear to be broken right now
- (New!) 4-layer boards don't work
Made over the weekends "hackathon-grade" code quality - this WILL be buggy
