Qt5.12.9: Example:OpenGL/Cube doesnt work
-
wrote on 22 Aug 2020, 18:43 last edited by
Hello,
does anybody know why the example Cube in OpenGL doesnt work? I am getting only a black screen.
-
Hi,
Which OS ?
Which driver ?
Which graphics card ?
Do other OpenGL examples run properly ? -
wrote on 22 Aug 2020, 19:03 last edited by DaJose
Hi,
thanks for your response.
OS: Windows 10
Which driver: what you mean?
Which Graphic card: AMD Radeon RX 5600 XT
Do other OpenGL examples run: I can draw a Quad by using simply vertices. But it comes together with an IndexBuffer it doesn't work. So I tried to run the cube example what comes with IndexBuffer => only black screen
So its my goal to render a simple quad by using IndexBuffer -
@DaJose said in Qt5.12.9: Example:OpenGL/Cube doesnt work:
Which driver: what you mean?
The version of the driver of your card. If too old, it might break, sometimes, too new will as well.
-
wrote on 22 Aug 2020, 19:17 last edited by DaJose
Okay, I try to look for the newest. But I think I've got the latest driver.
So, I've installed the new driver but nothing changed. I only get a black screen
I' am using Visual Studio (c++) 2017
btw:
I only can answer after 10minutes :(No Error messages...
-
Any error message ?
-
wrote on 22 Aug 2020, 19:28 last edited by
No error message.
BTW:
I can only answer after 10 minutes... that sucks a little bit :/ -
Do the QWindow related examples work ?
-
wrote on 22 Aug 2020, 21:02 last edited by DaJose
Yes, this works:
You mean the QOpenglwindow example from the OpenGL examples? -
One thing that is missing from the example is printing errors in case something goes wrong in the initShaders method. I would add some debugging information there.
-
wrote on 23 Aug 2020, 08:45 last edited by DaJose
No error while compiling or linking or reading the shaders
-
wrote on 23 Aug 2020, 09:43 last edited by DaJose
Maybe you got a simple VC 20017 project rendering something using IndexBuffer?
Maybe something is wrong with the settings...Or I send you my project?
I have made a release and try to run it on another PC with the same result: just a blank black screen...
-
wrote on 23 Aug 2020, 11:38 last edited by DaJose
Update/Edit:
Now I've tested the Cube-Example with Qt Version 5.9.7 => it works!!It seems that Qt version 5.12. got a Bug when using IndexBuffer or something!!!
-
Then test a more recent version to see if it's working better.
-
wrote on 24 Aug 2020, 07:45 last edited by DaJose
Sure. But I use the precompiled version (Offline-Installer) and do not compile the source code. And Qt 5.12.9 is the latest release :/
-
Do you mean latest version of the offline installer ? IIRC, it should rather be 5.14.
-
wrote on 26 Aug 2020, 15:36 last edited by
Can you give me the link?
I only found this: https://www.qt.io/offline-installers -
-
wrote on 26 Aug 2020, 18:33 last edited by DaJose
Okay, I'm currently downloading it.
btw:
Works the OpenGL/Cube-Example on your side?
If the answer is yes: which system you are using? Windows or Linux? Which compiler? -
wrote on 26 Aug 2020, 19:02 last edited by DaJose
Okay, all fine. I made it work with VC2017 with Qt 5.14.2.
I am happy now :)
1/24