You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the offscreen rendering doesn't work with the required installation. My workaround is to 1) re-installing pyrender with mesa and 2) adding os.environ["PYOPENGL_PLATFORM"] = "osmesa" to viz_fitting_rgb.py.
Then there is a related issue. Even if it is set as "RGBA" by default, my renderer only generates the color_image with three channels, which leads to an error of computing the valid_maskhere and then the composition here.
When use offscreen render mode in Pyrender with platform='osmesa', it will produce 3 channel image, which means the alpha channel is lossed. I don't konw why, but it is. Instead you can do like follow trickly:
Hi Davis,
I found the offscreen rendering doesn't work with the required installation. My workaround is to 1) re-installing pyrender with mesa and 2) adding
os.environ["PYOPENGL_PLATFORM"] = "osmesa"
toviz_fitting_rgb.py
.Then there is a related issue. Even if it is set as "RGBA" by default, my renderer only generates the
color_image
with three channels, which leads to an error of computing thevalid_mask
here and then the composition here.My fix in
mesh_viewer.py
is as follows:-Jimei
The text was updated successfully, but these errors were encountered: