ibnuda / dactyl-keyboard

Web generator for dactyl keyboards.
https://dactyl.siskam.link
GNU Affero General Public License v3.0
197 stars 51 forks source link

add preview render #36

Open dereknheiley opened 4 years ago

dereknheiley commented 4 years ago

i think someone else mentioned this, but there doesn't appear to be an issue / feature request for integrating a https://openjscad.org/ view somewhere on the page

Add support for showing a preview of the design which stays on the page to support the user with the following series of tasks:

  1. select a default
  2. preview default design
  3. update some parameters such as number of columns, or removing pinky bottom row, etc.
  4. see updated render
  5. tweak some more things to see what they do
  6. see updated render
  7. tweak final settings to get it just right
  8. finally happy with updated render
  9. download .scad file to export to stl for printing

maybe the openjscad would only be good for giving an "x-ray" type of preview for how different angle, row, tenting parameters affect on key switch placement, but it seems like it would still be a nice to have feature Screenshot 2020-07-05 13 41 41

CreamyCookie commented 4 years ago

That would be awesome, but I think it would probably tax the server too much..

Maybe it would be possible to compile the Clojure code to JavaScript using something like https://github.com/clojure/clojurescript :smile:

rianadon commented 1 year ago

I ~am using OpenJSCAD~ was using JSCAD (now I'm using Manifold which matches OpenSCAD in quality) in my configurator: https://github.com/rianadon/dactyl-configurator/, which might serve as inspiration. OpenJSCAD does a fairly great job generating previews, but it sadly doesn't do as great of a job at generating previews as OpenSCAD (the renders tend to have more missing faces).

CreamyCookie commented 1 year ago

@rianadon Very cool what you did! Look forward to see what Cosmos will look like :+1: