Home > Mobile >  I use QOpenGLWidget controls for rendering images appear black screen what reason be
I use QOpenGLWidget controls for rendering images appear black screen what reason be

Time:04-16

I use in qt textures and shaders to continuous rendering image, he had written a demo use timer can continuous rendering images, and then when I was integrated into the project has been rendering black screen, have to know to help analyze the reason, how to solve,

CodePudding user response:

Project if there are multiple OpenGLwidget, need to make sure that the context is consistent, may also be qtOpenGL full screen bug "full screen, glviewport need a little", I feel you should be hard to meet these problems, the most direct is likely to be the problems of your drawing details

CodePudding user response:

Is my texture the possibility of a problem is big, or the possibility of shader code out of the question,

CodePudding user response:

reference 1st floor Italink response:
projects if there are multiple OpenGLwidget, need to make sure that the context is consistent, may also be qtOpenGL full screen bug "full screen, glviewport need a little", I feel you should be hard to meet these problems, the most direct may have problems or your drawing details

Is my texture the possibility of a problem is big, or the possibility of shader code out of the question,

CodePudding user response:

reference jcl_betterman reply: 3/f
Quote: refer to 1st floor Italink response:
projects if there are multiple OpenGLwidget, need to make sure that the context is consistent, may also be qtOpenGL full screen bug "full screen, glviewport need a little", I feel you should be hard to meet these problems, the most direct may have problems or your drawing details

Is my texture the possibility of a problem is big, or the possibility of shader code out of the question,


Shader code and texture so point operation, it is not easy to a problem, may be something wrong in your drawing process, such as context, binding and create buffer, how to draw, I don't know you, if you can you send the demo to me, I can help you to look at

CodePudding user response:

Italink
reference 4 floor response:
Quote: refer to the third floor jcl_betterman response:
Quote: refer to 1st floor Italink response:
projects if there are multiple OpenGLwidget, need to make sure that the context is consistent, may also be qtOpenGL full screen bug "full screen, glviewport need a little", I feel you should be hard to meet these problems, the most direct may have problems or your drawing details

Is my texture the possibility of a problem is big, or the possibility of shader code out of the question,


Shader code and texture so point operation, it is not easy to a problem, may be something wrong in your drawing process, such as context, binding and create buffer, how to draw, I don't know you, if you can you send the demo to me, I can help you to have a look at

Convenient to send you, thank you, how to contact you
  •  Tags:  
  • Qt
  • Related