Replies: 3 comments 3 replies
-
Why do you think the default camera position should be different for each integration? |
Beta Was this translation helpful? Give feedback.
-
I edited your original list @hrgdavor to add a easy to reference short list. Two other things that I didn't list because they are more of discussion points at this point are I'm concerned about how robust user JSCAD scripts will be for two reason
I've also been thinking a bit about the default models when a new project is created. I think that they should be a useful example of something mechanical. For example I've got the Donut for OpenSCAD, its cute but I don't think very practical. I'm thinking I might replace it with the hinge from our tutorial https://learn.cadhub.xyz/docs/definitive-beginners/your-openscad-journey. On that theme I'd like to change the default JSCAD code, its a pet peeve of mine with many of these packages showing basic CSG concepts as the examples (i.e. the OpenSCAD logo) I don' think it's useful for people new to the paradigm as its hard to see how that shape would be useful, its too abstract. So my question to you is would you be happy to change the example to something more mechanical/practical? if so I have another pitch for you, If you wanted to re-create the same hinge as above, you could also re-create the same tutorial with JSCAD and that way we can offer the same tutorial where users can pick which package they would prefer to use to learn. I think this will help with your goal of getting more users to JSCAD, especially since some might choose to do both and can decide with they would prefer. |
Beta Was this translation helpful? Give feedback.
-
Checklist
app/web/public/demo-worker.js
) integrated as part of the build (so that we don't have one file where we need to be concerned about browser compatibility with modern js syntax)Nice to have
There are few more things needed for jscad itnegration to work nicely
Some of this may be implemented as a new default or customizable by each integration
[x] which axis is UP
Threejs has it's own default, but jscad uses Z=UP so scripts from jscad will be oriented that way.
zoom to fit
This will be useful for initial render so we make sure model is properly visible.
This can also be useful as checkbox, so on each model change, the camera view zooms on the object.
My guess is this is needed for model preview anyway.
sample code from https://discourse.threejs.org/t/camera-zoom-to-fit-object/936
[x] grid (size, division, subdivision)
no customization for now, if it ever becomes requested by actual users could be reconsidered in which way to customize.
Jscad grid is currently something like this in threejs code
export formats supported
Integrations should be able to provide more nta one export format
some eport formats supoprted in jscad:
JSCAD worker as part of build
I've added a web worker before with a special loader for webpack 4, but it seems that webpack 5 allows it without a special loader.
https://webpack.js.org/guides/web-workers/
Redwood just released v0.36.0 which upgraded to webpack5 and i need to upgrad that anyway so ill investigate as part of that.
Communication with z3dev
See: jscad/OpenJSCAD.org#893 (comment)
Beta Was this translation helpful? Give feedback.
All reactions