RSS/Atom feed Twitter
Site is read-only, email is disabled

Rendering GIMP widgets entirely in OpenGL/FBO?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Rendering GIMP widgets entirely in OpenGL/FBO? Martin Spindler 16 Aug 18:27
  Rendering GIMP widgets entirely in OpenGL/FBO? Øyvind Kolås 16 Aug 18:53
   Rendering GIMP widgets entirely in OpenGL/FBO? Martin Spindler 16 Aug 19:16
Martin Spindler
2010-08-16 18:27:35 UTC (over 14 years ago)

Rendering GIMP widgets entirely in OpenGL/FBO?

Hi there,

this is my first contact to GIMP/GTK+ from a developer's point of view.

For a research project I need to be able to render UI widgets/palettes of a graphics editor (like GIMP) entirely in 3D space. In other words, I would like to apply 4x4 Matrices (rotation, translation, shearing) onto the widgets' bounding rectangles and then render these transformed rectangles directly in 3D space and texture them with the widgets' content.

I have found a very exciting example for Qt (see [1] or [2]) which exactly demonstrates this. However, unfortunately, I could not find an open source Qt-based graphics editor that comes close to the features of GIMP... :-).

Now, my question: Does anybody of you have knowledge about whether and how I could do something similar in GTK+/GIMP? A small test example would be great. Of course, I already did a little research and came to the conclusion that maybe a combination of GIMP, cairo and glitz might be an excellent starting point. What do you think? Is it possible to render GIMP/GTK+ widgets entirely in OpenGL, e.g., via FBOs?

My environment of choice would be MS VS 2008/Win32, but I could also live with mingw or even Linux (I would definitively prefer the first option, because this is our lab's standard).

Cheers, Martin.
[1]
http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-opengl/ [2]
http://labs.trolltech.com/blogs/2008/12/02/widgets-enter-the-third-dimension-wolfenqt/

Øyvind Kolås
2010-08-16 18:53:35 UTC (over 14 years ago)

Rendering GIMP widgets entirely in OpenGL/FBO?

On Mon, Aug 16, 2010 at 5:31 PM, Martin Spindler wrote:

this is my first contact to GIMP/GTK+ from a developer's point of view.

A GTK+ mailing list would probably be more appropriate than the gimp-developer mailing list :)

For a research project I need to be able to render UI widgets/palettes of a graphics editor (like GIMP) entirely in 3D space. In other words, I would like to apply 4x4 Matrices (rotation, translation, shearing) onto the widgets' bounding rectangles and then render these transformed rectangles directly in 3D space and texture them with the widgets' content.

You can do this by combining Gtk+ and Clutter. Clutter is a 3d scene graph library based on the same technologies GTK+ is built from. Clutter-GTK is an intergration library that allows you to place GTK widgets inside a ClutterStage (scene graph), as well as use ClutterStages as GtkWidgets. Both Clutter and Clutter-GTK are available from http://clutter-project.org/

/Øyvind K. --
Intel Open Source Technology Centre

Martin Spindler
2010-08-16 19:16:10 UTC (over 14 years ago)

Rendering GIMP widgets entirely in OpenGL/FBO?

Hi Øyvind,

thanks a lot for your fast reply and pointing me to the clutter-project. This really looks like I was looking for.

On 16.08.2010 18:53, Øyvind Kolås wrote:

A GTK+ mailing list would probably be more appropriate than the gimp-developer mailing list :)

I am sorry for this, but I was interested in rendering standard GIMP-Widgets/Palettes in particular...

Kind regards, Martin.