Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    OpenGL + SceneGraph and error with textures

    General and Desktop
    2
    4
    841
    Loading More Posts
    • 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.
    • M
      madeightfinger last edited by

      Hey, guys. I 'm trying to use openGl with qt according to examples. I took the example "Scene Graph - Rendering FBOs in a thread " and changed it for using with textures. I create 3 rectangles and set 3 different textures to this objects. I use QOpenGLTexture objects for textures and upload 20 different textures in this objects. Texture of each object changes every 30 frames. After 12 cycles of texture changing, textures do not change anymore. I got this bug only on Mac OS X 10.9.5. At Windows or Linux this app works perfectly.
      I found the dependence of this bug's behaviour from amount of items in QML file. The fewer items, the more textures are able to change before the appearance of the error. When this bug appear, glGetErrors returns 1280 or 1282 error codes. I can't repeat this error in small part of code, so i placed minimal project in GitHub.
      "Repo with project":https://github.com/AndreiLetyushov/bugs/tree/QOpenGLTexture_error/bugs-finder-project

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Which version of Qt/Xcode are you using ?

        On 10.8.5 it's working well

        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 Reply Quote 0
        • M
          madeightfinger last edited by

          XCode - Version 6.0.1 (6A317)
          Qt - 5.3.2 and 5.4(beta)

          I decided to specify what is the wrong behaviour of app.
          Good behaviour:
          3 rectangles with different sizes are placed at screen. Textures with numbers are being changed from 1 to 20, and this is repeating endlessly.

          Bad behaviour:
          The same 3 rectangles are placed at screen. But textures with numbers are being changed from 1 to 12, and after that we see just blue screen without textures with numbers. We see blue screen during the textures should are changed from 13 to 20. After that the process repeat again from texture with number 1.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Ok, with that additional explanation, there's indeed a problem also on 10.8.5

            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 Reply Quote 0
            • First post
              Last post