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

OpenGL.error #12

Closed
Taylorminer opened this issue Dec 7, 2021 · 3 comments
Closed

OpenGL.error #12

Taylorminer opened this issue Dec 7, 2021 · 3 comments

Comments

@Taylorminer
Copy link

1
Can you help me to solve the problem?

@littlejiumi
Copy link

mmatl/pyrender#86 (comment)
Maybe this can help you~

@xiwang1212
Copy link

I encountered the same problem which seems to be caused by EGL, and need to change to OSMesa following the steps described here: https://pyrender.readthedocs.io/en/latest/install/index.html.

To run the demo, the following setting needs to be changed from 'egl' to 'osmesa' in both demo.py and utils/vibe_renderer.py

import os
os.environ['PYOPENGL_PLATFORM'] = 'osmesa'    # 'egl' --> 'osmesa' 

Then I need to make another somehow weird change at

output_img = rgb[:, :, :-1] * valid_mask + (1 - valid_mask) * img

to output_img = rgb * valid_mask + (1 - valid_mask) * img

@mkocabas
Copy link
Owner

Thanks for the proposed solutions @xiwang1212, @littlejiumi!

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

No branches or pull requests

4 participants