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

WASM support #27

Open
andrewvarga opened this issue Apr 23, 2024 · 3 comments
Open

WASM support #27

andrewvarga opened this issue Apr 23, 2024 · 3 comments

Comments

@andrewvarga
Copy link

Really nice library! How difficult do you think it would be to be able to build it for wasm?

@pablode
Copy link
Owner

pablode commented May 1, 2024

Hi! I don't think it should be too difficult.

I'm not sure about OpenUSD (the main dependency) though. There's no official support but Autodesk has ported it to WASM a while back and there seems to be an active branch. There's also this slide deck with some more references.

@andrewvarga
Copy link
Author

Hi! I don't think it should be too difficult.

I'm not sure about OpenUSD (the main dependency) though. There's no official support but Autodesk has ported it to WASM a while back and there seems to be an active branch. There's also this slide deck with some more references.

I see, so I would have to replace the OpenUSD dependency with the Autodesk port?
I'm using the wasm build of that fork already in gltfeditor.com when importing usd models.

@pablode
Copy link
Owner

pablode commented May 1, 2024

If you already have a WASM OpenUSD port, you can probably build against it (that is, if you built it yourself).

Could be, though, that you have to add some compiler/linker flags to this file: https://github.com/pablode/guc/blob/main/cmake/UsdDefaults.cmake
as OpenUSD does not expose them in their CMake target and Adsk might have made changes for Emscripten support (perhaps a git diff can help here).

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