-
Notifications
You must be signed in to change notification settings - Fork 822
Spawn the window of the offscreen context out of focus #510
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
Comments
It seems that For now I directly create an instance of the base class, in order to create an offscreen context properly: offscreen = MjRenderContext(sim=self.sim, device_id=0, offscreen=True, opengl_backend='glfw') |
I also haven't been able to solve this problem. Super annoying. |
@iSaran For anyone who is interested, here's what I did:
If I want to render images without visualizing the simulation using MjViewer()
This will initialize an empty window for rendering in ''window' mode, otherwise sim.render() alone couldn't work. Now after change the constructor of MjRenderContextOffscreen from cinit to init, I did this:
It doesn't spawn any extra window, the whole rendering process is at the backend. |
I am creating an offscreen context using the following:
This creates a window which spawns in front of the other windows (in focus) that I have open. Is this the intended behavior?
I have a setup in which I create multiple mujoco sessions overtime and I run them in the same pc, which I am working on. This means that the spawning windows interrupt my workflow. One fix is to minimize the window right after the context construction with:
This is not a correct solution though because even momentarily the focus goes to the Mujoco window.
Can I create this context with its window spawning out of focus from the very start?
My mujoco-py version is 1.50.1.68.
The text was updated successfully, but these errors were encountered: