Add a README with instructions for how to build and run MuJoCo Studio externally
PiperOrigin-RevId: 833336577 Change-Id: Ib5f5ef33abe820796559a9da352360f57ea64bc8
This commit is contained in:
committed by
Copybara-Service
parent
12e24d66f6
commit
85b6194f91
@@ -0,0 +1,66 @@
|
||||
# MuJoCo Studio
|
||||
|
||||
MuJoCo Studio is the next iteration of the [simulate](../../../simulate)
|
||||
application. The UI has been reimplemented using [Dear ImGui](https://github.com/ocornut/imgui)
|
||||
and the default renderer has been switched to Filament. The application is
|
||||
still WIP, see the [Future Work](#future-work) section for details.
|
||||
|
||||
## Usage
|
||||
|
||||
Configure and build MuJoCo Studio by running this command from the top-level
|
||||
directory. Then follow the printed instructions to run the executable.
|
||||
|
||||
```
|
||||
bash build.sh
|
||||
```
|
||||
|
||||
> [!NOTE] For now [`build.sh`](build.sh) script works on windows in a git bash
|
||||
> shell.
|
||||
|
||||
## Development
|
||||
|
||||
The [`build.sh`](build.sh) script is intended to get you up and running quickly.
|
||||
If you intend to develop the application you may prefer to work from an IDE:
|
||||
|
||||
* [Clion](https://www.jetbrains.com/clion/). You should be able to set this up
|
||||
to work with the cmake files we provide.
|
||||
|
||||
* [VSCode](https://code.visualstudio.com/). We have found that Microsoft's
|
||||
[CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools)
|
||||
extension works well.
|
||||
|
||||
* [Visual Studio](https://visualstudio.microsoft.com/). Follow these
|
||||
[instructions](https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170).
|
||||
|
||||
## Filament Rendering
|
||||
|
||||
Studio uses legacy OpenGL rendering by default but there is an option to use
|
||||
Physically Based Rendering via [Filament](https://google.github.io/filament/Filament.md.html).
|
||||
To enable Filament you need to `-DMUJOCO_USE_FILAMENT=ON` during the cmake
|
||||
configuration step. The Filament renderer has multiple rendering backends,
|
||||
on Linux OpenGL is the default but Vulkan can be used by also providing
|
||||
the `-DMUJOCO_USE_FILAMENT_VULKAN=ON` option.
|
||||
|
||||
Also note that you will need to run the application from the folder containing
|
||||
the executable so that the expected materials/assets can be found.
|
||||
|
||||
> [!WARNING] Filament rendering currently supported on Linux. We are actively
|
||||
> working on bugs and build issues we've encountered on MacOS and Windows.
|
||||
> Contributions improving support on those platforms are very welcome, your
|
||||
> fixes may need to be applied in the upstream [Filament](https://github.com/google/filament)
|
||||
> GitHub repository.
|
||||
|
||||
## Known Bugs
|
||||
|
||||
* MuJoCo Studio does not yet work using Wayland on Linux, use X11 instead.
|
||||
|
||||
## Future Work
|
||||
|
||||
1. **Stability and Robustness**. We need user feedback to find and fix bugs.
|
||||
|
||||
1. **UI/UX improvements**. We have ported the simulate UI to make it easier to
|
||||
users to switch. We will be making further changes to make use of the
|
||||
flexibility offered by Dear ImGui ([examples](https://github.com/ocornut/imgui/issues/8942)).
|
||||
|
||||
1. **Python integration**. As with simulate, we would like to make Studio usable
|
||||
via Python.
|
||||
Reference in New Issue
Block a user