mujoco icon indicating copy to clipboard operation
mujoco copied to clipboard

user_scn and update_hfield() equivalents in Renderer class

Open lok-i opened this issue 1 year ago • 1 comments

Hi,

Is it possible to have the user_scn and update_hfield() from passive_viewer in Renderer? I want the screens of my viewer and render synchronized so I can record what I see. As in the video below, the above two features of the viewer help me visualize my results well. Due to these custom artifacts, I can only record them from an external screen recorder, which is a hassle.

https://github.com/google-deepmind/mujoco/assets/54435909/5b526f39-19f6-4a60-a026-9cfb5eba4741

lok-i avatar Feb 09 '24 02:02 lok-i

While this isn't currently supported, the Renderer class is a pure Python helper. If you want, you should be able to fairly straightforwardly add this feature (and maybe consider sending it in as a PR!)

saran-t avatar Feb 20 '24 18:02 saran-t