-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
RGBA flag fails when using osmesa backend #137
Comments
Hi, @Hellomodo I met the same problem, have solved this problem? B.R. |
Not yet, I have to use EGL backend。 |
Same issue here. Any solution yet? |
Same issue !! Any solution yet? |
Hi, I also have this issue |
having the same issue. any ideas about workarounds? using a server without GPU, so EGL is not an option |
@mmatl can you please comment? any chance this will be solved? |
bug not fixed yet |
This works: rgb, depth = render.render(scene) |
color_im, depth_im = r.render(scene, flags=pyrender.RenderFlags.RGBA) |
Following #4, I set the bg_color and RenderFlags as follow, but the output color has a shape of h x w x 3 (h x w x 4 is expected).
scene = pyrender.Scene(bg_color=[1.0, 1.0, 1.0, 0.0]) \ flags = pyrender.RenderFlags.RGBA \ r = pyrender.OffscreenRenderer(h, w) \ color, depth = r.render(scene, flags=flags)
Additionally, I set os.environ["PYOPENGL_PLATFORM"] = "osmesa", which is the only difference between my testing script with other demo (https://github.com/JonathanLehner/Colab-collection/blob/master/pyrender_hand.ipynb).
The text was updated successfully, but these errors were encountered: