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. OpenGL + SceneGraph and error with textures
Forum Updated to NodeBB v4.3 + New Features

OpenGL + SceneGraph and error with textures

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • M Offline
    M Offline
    madeightfinger
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        madeightfinger
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved