openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.85k stars 815 forks source link

mjvive.py Black Screen #239

Open Pat1880 opened 6 years ago

Pat1880 commented 6 years ago

I ran mjvive.py and everything is black. The physics engine seems to be running because simulation time and model data are changing. I tried closing it and re-opening it as suggested in the comment section of mjvive.py but the issue persists. Can it be related to drivers/library versions? (the 2d simulator runs normally )

thomasweng15 commented 5 years ago

I am having the same issue.

chinmaySwami commented 3 years ago

It turns out that if you have PyOpenGL version 3.1.0 or below and you run the code in Debug mode, everything works normally. But without debug mode it give black screen. I dont know why its working in debug mode but not when you execute it.

Also, one another workaround is to put a breakpoint before post vr initialization and then continue executing. Doing so will make the program execution much more efficient than executing the program in debug mode.