Open SkytAsul opened 3 months ago
Perhaps @nishbo has an idea?
Relatedly, look at #1452
I did, but it's not using OpenXR. Moreover, the glfw window hints that cause the trouble are not set in this project.
I made some tests and found out some interesting results:
If I set the context version to 2.0, 2.1, 3.0 and 3.1 it works (but will not work with OpenXR).
If I want to set the context version to anything higher than 3.1, I have to change the OPENGL_PROFILE
to OPENGL_COMPAT_PROFILE
. Unfortunately, this is not possible with OpenXR because the OpenGL profile used is hardcoded.
Is it possible to investigate why the core profile does not work?
Interesting, I am not sure why this would happen, although I also have somewhat similar problems with using the wrong context when initializing opengl for openxr. I do not have a solution at the moment.
It's been a pain, but I eventually succeeded in rendering MuJoCo to a VR headset using the python OpenXR wrapper pyopenxr.
Here is the code: https://gist.github.com/SkytAsul/b1a48a31c4f86b65d72bc8edcb122d3f
The OpenGL version/profile bug I reported above prevents the use of an OpenGL debugger such as RenderDoc, which requires at least OpenGL 3.2 and the Core Profile...
Thanks for sharing the code! I will look into what can be done about the MuJoCo OpenGL
Hi,
I'm a student in research and I'm trying to use MuJoCo for simulating soft body touch and rendering haptic feedback, all of this in Virtual Reality.
I'm looking for some help with the render pipeline using OpenGL.
To integrate the virtual headsets in MuJoCo, I am trying to use the pyopenxr library. It uses glfw under the hood. What is actively driving me nuts is this error when instantiating the MjrContext:
Here is the related code:
What is really weird is that I tried this piece of code to check if the context indeed misses the
GL_ARB_framebuffer_object
extension:... and no, the context has the extension. I do not understand why MuJoCo complains.
What is even weirder is that if I remove the two glfw window hints about the context version, the error disappears and everything works fine. The problem is I need those hints for OpenXR. What should I do?