Diving into the OpenGL pool...

So, does anyone know any good resources for OpenGL programming under KDE? I've started looking at the Qt OpenGL examples, and that seems straightforward enough.

However, Someone at the dot told me about the Coin project, which is an implementation of SGI's high-level Open Inventor API for OpenGL. Even better, they have a library called SoQt which is supposed to let you easily make openGL Qt apps. I'd really like to try to use SoQt for KStars, but from what I have read so far, it isn't very flexible. You have to place "SoQt::init(argc,argv)" inside your app's main function, which instantiates a main window for drawing OpenGL stuff. This would seem to preclude making the window a KMainWindow. Is there a way to use SoQt to just make a widget, instead of a toplevel window? Also, it wasn't clearly stated, but I got the impression that it wasn't supported under Qt 3.x yet. Can anyone confirm/refute that?

Is it possible to just use Qt's QGLWidget and then make calls to coin's Inventor API, or do I have to do coin all the way?

I'd love to hear people's thoughts and opinions on SoQt, QGLWidget, GL vs. GLUT, ar any related options that I have yet to discover :). Thanks!


although I have not used this library yet, by skipping over its documentation it should be possible, check this out:


By stephan at Thu, 10/02/2003 - 22:34

I've been coding a 3d CAD project using KDE. My strategy up to now has been simply to create a widget inheriting from QGLWidget and reimplementing paintGL(); everything else works from my point of view very similar to OpenGL over raw glx.

My project is at http://sourceforge.net/projects/elcad

Feel free to check it out and contact me for any aclaration. The relevant code is on the kfandangowidget.(h-cpp) files.

By j_soffer@elcad.... at Fri, 10/03/2003 - 01:37

The boson project (boson.sourceforge.net) has coded an open GL game completely under KDE. Maybe interesting to ask them how did they do.

By lc at Fri, 10/03/2003 - 08:53

I guess it could work with a KDE application framework if you use SoQt::init(QWidget*) instead.

By krake at Sat, 10/04/2003 - 12:44

> but I got the impression that it wasn’t supported under Qt 3.x
> yet.

It should work with QT 3.x.

By arved at Wed, 10/08/2003 - 15:00