Archived

This topic is now archived and is closed to further replies.

JavaDev

OpenGL for Java?

Recommended Posts

Well, I''ve gone through the excellent tutorials on NEHE''s site and since my main programming language of choice is Java I started looking at Hodglim''s ports of the tutorials to Java... One problem I''ve found with the implimentation of GL4Java is that all source code involves OpenGL usage in Java Applets. While Hodglim''s port was excellent, I want to break these out and create java applications as opposed to applets(If I want to develop a quick demo or something in Java I would rather not use something tied to a browser). To get to the point of this post: Has anyone had luck implimenting OpenGL as a java application? Is there a better API thats more flexible than GL4Java? And finally, source code would be greatly appreciated if any of you have successfully ported NEHE''s tutorials or anything else for that matter as a Java application...

Share this post


Link to post
Share on other sites
How about trying to download the Java3D opengl SDK from SUN?

(check http://java.sun.com/products/java-media/3D/index.html and be sure to grab the 1.4 beta 3 SDK while you are there)

Share this post


Link to post
Share on other sites
I would suggest grabbing jre 1.4b3, the prerelease 2.8.0.8 of GL4Java and Java3Db1. NIO is a big help speed wise. OpenGL works just fine through either of these api''s. They also work just fine in jframes. Just remember that java3D is a scenegraph api sitting on top of opengl or dx so if you want actual opengl calls you have to use gl4java.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato

Share this post


Link to post
Share on other sites
thanks guys...
help is much appreciated.

I''ll check those suggestions out soon....I''ve reverted back to ole Visual C++ for the time being....

Share this post


Link to post
Share on other sites
GL4Java is fine in full screen and as an application. *nods*

thats how I have been using it to do my demo''s. (basic though they are )

Share this post


Link to post
Share on other sites