Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Standard example: Texture in SGNode - Rendering FBOs
Forum Updated to NodeBB v4.3 + New Features

Standard example: Texture in SGNode - Rendering FBOs

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.3k 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.
  • Q Offline
    Q Offline
    qthree
    wrote on last edited by
    #1

    Take two stock examples and replace logo renderer (one cpp for 2 examples) to this dummy:
    http://pastebin.com/peYzuwss

    Multi-threads version works well - draws green rectangle
    Single thread blink green for 1 frame and than shows only red background.

    1. Why?
    2. What must i do to get same results in both situations?

    (ubuntu x64 5.1.0)

    sry4engrish

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qthree
      wrote on last edited by
      #2
      1. Also, multi-threads version doesn't work in win7 (x64, opengl).
        @ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x502@
        because of sharing with other context
        @m_context->setShareContext(context);@

      upd: already found about it https://bugreports.qt-project.org/browse/QTBUG-30077
      but 1 and 2 still important for me.

      1 Reply Last reply
      0
      • slettaS Offline
        slettaS Offline
        sletta
        wrote on last edited by
        #3

        Both examples work fine for me with ubuntu 13.04, 64-bit. What is your video driver?

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qthree
          wrote on last edited by
          #4

          On ubuntu examples works well without modifications, but without shader programm one-thread example does not work.
          So, i use gDEBugger GL and found that after after qml drawing depth test enabled and some shader programm binded. So this helps me:
          @
          QOpenGLFunctions_2_1 glf21;
          glf21.initializeOpenGLFunctions();
          .....
          glDisable(GL_DEPTH_TEST);
          glf21.glUseProgram(0);@

          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