Qt5.12.9: Example:OpenGL/Cube doesnt work
-
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 :)
-
There are more than just the header and code files for that project. Did you take the shaders and images into account ?
-
wrote on 26 Aug 2020, 19:40 last edited by
What do you think? How should it work without shaders? :D
Of corse.As I say it:
It works. Thanks for the link... -
@DaJose said in Qt5.12.9: Example:OpenGL/Cube doesnt work:
Okay, all fine. I made it work with VC2017 with Qt 5.14.2.
I am happy now :)
That was not your original message. You wrote that it was working with Qt Creator but not VS2017, hence my question about the other files of the project.
Anyway, glad you got it working.
-
@DaJose said in Qt5.12.9: Example:OpenGL/Cube doesnt work:
Okay, all fine. I made it work with VC2017 with Qt 5.14.2.
I am happy now :)
That was not your original message. You wrote that it was working with Qt Creator but not VS2017, hence my question about the other files of the project.
Anyway, glad you got it working.
17/24