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. No useful QOpenGLFramebufferObject::blitFramebuffer() and texture() when it encounters multisampling
Forum Updated to NodeBB v4.3 + New Features

No useful QOpenGLFramebufferObject::blitFramebuffer() and texture() when it encounters multisampling

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 232 Views 1 Watching
  • 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.
  • MartinChan3M Offline
    MartinChan3M Offline
    MartinChan3
    wrote on last edited by
    #1

    I am doiong some offscreen rendering job and I need to do multisampling and some blur job, so I created FBO_A to do my drawing job, then I use the blitFramebuffer() like what Qt blog did to blit what in FBO_A to FBO_B whose sample was set to 16, but what I got in FBO_B (use QOpenGLFramebufferObject::toImage) is still a no multisampling job. I have to say it is strange because when I set FBO_A sample to 16 and draw directly, then I got the multisampling image, which is totally different from what the above article said(You have to use blit to get a downsample or multisample FBO).

    Another question is about copy multisampling texture. I created FBO_C and want to draw FBO_A's content as a texture, the strange thing happened here, when FBO_A is a no multisampling fbo, I cant use texture() get the handle and FBO_C get the correct answer. But when FBO_A is set to multisampling, then the texture() get the right handle too, but u can never draw it in FBO_C correctly, what u get is always a black image.

    My Qt is 5.9.9, MSVC 2015 32bit.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Qt 5.9.9 being pretty old, you should test a more recent version of Qt.

      That said, you should provide a minimal compilable example that shows that behaviour.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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