Using an external context

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using an external context

herve
Hello,

After the very efficient help I had from the devs about using (in a Swing hierarchy) an OpenGL context created by an external C/C++ app in JOGL , I felt I had to update you on where we are now. In short, it's very good!!

First our initial textured mode: What we are doing is create a Swing structure inside the GLJPanel, and directly call paint on the top of our structure on a Graphics2D which in fact write in a JOGL Texture. After we end drawing the Swing tree, we render the texture on the OpenGL context in JOGL too. It worked in JOGL 1.1.1, and after we understood that we had to populate the Swing hierarchy BEFORE gettting the context, all was working much much better ;) Now it work as well as it worked in JOGL 1.1.1 using the last autobuilds

Second the direct (and more efficient) OpenGL calls for painting the Swing hierarchy, using the Java2D bridge maintained by Brandon Borkholder: http://github.com/brandonborkholder (thanks a ot Julien). Here it's also going in the right direction: we paint "almost" correctly the Swing hierarchy (except that because we reuse for the moment much of the wrapper code we used for the textured approach, it's upside down, but it's not a big deal).

I'm sure there are some cases where it does not paint correctly, we will update Brandon of the problems / solutions we may find, and new features we will find interesting.

Our project is here : http://sourceforge.net/projects/j661/. Source code will be shortly updated to reflect the progress I mention here.

IN short, again a JOGL victory ;)

Herve
Reply | Threaded
Open this post in threaded view
|

Re: Using an external context

gouessej
Administrator
Hi

I'm glad for you. It would be fine to have a synthetic example that we could put into the wiki.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Using an external context

herve
As soon as our code is stabilized (if all goes well within a week), I will do it !

Sent from my iPhone

On 5 avr. 2012, at 09:29, "gouessej [via jogamp]" <[hidden email]> wrote:

Hi

I'm glad for you. It would be fine to have a synthetic example that we could put into the wiki.


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Using-an-external-context-tp3885682p3886516.html
To unsubscribe from Using an external context, click here.
NAML