UI recommendations

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

UI recommendations

kaffiene
Hi All

I'm looking for recommendations for UI toolkits to use with JOGL - in the context of an OpenGL based game.  I'm familiar with Swing so I thought the Newt/Swing bridge looked promising.  I thought that GLG2D looked promising also.  And I see that JOGL has a new Graph API that might be used for rendering buttons etc by hand?  Mostly I'd be looking at rendering some buttons and text fields and obviously hooking up something to process events from these.

Can you guys share with me any recommendations or comments on the status / capabilities / supported-ness of these projects please?  Of course, alternative suggestions would be welcome as well.

Thanks!

Kaff.
Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

Brandon Borkholder
I'm the maintainer of glg2d and I can comment on that. glg2d provides support for the majority of the painting operations you want to do with Graphics2D. It's still a work in progress, but it can handily render an entire Swing hierarchy. Unfortunately, there are limitations in Swing that really do require that you are running inside a Swing app. If your JOGL canvas isn't in a JFrame, it becomes very hard to render Swing components. We do have some support for that, but it's limited.
Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

gouessej
Administrator
In reply to this post by kaffiene
Hi

Some JOGL adopters still ask for some JavaFX/JOGL interoperability but I'm not very motivated to work on it.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

jmaasing
In reply to this post by kaffiene
There is also Nifty, I have used it a little in jMonkeyEngine projects and it works fine in that framework
I have not used it (yet) in a pure JOGL project. http://nifty-gui.lessvoid.com/
Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

kaffiene
In reply to this post by Brandon Borkholder
Brandon Borkholder wrote
Unfortunately, there are limitations in Swing that really do require that you are running inside a Swing app.  If your JOGL canvas isn't in a JFrame, it becomes very hard to render Swing components.  We do have some support for that, but it's limited.
I usually render inside a JFrame anyway, so that's no issue for me.  I'll give glg2d a go.

Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

kaffiene
*sigh*

Ok, I guess this marks me out as especially incompetent, but I can't build the GLG2D project.  I don't know why but I have NEVER had a Maven project build ever.

Is there somewhere I could download a jar from?
Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

Brandon Borkholder
The homepage for glg2d has a link to download the auto-build jars.  You can get the latest from http://brandonborkholder.github.com/glg2d/maven2/org/jogamp/glg2d/glg2d/0.3-SNAPSHOT/
Reply | Threaded
Open this post in threaded view
|

Re: UI recommendations

gouessej
Administrator
In reply to this post by kaffiene
Scene2D-UI (LibGDX) is very good too.

Nifty GUI is enough for games but not as a replacement of Swing.
Julien Gouesse | Personal blog | Website