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

windows may not support EGL #969

Closed
Beiliergo opened this issue Aug 26, 2023 · 1 comment
Closed

windows may not support EGL #969

Beiliergo opened this issue Aug 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Beiliergo
Copy link

Describe the issue

Hey,
Thank you for this nice repo. I achieved automated rendering process with BlenderProc v2.5.0, on the Windows platform.
Now, I have upgraded the project to v2.6.0, but I am unable to run my preivous work.
I noticed that pyrender is used in BopWriterUtility.py.
set 'os.environ['PYOPENGL_PLATFORM'] = 'egl''
However, there is no EGL implementation on the Windows platform. headless render work in linux platform
As commenting out this line, I can use my render pipeline.
Perhaps this part needs to be distinguished based on the operating platform.

Minimal code example

os.environ['PYOPENGL_PLATFORM'] = 'egl'
# pylint: disable=wrong-import-position
import pyrender
# pylint: enable=wrong-import-position

Files required to run the code

No response

Expected behavior

import sys

if sys.platform == 'linux':
os.environ['PYOPENGL_PLATFORM'] = 'egl'

pylint: disable=wrong-import-position

import pyrender

pylint: enable=wrong-import-position

BlenderProc version

v2.6.0

@Beiliergo Beiliergo added the question Question, not yet a bug ;) label Aug 26, 2023
@cornerfarmer
Copy link
Member

Thanks for the hint, should now be fixed in v2.6.1

@cornerfarmer cornerfarmer added bug Something isn't working and removed question Question, not yet a bug ;) labels Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants