Diving into the OpenGL pool...

    jason harris's picture
    2003
    2
    Oct

    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!

    Comments

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.
    arved's picture

    QT3

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

    It should work with QT 3.x.

    krake's picture

    Other init method

    I guess it could work with a KDE application framework if you use SoQt::init(QWidget*) instead.
    http://doc.coin3d.org/SoQt/classSoQt.html#d2

    lc's picture

    maybe boson...

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

    j_soffer@elcad.sourceforge.net's picture

    Using KDE+OpenGL right now

    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.

    stephan's picture

    yes it should

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

    http://doc.coin3d.org/SoQt/classSoQt.html#d2

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.