Skip to content
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

Playing in the playground #34

Closed
MrMaint opened this issue Jun 29, 2024 · 4 comments
Closed

Playing in the playground #34

MrMaint opened this issue Jun 29, 2024 · 4 comments

Comments

@MrMaint
Copy link

MrMaint commented Jun 29, 2024

I noticed that color("red")cube([10,10,10],center=true); does not produce a red cube. I use OpenSCAD to teach programming to grade school age students and color is very important to their creations. Is this just a auto render problem, or is the color command not supported?

I also noticed that every time the rendering updates it resets the view angle. If after rendering you use the mouse to rotate the model, it will return to the not rotated position if you make an edit or press render.

Is "use <library.scad>" supported? Where would the "library.scad" file need to be stored?
I ended up just copying the file into the editor.

@ochafik
Copy link
Collaborator

ochafik commented Jun 29, 2024

Hi @MrMaint ,

Thanks for giving the playground a try!

As it turns out, I'm working on color support for exports right now (see openscad/openscad#5180), but it's not fully ready for prime time yet.

Sneak peak view in the playground: https://ochafik.com/openscad3 (as an added benefit it preserves the camera angle between renders, although not yet through a full tab refresh).

If you're able to install a desktop version (https://openscad.org/ - please do prefer a dev snapshot and enable experimental features like manifold), there are "best effort" builds w/ color export support (OFF format only - feature render-color in the settings), e.g windows / AppImage binaries.

@ochafik
Copy link
Collaborator

ochafik commented Jun 29, 2024

Is "use <library.scad>" supported? Where would the "library.scad" file need to be stored?
I ended up just copying the file into the editor.

Not supported yet, except with the libaries bundled (eg BOSL2…)

it’s on my radar 👀

@ochafik
Copy link
Collaborator

ochafik commented Jul 2, 2024

Colors now work in the deployed web playground, and so does the customizer

https://ochafik.com/openscad2

image

@Scopeuk Scopeuk mentioned this issue Jul 2, 2024
Closed
@ochafik
Copy link
Collaborator

ochafik commented Dec 24, 2024

Closing this as color & relatively stable camera orientation are in, and additional file support is tracked in #42

Thanks again!

@ochafik ochafik closed this as completed Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants