Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Draft: Initialize a WASM Example #10

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Draft: Initialize a WASM Example #10

wants to merge 7 commits into from

Conversation

zachcp
Copy link
Owner

@zachcp zachcp commented Sep 19, 2024

  • this requires building wasm32-unknown-unknown
  • requires html to upload the file
  • communication of file data into the wasm app
  • update of plugin to allow us to add Structures after initialization
  • I tried a few different approaches but got stuck.
    • Shu uses fully WASM-ified event system where the buttons and entire UI are controlled bu bevy/egui
    • I was hoping to use html and just pass the file in. Tee concept works and there is even a nice plugin that gives you the ability to launch a file_dialog - bevy_file_dialog - but I ran into wasm issues where compiling was fine but when the script was run, the webconsole was complaining about GPU access. So I tried to compile with only some feature subsets but couldn't quite get that worked out. It seems one of plugins or bevy itself is compiling wasm with GPU options enabled but my initial searches were fruitless.

@zachcp zachcp changed the title Initialize a WASM Example Draft: Initialize a WASM Example Sep 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant