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

Scene3D lacks stencil support with multisampling off

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes