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

Rendering to png #17

Open
ochafik opened this issue May 31, 2024 · 1 comment
Open

Rendering to png #17

ochafik opened this issue May 31, 2024 · 1 comment

Comments

@ochafik
Copy link

ochafik commented May 31, 2024

I just had a use case for rendering previews to PNG and realized the WASM build doesn't seem to support this.

@DSchroer @t-paul Do you guys know if it would be possible to build for WASM w/ offscreen OpenGL support? (e.g. maybe enabling OFFSCREEN_FRAMEBUFFER or something?).

(as a workaround we had to wrap the native binary in a server API forking out to xvfb -a openscad - -o out.png)

@t-paul
Copy link
Member

t-paul commented May 31, 2024

xvfb is not needed anymore when built against GLAD / EGL, that can get an OpenGL context on a headless system.
I think the WASM fails because there simply is no OpenCSG. I'm not sure if OpenCSG will build on WASM and if so, if we can get a compatible Context.

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