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

Scene3D lacks stencil support with multisampling off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.0
    • Qt3D
    • None
    • All

    Description

      Due to the fact Scene3DRenderer only adds a Depth attachment to the final FBO (scene3drenderer.cpp:183):

      QOpenGLFramebufferObject *Scene3DRenderer::createFramebufferObject(const QSize &size)
      {    
      QOpenGLFramebufferObjectFormat format;            
      format.setAttachment(QOpenGLFramebufferObject::Depth);    
      return new QOpenGLFramebufferObject(size, format);
      }
      

      While it does not cause any issue when using multisampling since that FBO is only blit'ed on (it could just not use any attachment for that matter), Scene3D will directly use that FBO for drawing when it is off, leading to a lack of stencil support. It could instead add the CombinedDepthStencil to the final FBO when multisampling is off, none otherwise.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            shao shao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes