Skip to content

MuJoCo XLA (MJX) support in Unity #2302

Discussion options

You must be logged in to vote

Could you elaborate on what role would Unity play in your expected use case?

You could use Unity to help build a scene (the editor serving as a GUI) then export the MuJoCo scene and use that in MJX, which runs parallelized on the GPU. Or run MJX inference and pipe its state to its Unity equivalent for rendering or interactivity.

There is no support currently for GPU parallelized physics directly in a Unity app. Unity has support for GPU computations via e.g., compute shaders, but I think there is no straightforward way to bridge those features to run JAX code (what MJX is written with). It would need a complete reimplementation of the engine the GPU code (which is strenuous, and the reaso…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Norite-dev
Comment options

@Norite-dev
Comment options

Comment options

You must be logged in to vote
1 reply
@Norite-dev
Comment options

Answer selected by Norite-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #2301 on December 19, 2024 13:57.