Java Tutorial 09 – OpenGL and Java
This video looks at how we can use the OpenGL graphics library in our Java programs. This video was an entry in a competition on 3dbuzz.com. As such, it doesn’t flow on from the previous videos, just consider it a bonus.
Get the Flash Player to see this content.
Note that this video is 1024×768, so hit the full screen button to get more readable detail.
Notes:
This video is the property of 3DBuzz Inc. Jason and Zak have kindly given me permission to host it on this website. Because it is not owned by me, I would appreciate it if you did not distribute this video. Cheers!
Tags: 3dbuzz, java, jogl, opengl, Programming, tutorial, video

January 15th, 2009 at 10:10 am
I am the only one to comment for another awsome tutorial? WTF? Well then let me be the first to thank you for making this and the other AWESOME VTM!!!!!! U R the man! Yeah, a little hard to understand but hey, not only do I get to learn about the Java language, I become more cultured as well… sweet. Thanks again man. U R AWESOME!
January 19th, 2009 at 7:49 pm
good stuff
February 1st, 2009 at 9:18 pm
Hi, you should use setLocationRelativeTo() to centre the frame. If you pass in null it will automatically be centred.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html#setLocationRelativeTo(java.awt.Component)
February 2nd, 2009 at 2:56 pm
Hah, nice tip Mike!
I guess like most things in Java, there is a way to do it implemented in the API, you just have to spend the time going through the docs to find out how to do it!
Cheers
Michael
March 17th, 2009 at 3:29 pm
Great work on the videos. Keep them coming please!
April 2nd, 2009 at 5:36 am
more on java plz dunt stop…cheers
depending on u ……..wait………….waiting…………….and stil waiting…………..
August 25th, 2009 at 6:14 am
Hi Michael!
Your VTM tutorials really rocks!
I’ve enjoyed doing them all flawless until now. This VTM works just fine until I type the line “c = new GLCanvas();”. Then Eclipse won’t run it because it finds lots of errors. The error message goes like :
“Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper
at …
at MainFrame.(MainFrame.java:12)
at OpenGLDemo.main(OpenGLDemo.java:8)”
MainFrame.java:12 is “c = new GLCanvas();” and OpenGLDemo.java:8 is “final MainFrame frame = new MainFrame();”
What might be the problem and how should I do to get this to work? Until I type the line and declare the variable c, I get a grey centered window, but as soon as I declare it, it doesn’t work at all. Please help me Michael!
You’re the man!
September 13th, 2009 at 1:22 am
Please keep making vidoes, Michael. Much love from the Philippines.
April 7th, 2010 at 8:02 am
Hi!
I am new in Java and your videos are serving as the best intro for me.
I have entered into graphics and noticed that I need the graphics package but I have searched every where to no avail.
Please could you send me the complete graphics package?
I’ll prefer to receive it through my email.
Thanks for the marvelous work!