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

Getting the GLFW context of "Simulate" in Python #2408

Open
bd-jmiller2 opened this issue Feb 7, 2025 · 0 comments
Open

Getting the GLFW context of "Simulate" in Python #2408

bd-jmiller2 opened this issue Feb 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@bd-jmiller2
Copy link

bd-jmiller2 commented Feb 7, 2025

The feature, motivation and pitch

Hi, as a follow up to #766 (and also somewhat related to #965):
I am running mujoco passive viewer via mujoco.launch_passive in python (which is a wrapper around mujoco simulate.cc). I would like to have access to the GLFW window/ mjrContext so that I can:

  • run mjr_figure to add custom 2D plots to the viewer, which requires access to the mjrContext
  • add custom imgui overlays to the mujoco viewer by rendering to the same GLFW context/window
  • create/render mjui (e.g. mjui_render) which requires access to mjrContext.

Alternatives

Currently it seems like the workaround would either be to render everything else in a separately managed glfw window or copy and modify the launch_passive/simulate functionality so that we have access to this?

Additional context

No response

@bd-jmiller2 bd-jmiller2 added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant