pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

RGBA flag fails when using osmesa backend

Open Hellomodo opened this issue 5 years ago • 10 comments

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).

Hellomodo avatar Aug 26 '20 11:08 Hellomodo

Hi, @Hellomodo

I met the same problem, have solved this problem?

B.R.

VVingerfly avatar Oct 22 '20 11:10 VVingerfly

Not yet, I have to use EGL backend。

Hellomodo avatar Nov 06 '20 09:11 Hellomodo

Same issue here. Any solution yet?

slowpokefarm avatar Dec 09 '20 15:12 slowpokefarm

Same issue !! Any solution yet?

indigo-99 avatar Nov 19 '21 14:11 indigo-99

Hi, I also have this issue

alon-ne avatar Apr 04 '22 09:04 alon-ne

having the same issue. any ideas about workarounds? using a server without GPU, so EGL is not an option

zzharsky avatar Oct 20 '22 19:10 zzharsky

@mmatl can you please comment? any chance this will be solved?

zzharsky avatar Oct 20 '22 19:10 zzharsky

bug not fixed yet

Darius-H avatar Nov 06 '23 09:11 Darius-H