Monday, February 22, 2010

JOGL Up and Running

Just completed the beginner's JOGL tutorial located here: http://www.land-of-kain.de/docs/jogl/. The tutorial was fairly recent but used JOGL 1.x. Several of the API calls in Java 2.x are slightly different but I was able to make my way around without much difficulty. The tutorial demo is available in my CVS repository under the TopPlot3D module, class edu.lmu.cs.lorenabrams.jogldemo.JoglDemo.

For the tutorial I hardwired my platform's (AMD64 Linux) .jar and .so files into my execution environment. My next step, however, will be to cross-platformify this process using Java Webstart, so everyone (or nearly everyone) will be able to launch the application without having to manually install the JOGL/OpenGL libraries and configure their runtime environments.

From the looks of things, the JOGL API's closeness to the C OpenGL API is as advertised, which will be much appreciated during TopPlot's development! Further, and much to my delight, it appears that JOGL provides some pretty neat utilities on top of standard OpenGL, including texture loading/mapping helper classes, and a frame-rate moderator.

Unfortunately my OpenGL is extremely rusty, so the ramp-up to full speed development might be rather lengthy, but I hope to be there within the next week or two.

Until next time!
Loren

No comments:

Post a Comment