Java and Opengl


i want now to use Opengl with Java.
how to begin correctly ? what headers to include ?

thank you in advance,


1.) Use Java3D

2.) Use GL4Java

I would go for GL4Java though…

why this one and not the one from java ?


I think Java3D is not OpenGL. It is a higher level API that uses OpenGL (and/or DirectX?) to implement its functionality.

Java3D is a high-level scene graph API, like OpenInventor. I hear they’re great if all you are doing is scene graph applications, but you’ll obviously have to use their scene-graph format, so if you ever change to a new API you’ll have to change your application code.

Do a search on for “OpenInventor vs. OpenGL” and you’ll probably find some good discussions on this topic.