openscad / openscad-playground

OpenSCAD Web Playground
https://ochafik.com/openscad2
Other
76 stars 17 forks source link

Playing in the playground #34

Open MrMaint opened 6 days ago

MrMaint commented 6 days ago

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 " supported? Where would the "library.scad" file need to be stored? I ended up just copying the file into the editor.

ochafik commented 6 days ago

Hi @MrMaint ,

Thanks for giving the playground a try!

As it turns out, I'm working on color support for exports right now (see https://github.com/openscad/openscad/pull/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 commented 6 days ago

Is "use " 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 commented 3 days ago

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

https://ochafik.com/openscad2

image