> I have an existing app written in Magician and Java3D, and we
> are moving away from Magician for obvious reasons. I know
> OpenGL well, but I haven't found a good description of the
> GL4Java framework on their website. JavaDoc and example
> programs are fine for some things, but a short and sweet
> programmers guide is better. Magician had a nice guide that
> described proper use of the Context class, the glComponent
> class, the internal debugging pipelines, etc. Does such a guide
> exist for GL4Java?
The best guide is currently the demos/ directory in the source
base. There are a lot of demos showing various features of the
library like animation and off-screen rendering. The relatively
recent GLEventListener interface is also demonstrated there.
This is the recommended way of constructing applications at this
point since it provides a framework in which the library can
function "guaranteed correctly" with no chance of
subclassing-induced bugs.
> Also, we did a quick and dirty port in GL4Java with what we
> knew, and our application freezes on Solaris 8 when you resize
> the window that contains the GL4Java canvas (sometimes, but not
> all the time). Anyone have this trouble as well?
Try upgrading to the latest version (2.8.2). Make sure your app
uses the GLEventListener interface rather than subclassing. I've
checked this with the NVidia demo (demos/NVidia/VertexArrayRange)
as well as the JCanyon demo
( http://java.sun.com/products/jfc/tsc/articles/jcanyon/ ) and
both can handle being resized without locking up the app. (Note
I'm running on Windows; there might be an X11-specific bug.)
|