Re: [Gimp-developer] Rendering GIMP widgets entirely in OpenGL/FBO?

2010-08-16 Thread Martin Spindler
  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.

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Rendering GIMP widgets entirely in OpenGL/FBO?

2010-08-16 Thread Øyvind Kolås
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
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Rendering GIMP widgets entirely in OpenGL/FBO?

2010-08-16 Thread Martin Spindler
  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/
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer