PDA

View Full Version : java with openGL



janis926
04-12-2003, 04:22 AM
I'm the begineer of using openGL
what should i do if i use SDK java to use openGL
what are advantages and disadvantages for me to use java with openGL?
I know that there are a java 3d package for java , compare with openGL ,which one is better?

mikael_aronsson
04-12-2003, 09:18 AM
Hi !

If you want to use OpenGL with java I would suggest you try gl4java:
http://www.jausoft.com/gl4java.html

This is a JNI interface to java, Java3D is something completley different, it does not have much to do with OpenGL expect that you can run it ontop of OpenGL, but it also works on Direct3D, it is high level API with a complete scenegraph, you might be interested in it, but as I said it's a different thing working on a much higher level then OpenGL with scenegraph object loaders, behavior built in and so on.

Mikael

ribot
04-13-2003, 04:26 AM
I too, highly recommend http://www.jausoft.com/gl4java/ . I have found it very easy and logical to use. It is also very easy to package all the required libraries needed for viewing on any opengl based machine (with a copy a java runtime)...I use batch files to do this, and this removes the need for installation of any problematic extra libraries, setting extra paths in the classpath...blah..blah.. I strongly suggest you give it a try!

regards,

ribot.

[This message has been edited by ribot (edited 04-13-2003).]

04-13-2003, 02:46 PM
I can heartily recommend the "other" OpenGL binding for Java that is commonly used today - LWJGL:

http://java-game-lib.sf.net/

It is still in Alpha, but is maturing rapidly. Commercial-quality games are already being developed with it. I believe it currently supports the entire OpenGL 1.4 spec.

The purpose of the library is to turn a PC into a console - you get a full-screen OpenGL-capable window, OpenAL for audio and a collection of input APIs.