Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Certain Qt OpenGL/3D examples work, others don't (black screen) on Debian 9 VM with Qt 5.11.1
Forum Updated to NodeBB v4.3 + New Features

Certain Qt OpenGL/3D examples work, others don't (black screen) on Debian 9 VM with Qt 5.11.1

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 875 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by Diracsbracket
    #1

    Hi,
    I just installed Qt 5.11.1 on Debian 9.5 (VMware) with the default GNOME desktop and Cairo dock, and tested it with some openGL/3D examples.

    These fail with a black screen:

    • Boxes
    http://doc.qt.io/qt-5/qtwidgets-graphicsview-boxes-example.html
    • Planets QML Example (however the Canvas3D implementation of this works, see below).
    https://doc.qt.io/qt-5/qt3d-planets-qml-example.html
    • OpenGL Window
    http://doc.qt.io/qt-5/qtgui-openglwindow-example.html

    The following examples however work:

    • Scene Graph - OpenGL Under QML
    http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html
    • Planets Canvas3D example
    https://doc.qt.io/qt-5.11/qtcanvas3d-threejs-planets-example.html
    • Interactive Mobile Phone Example
    https://doc.qt.io/qt-5/qtcanvas3d-threejs-cellphone-example.html
    • Qt Quick 2 Surface Multiseries Example
    https://doc.qt.io/qt-5/qtdatavisualization-qmlsurfacelayers-example.html

    What is the common denominator in each of the two groups of examples above? How can I resolve the black screen problem?

    Thank you for your help!

    DiracsbracketD 1 Reply Last reply
    0
    • DiracsbracketD Diracsbracket

      Hi,
      I just installed Qt 5.11.1 on Debian 9.5 (VMware) with the default GNOME desktop and Cairo dock, and tested it with some openGL/3D examples.

      These fail with a black screen:

      • Boxes
      http://doc.qt.io/qt-5/qtwidgets-graphicsview-boxes-example.html
      • Planets QML Example (however the Canvas3D implementation of this works, see below).
      https://doc.qt.io/qt-5/qt3d-planets-qml-example.html
      • OpenGL Window
      http://doc.qt.io/qt-5/qtgui-openglwindow-example.html

      The following examples however work:

      • Scene Graph - OpenGL Under QML
      http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html
      • Planets Canvas3D example
      https://doc.qt.io/qt-5.11/qtcanvas3d-threejs-planets-example.html
      • Interactive Mobile Phone Example
      https://doc.qt.io/qt-5/qtcanvas3d-threejs-cellphone-example.html
      • Qt Quick 2 Surface Multiseries Example
      https://doc.qt.io/qt-5/qtdatavisualization-qmlsurfacelayers-example.html

      What is the common denominator in each of the two groups of examples above? How can I resolve the black screen problem?

      Thank you for your help!

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by Diracsbracket
      #2

      As a temporary workaround, I disabled 3D Hardware acceleration in the VMware display settings; this makes the examples that failed above also work. Kind of.

      Although I will mark this post as Solved, any suggestions to make those examples work in VMware with 3D Acceleration enabled are welcomed.

      I checked with

      glxinfo | grep OpenGL
      

      That the Debian VM is correctly configured.

      glxinfo | grep OpenGL
      OpenGL vendor string: VMware, Inc.
      OpenGL renderer string: Gallium 0.4 on SVGA3D; build: RELEASE;  LLVM;
      OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.6
      OpenGL core profile shading language version string: 3.30
      OpenGL core profile context flags: (none)
      OpenGL core profile profile mask: core profile
      OpenGL core profile extensions:
      OpenGL version string: 3.0 Mesa 13.0.6
      OpenGL shading language version string: 1.30
      OpenGL context flags: (none)
      OpenGL extensions:
      OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.6
      OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
      OpenGL ES profile extensions:
      

      and

      glxinfo | grep "direct"
      direct rendering: Yes
          GL_ARB_depth_buffer_float, GL_ARB_depth_clamp, GL_ARB_direct_state_access,
      

      Also, as suggest in
      As suggested https://www.mesa3d.org/vmware-guest.html I tried to change:

      virtualHW.version = "14"
      

      to

      virtualHW.version = "12"
      

      but that did not work.

      I have installed the latest open-vm-tools-desktop for the distribution, but have not tried yet with the default VMware tools provided by VMware itself, as I read somewhere that this does not work either.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved