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.83k stars 810 forks source link

`has_offscreen_render=True` does not work (GLEW initalization error: Missing GL version) #653

Open RayYoh opened 2 years ago

RayYoh commented 2 years ago

Describe the bug To Reproduce When I use the Quickstart codes of robosuite, it work perfectly when I use:

env = suite.make(
    env_name="Lift", # try with other tasks like "Stack" and "Door"
    robots="Panda",  # try with other robots like "Sawyer" and "Jaco"
    has_renderer=True,
    has_offscreen_renderer=False,
    use_camera_obs=False,
)

But when I use:

env = suite.make(
    env_name="Lift", # try with other tasks like "Stack" and "Door"
    robots="Panda",  # try with other robots like "Sawyer" and "Jaco"
    has_renderer=False,
    has_offscreen_renderer=True,
    use_camera_obs=True,
)

it dose not work, and there is an error GLEW initalization error: Missing GL version.

Error Messages GLEW initalization error: Missing GL version

Desktop (please complete the following information):

I have try below to slove this problem, but this don't help.

lorepieri8 commented 2 years ago

The problem is still there, any solutions?

SATE001 commented 2 years ago

The problem is still there, any solutions?

Give up immediately. Instead, use 'OpenGL.GL.glReadPixels ()'.

famishedrover commented 1 year ago

@SATE001 can you elaborate more on your response? (like some small example with some environment)? Thanks!