View Full Version : OpenGl w/Java
03-27-2002, 05:16 PM
I am learning OpenGl in a class. We use MS Visual C++, or Unix C. I would like to write programs in JAVA using openGl. I also have JDK1.3 from Sun , and could get earlier JDKs. I have found nothing on the web that sounds like it would allow me to write OpenGl programs using Java. Can you help? I usually us Windows98 or 2000, but can also work on HUSUN3 machines. I'll do whatever I have to do to be able to use OpenGl with Java. Help! Harry
03-27-2002, 07:03 PM
I have not tried it but you could look at GL4Java.
I have seen other libraries for Java/OpenGL but this is the only one that I could remember off hand.
Also, if you want some tutorials, you could look at http://nehe.gamedev.net/
I think that some of the tutorials on Nehe's site have been ported to Java.
03-28-2002, 03:28 AM
Thanks! I have been to the GL4Java site and tried what I could. It looks to me like it's entire focus is on enabling browsers to us Java with OpenGl/Java code - but I could find nothing about allowing a JDK compiler to use OpenGL. It may be there somewhere, but nothing I read implied that to me. I need someone who has been down this route to show me the way.
Have you looked at Java3D? I believe its built on OpenGL libs.
Take a look at http://java.sun.com/products/java-media/3D/index.html
you might find this to be useful.
03-28-2002, 08:39 AM
I've spent a little time looking at Java 3D but assumed it was different enough from OpenGl that it would take a fair amount of additional learning time. I will look again with the idea that it may be a close cousin and the learning might not be so difficult. Thanks. I'm still hoping to find a way to use Java with a reasonable direct port of OpenGl. Harry
03-28-2002, 10:06 AM
Look at the following link for examples on using GL4Java to write OpenGL applications:
03-28-2002, 10:27 AM
I took a quick look at the HODGLIM site. It looks like it's dealing with exactly what I need to know. Thanks! Harry
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.