Goal use csgrs in a browser #18
Replies: 5 comments 2 replies
|
This is a use case I'd like to support. To do so, you'll need to compile csgrs for WASM, and unless you want the web page to just spit out STLs (which could be viable - there are many javascript STL viewers you could embed alongside csgrs), you'll also need a renderer. Here's an example of what I'm talking about, csgrs wired up to a naive hand-rolled renderer and talking to the graphics hardware through egui: https://github.com/timschmidt/egui-csgrs-demo egui can also be compiled to WASM, so I don't think it would take much work to get that demo working on the web. |
|
Here's another one for you Wink: https://github.com/timschmidt/cube3d/tree/csgrs |
|
I'm going to drop a few more links here I've dug up. Just fuel for working on viewers for csgrs in WASM and otherwise: https://github.com/sdfgeoff/wasm_minigames/tree/master/src_rust/stl_viewer/stl_viewer_background https://github.com/bddap/watch-stl-rust |
|
Thanks to https://github.com/ArchiyouApp csgrs now builds for WASM, with instructions here: https://github.com/timschmidt/csgrs?tab=readme-ov-file#building-for-wasm |
|
FYI F3D support Web through wasm @winksaville |
Uh oh!
There was an error while loading. Please reload this page.
In my little spindle for a solenoid project, I'm showing a png of the stl file generated with
f3d. That works but I though that I should be able to render the stl file directly in the browser. So I searched and is seems possible.That led me to wonder the plausibility of running csgrs in the browser, seems if embedded is a goal than running it in a browser should be possible too. Just a thought.
All reactions