Enable MuJoCo WASM + Filament Rendering Support in Standalone CMake#3227
Open
MatiasManevi wants to merge 1 commit into
Open
Enable MuJoCo WASM + Filament Rendering Support in Standalone CMake#3227MatiasManevi wants to merge 1 commit into
MatiasManevi wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (WIP - do not merge)
This PR introduces the character changes required to support Filament-based rendering within the MuJoCo WebAssembly (WASM) bindings using a standalone CMake configuration. This enables a rendering pipeline for the web without a dependency on ThreeJS.
Key changes
wasm/CMakeLists.txt: Included MuJoCo platform experimental sources (renderer.cc, window.cc, step_control.cc). Configured Emscripten for WebGL2 and ES3 compatibility. Implemented a CMake-native asset compilation and embedding pipeline. Added dependencies for dear_imgui, implot, and libwebp.wasm/codegen/embed_assets.py: Developed a custom Python utility to convert binary .filamat and .ktx files into C++ source arrays for direct embedding into the WASM module.Technical Status & Known Blockers
While the CMake infrastructure is now in place, external/standalone builds currently face a blocker regarding Filament host tools.
matcmaterial compiler to the "Target" build (WASM).-DFILAMENT_HOST_TOOLS_PATHor-DFILAMENT_IMPORT_EXECUTABLES.ImportExecutables-Release.cmakein certain upstream versions.Future work
matcand necessary filament tooling.