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

Pyrender GPU rendering egl #37

Open
raymondsim opened this issue Aug 26, 2022 · 2 comments
Open

Pyrender GPU rendering egl #37

raymondsim opened this issue Aug 26, 2022 · 2 comments

Comments

@raymondsim
Copy link

Hi, is there any ways that we can enable egl offscreen rendering in the demo render code? I used
# os.environ['PYOPENGL_PLATFORM'] = 'egl'

but got the following error message,

NotImplementedError: Platform does not define a GLUT font retrieval function

I noticed that VOCA used egl for rendering and when I used the virtual environment for voca to run faceformer, it still gives the same error message.

@bezorro
Copy link

bezorro commented Sep 19, 2022

Hi, is there any ways that we can enable egl offscreen rendering in the demo render code? I used # os.environ['PYOPENGL_PLATFORM'] = 'egl'

but got the following error message,

NotImplementedError: Platform does not define a GLUT font retrieval function

I noticed that VOCA used egl for rendering and when I used the virtual environment for voca to run faceformer, it still gives the same error message.

Hi, I met the same problem. This may cause by the miss configuration of egl environment. I don't know how to solve this egl problem yet.
As an alternative, I replace the rendering processing of PyRender with PyTorch3D. It' s know 50 times faster then os.environ['PYOPENGL_PLATFORM'] = 'osmesa'`.

@raymondsim
Copy link
Author

@bezorro Thanks for the suggestions. When I was trying to install pytorch3d in the faceformer conda environment, I faced many version conflicts. Do you mind sharing versions for pytorch, cudatoolkit and pytorch3d? Thanks in advanced ;)

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

2 participants