Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with Qt + OpenGL

Tags:

qt

opengl

I want to develop projects based on the 2010 edition of OpenGL's Superbible with Qt. I want to do things like move lights, change their color, activate/deactivate textures, etc. Simple stuff. The Qt documentation I have found so far has been overwhelming. Where can I find a simple tutorial suited to my simple needs?

like image 385
andandandand Avatar asked Apr 16 '11 00:04

andandandand


3 Answers

Have you done any work with OpenGL yet? I know this isn't the answer you want to hear, but I find the newest version of OpenGL to have an extremely steep learning curve. I strongly suggest learning OpenGL 1.x with "direct mode" (glBegin, glEnd calls), then learning about vertex arrays and display lists, and then vertex buffer objects and index buffer objects, and finally shaders.

NeHe has some excellent tutorials to get you started on OpenGL 1.x, and after playing with that for a week or two, it's usually pretty easy to learn about VA's, DL's, and then VBO's. Shaders are pretty hard and actually have their entire own language (GLSL). After you understand all that stuff, you can probably move on to the latest OpenGL stuff a lot easier.

If you're looking to "skip" straight to the latest OpenGL 4.x stuff, Swiftless tutorials will get you started, but again, it's an extremely steep learning curve.

Good luck!

like image 94
Andrew Rasmussen Avatar answered Nov 02 '22 23:11

Andrew Rasmussen


Have you tried the Qt OpenGL examples here?

Maybe you will find something useful in there.

Good Luck!

like image 29
snoofkin Avatar answered Nov 03 '22 01:11

snoofkin


You might be interested in this: http://www.libqglviewer.com/

like image 30
nephewtom Avatar answered Nov 02 '22 23:11

nephewtom