google-deepmind / dm_control

Google DeepMind's software stack for physics-based simulation and Reinforcement Learning environments, using MuJoCo.
Apache License 2.0
3.83k stars 671 forks source link

Change render viewport resolution #498

Closed gabrielpeixoto-cvai closed 1 month ago

gabrielpeixoto-cvai commented 1 month ago

The render viewport resolution is 640x480 by default. For example, is there an easy way to change this value to 1024x1024? I searched for the issues and documentation but could not find any straightforward solution. I am new to Mujoco and dm_control. I have seen discussions that involve manually creating a glfw window and assigning it to mujoco, but I did not find an equivalent process in dm_control. I appreciate if someone can provide some link or some example code.

yuvaltassa commented 1 month ago

https://mujoco.readthedocs.io/en/latest/XMLreference.html#visual-global-offwidth