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

Clarify resource management in emscripten chapter #34

Open
eliemichel opened this issue Aug 29, 2023 · 0 comments
Open

Clarify resource management in emscripten chapter #34

eliemichel opened this issue Aug 29, 2023 · 0 comments

Comments

@eliemichel
Copy link
Owner

From Delhills on Discord:

Does anyone know how to load the files (shaders, meshes, ...) from emscripten (or have any resource where it's explained)? I tried to follow Élie's CMakeLists code in step 95 but I don't quite understand it and it doesn't work 😟

In case someone has the same problem as me when using emscripten, if you add "--preload-file "${CMAKE_CURRENT_SOURCE_DIR}/resources" in target_link_options inside CMakeLists then remove the "-d build-web" in the command to run the server (python -m http.server) and then access the url "localhost:8000/build-web/App.html" and it should work

(I'm going to fix this thx! Also I'm considering putting the emscripten part much earlier in the main part of the guide)

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

1 participant