-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Position of rendering is different from OpenSCAD #8
Comments
Yep, it seems the axis marker is positioned at the bounding box of the model. At first glance, I'm not seeing a property to enable some sort of grid. |
Hmm, there's https://github.com/gabotechs/react-stl-viewer/blob/master/src/StlViewer/SceneElements/Floor.tsx which sounds like there's support for some x/y plane thingy. |
Humm. I noticed it when I experimented with Now, if we want the 3D gizmo @UBaer21 it should probably position it in a fixed position and have rulers. I'm wrestling with |
As you can see it is now the center of the bounding box but not the origin - I would assume this would be even more confusing. but as we have no colors in the viewer (which could work if 3mf color export would be implemented in openSCAD) in https://ochafik.com/openscad is just nothing - so i think that bounding box edge gizmo is an improvement - but sure it is not ideal . |
Filed gabotechs/react-stl-viewer#55 for origin-bound axes Although TBH on the long run I feel like we'd need either OpenGL emscripten support OR... gltf export + some color viewer such as https://modelviewer.dev/ |
Note that axes have currently disappeared in the deployed Web Playground as I'm in the process of overhauling it (see #37 ). I'm thinking of how best to reintroduce them (maybe a separate modelviewer w/ arrows synced on the main viewer for the feedback / control, and some BOSL2 rulers for the axes). |
If you run the script
playground.scad
in OpenSCAD proper, the model is centred on the x/y/z axes.Example:
In the playground, it seems to be at the lower left of the bounding box.
Example:
Someone learning OpenSCAD with the playground will be quite thrown off by this, especially of they are doing 0 centred modelling.
The text was updated successfully, but these errors were encountered: