Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123787

Drawing 3D models on QOpenGLWidget with WebAssembly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.7.0 Beta1
    • GUI: OpenGL
    • None
    • WebAssembly

    Description

      I have written the next example: https://github.com/8Observer8/load-3d-models-dae-openglwindow-opengles2-qt6-cpp that draws 3D models on QOpenGLWindow without the problem: https://6602ec1abe3c4d529f4f5c7a--chic-pasca-73d8ca.netlify.app/

       

      But when I change QOpenGLWindow with QOpenGLWidget (I attached an example for QOpenGLWidget) I see this problem: https://clinquant-pastelito-7b506b.netlify.app/

      I had the same issue for QOpenGLWindow: https://bugreports.qt.io/browse/QTBUG-122145

      But it was solved by setting the depth buffer size to 24:

          QSurfaceFormat surfaceFormat;
          surfaceFormat.setDepthBufferSize(24);
          surfaceFormat.setSamples(4);
          setFormat(surfaceFormat);

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.webassembly qt.webassembly
            8observer8 Ivan Enzhaev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes