mkocabas/PARE

OpenGL.error

Taylorminer opened this issue · 3 comments

1
Can you help me to solve the problem?

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

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

Thanks for the proposed solutions @xiwang1212, @littlejiumi!