Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set offwidth and offheight properly before make MjrContext to support width > 640 or height > 480 in offscreen rendering #3044

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

YouJiacheng
Copy link
Contributor

@YouJiacheng YouJiacheng commented Aug 24, 2022

I try to minimize diff in this PR, thus there are some boilerplate codes.
Fix #3043
We might use self._width instead of self.width to inform user not modifying it.
Alternatively we can override __setattr__ to ensure given attribute can only write once.

@rodrigodelazcano

Copy link
Contributor

@pseudo-rnd-thoughts pseudo-rnd-thoughts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to merge
@YouJiacheng Could you update the title to make it more helpful

@jkterry1 jkterry1 merged commit 44e9475 into openai:master Aug 24, 2022
@YouJiacheng YouJiacheng changed the title Fix#3043 Set offwidth and offheight properly before make MjrContext to support width > 640 or height > 480 in offscreen rendering Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Mujoco envs offscreen rendering error for width > 640 or height > 480
3 participants