makehumancommunity / makehuman

This is the main repository for the MakeHuman application as such.

Home Page:http://www.makehumancommunity.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viewport empty/not working in Wayland

andersmmg opened this issue · comments

When using Wayland, the viewport does not seem to render. I've already tried turning on the no shaders and sample buffers, but it has no effect. It seems to work using X11 when I install that, but not Wayland. It just shows my desktop or whatever is behind the window, while flickering a lot.
image

Just out of curiosity, does it still fail if you launch it with PYOPENGL_PLATFORM=osmesa? I'm investigating running makehuman on wayland myself and have run into three different scenarios:

  • Launching in Wayland (QT_QPA_PLATFORM=wayland)
    • Fails due to not properly configuring the xdg_surface (see #224)
  • Launching in XWayland (QT_QPA_PLATFORM=xcb)
    • Fails as described in this issue, due to running in XWayland but attempting to load EGL.
  • Launching in XWayland using the OSMesa software renderer (QT_QPA_PLATFORM=xcb PYOPENGL_PLATFORM=osmesa
    • Works just fine, but on the software renderer and thus entirely unaccelerated.

Launching it with PYOPENGL_PLATFORM=glx seems to be ignored and continues to load EGL because it detects wayland. Okay I went and did some searching before submitting this comment, it looks like the appropriate invocation is in fact PYOPENGL_PLATFORM=x11!

Launching through Wayland/EGL still fails and should be explored in the relevant ticket, but forcing XWayland/GLX works fine with: QT_QPA_PLATFORM=xcb PYOPENGL_PLATFORM=x11 makehuman.

Adding those variables does make it display at least, I added them to my .desktop file and it's useable