dactyl-keyboard icon indicating copy to clipboard operation
dactyl-keyboard copied to clipboard

add preview render

Open dereknheiley opened this issue 4 years ago • 3 comments

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

dereknheiley avatar Jul 05 '20 16:07 dereknheiley

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:

CreamyCookie avatar Jul 08 '20 18:07 CreamyCookie

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).

rianadon avatar Mar 03 '23 00:03 rianadon

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

CreamyCookie avatar Jun 10 '23 14:06 CreamyCookie