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: , , , , , ,

9 Responses to “Java Tutorial 09 – OpenGL and Java”

  1. Seth Says:

    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!

  2. Me Says:

    good stuff

  3. Mike Says:

    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)

  4. Michael Says:

    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

  5. Ty Says:

    Great work on the videos. Keep them coming please!

  6. jason Says:

    more on java plz dunt stop…cheers
    depending on u ……..wait………….waiting…………….and stil waiting…………..

  7. Richard Storm Says:

    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!

  8. Mayleine Olfindo Says:

    Please keep making vidoes, Michael. Much love from the Philippines.

  9. Stanely Says:

    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!

Leave a Reply