Issue with Multiple render_offscreen Calls Using Different Dimensions in MuJoCo #1979
Unanswered
cherylwang20
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am a student currently utilizing MuJoCo for reinforcement learning (RL) training and encountering a problem with rendering from different camera perspectives.
Problem Description:
I need to use the render_offscreen method for two purposes:
Here is a code snippet demonstrating how I am currently handling these tasks:
Issue:
The problem arises when attempting to use render_offscreen with different dimensions sequentially. Whichever render_offscreen call is executed first sets the dimensions for subsequent calls within the same simulation instance. This leads to the second render_offscreen call not initializing a new screen, but instead using the previous dimensions specified.
Request for Assistance:
Could someone please provide guidance on how to correctly reinitialize or reset the renderer so that it correctly handles multiple calls to render_offscreen with different dimensions? Any advice or examples of how to manage this would be greatly appreciated.
Thank you for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions