Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. shaders
    Log in to post

    • SOLVED QOpenGLWidget and Multiple Textures
      General and Desktop • opengl qopenglwidget image processin shaders glsl • • rtavakko  

      2
      0
      Votes
      2
      Posts
      776
      Views

      Alright after developing spine problems from leaning into my screen for a week and losing more hair than my GPU has cores, I sort of fixed the issue. So for some reason when I was reading data into my textures without setting the active texture back to the GL_TEXTURE0 default, things were going sideways. So basically I had something like: glActiveTexture(GL_TEXTURE0 + inputTextureUnit[vid]); glBindTexture(GL_TEXTURE_2D, inputTextureID[vid]); glTexImage2D(GL_TEXTURE_2D, 0, GL_internalFormat[vid], videoSpecs[vid].videoWidth, videoSpecs[vid].videoHeight, 0, GL_format[vid], GL_UNSIGNED_BYTE, (const void*)(frame)); But this was missing at the end: glBindTexture(GL_TEXTURE_2D, 0); glActiveTexture(GL_TEXTURE0); But I'm not 100% convinced that this is the cause because if I read still images, there is no issue. Its only when I read videos that I see the flickering and black texture issue. It seems like when other widgets start rendering and there is a texture active, they somehow corrupt it but I would certainly appreciate it if anyone has input on what actually might be happening.
    • UNSOLVED QOpenGLTexture and shader?
      General and Desktop • qt5.6 qopengltexture shaders • • Alain38  

      3
      0
      Votes
      3
      Posts
      1671
      Views

      Dear Alain38, Did you make it finally work? I got stocked with the exact same problem.
    • Point cloud performance
      QML and Qt Quick • opengl rendering geometry shaders • • Guest  

      1
      0
      Votes
      1
      Posts
      876
      Views

      No one has replied

    • UNSOLVED Qt and OpenGL in Widget: Can't use glDrawArrays
      Game Development • opengl rendering draw shaders triangle • • Clockwork  

      2
      0
      Votes
      2
      Posts
      2573
      Views

      Hi Clockwork I didnt read your code with much attention, but for starters if all you want is draw a triangle, check this tutorials I did https://bitbucket.org/joaodeusmorgado/opengltutorials I'm using vbos, to draw triangles. I'm using all OpenGL native calls, but should be pretty easy to convert to Qt OpenGL functions. I also recommend you this book wich is great, it has a lot of details that usually are ommited in other books http://alfonse.bitbucket.org/oldtut/index.html
    • UNSOLVED Qt5.7 D3D shader error
      General and Desktop • qt5.7 shaders • • Kyungho  

      1
      0
      Votes
      1
      Posts
      1213
      Views

      No one has replied

    • UNSOLVED Shaders loaded from a file won't compile in armv7
      Mobile and Embedded • android opengl es2.0 opengl es shaders • • Metadr  

      4
      0
      Votes
      4
      Posts
      1706
      Views

      Then you should use the Qt resource system to embed the shader in your application. You current shader files are accessible on your host. When you start your application on your device, they won't be there.
    • UNSOLVED [QOpenGLWidget] How to port the Qt Hello triangle example with my own shaders?
      General and Desktop • qopenglwidget example shaders triangle • • CamelFrog  

      1
      0
      Votes
      1
      Posts
      1830
      Views

      No one has replied