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. Bug in qtdatavisual3d Abstract3DRenderer?
Forum Update on Monday, May 27th 2025

Bug in qtdatavisual3d Abstract3DRenderer?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtdatavis3d
2 Posts 1 Posters 349 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by
    #1

    I'm running Qt 5.13.0 on Ubuntu 16.04.
    Many of the data visualization apps from the qtcreator Examples page fail with this message:

    OpenGL version is too low, at least 2.1 is required
    

    Yet glxinfo indicates that my Ubuntu machine has OpenGL version 4.5:

    glxinfo | grep "OpenGL version"
    OpenGL version string: 4.5 Mesa 18.0.5
    

    This message is generated by Abstract3DRenderer::Abstract3DRenderer (), defined in datavisualization/engine/abstract3drenderer.cpp, which includes this:

            m_funcs_2_1 = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_2_1>();
            if (m_funcs_2_1)
                m_funcs_2_1->initializeOpenGLFunctions();
    
            // Restore original message handler
            qInstallMessageHandler(handler);
    
            if (!m_funcs_2_1)
                qFatal("OpenGL version is too low, at least 2.1 is required");
    

    If my system has OpenGL 4.5 installed, why does QOpenGLContext::versionFunctions() fail for version 2.1 functions? Why does Abstract3DRenderer insist on 2.1 functions if version 4.5 functions are available?

    Thanks

    Tom assoT 1 Reply Last reply
    0
    • Tom assoT Tom asso

      I'm running Qt 5.13.0 on Ubuntu 16.04.
      Many of the data visualization apps from the qtcreator Examples page fail with this message:

      OpenGL version is too low, at least 2.1 is required
      

      Yet glxinfo indicates that my Ubuntu machine has OpenGL version 4.5:

      glxinfo | grep "OpenGL version"
      OpenGL version string: 4.5 Mesa 18.0.5
      

      This message is generated by Abstract3DRenderer::Abstract3DRenderer (), defined in datavisualization/engine/abstract3drenderer.cpp, which includes this:

              m_funcs_2_1 = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_2_1>();
              if (m_funcs_2_1)
                  m_funcs_2_1->initializeOpenGLFunctions();
      
              // Restore original message handler
              qInstallMessageHandler(handler);
      
              if (!m_funcs_2_1)
                  qFatal("OpenGL version is too low, at least 2.1 is required");
      

      If my system has OpenGL 4.5 installed, why does QOpenGLContext::versionFunctions() fail for version 2.1 functions? Why does Abstract3DRenderer insist on 2.1 functions if version 4.5 functions are available?

      Thanks

      Tom assoT Offline
      Tom assoT Offline
      Tom asso
      wrote on last edited by Tom asso
      #2

      So is qtdatavis3d's Abstract3DRenderer just not compatible with desktop OpenGL versions higher than 2.1? If so that is pretty limiting!

      I've written a short test to verify that QOpenGLContext::versionFunctions() returns nullptr for QOpenGLFunctions_2_1, but returns an object for QOpenGLFunctions_4_5_Core on my Ubuntu machine (which has OpenGL 4.5 installed).

      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