Can I use OpenGL in my Java applications? If yes, how?

18,905

Solution 1

Yes, there are lots of ways to use OpenGL in Java. For example:

http://en.wikipedia.org/wiki/Java_OpenGL
LWJGL

EDIT

Additionally, since you're new to programming. You may want to get a handle on some of the basics of programming before taking on 3D graphics. I've got a friend who is new to programming started on these tutorials. No verdict on how good they are yet, but should make a good start.

Solution 2

I like LWJGL, it's got several ways to make life just that little bit easier for game developers. Just bear in mind that 3D graphics is pretty daunting. Don't be discouraged if you don't get the camera pointing the right way on your first try.

Solution 3

Yes, and you probably need to setup JOGL in eclipse.

Solution 4

The kits mentioned so far, LWJGL, JOGL are good suggestions.

If you are just looking to play around and make neat things I suggest looking at JMonkeyEngine. It won't get you as close to the metal as the other libraries but you can jump into making something neat a lot quicker then the raw API's.

Solution 5

Answer is simple, you can use JOGL.

Share:
18,905
oktalBlizzard
Author by

oktalBlizzard

Updated on June 04, 2022

Comments

  • oktalBlizzard
    oktalBlizzard almost 2 years

    I want to start creating some 3D software for Linux, and heard that OpenGL is the library of choice for Linux 3D development.

    Is there any way to use it with Java? if yes, how?

  • House
    House almost 13 years
    Personally I'm using LWJGL. I'd say it's nice to use, and would recommend it. However I haven't used other options much more than setting up basic scenes when I was researching which one to go with.
  • oktalBlizzard
    oktalBlizzard almost 13 years
    thanks, good answer and great tutorials
  • oktalBlizzard
    oktalBlizzard almost 13 years
    thank you, I will definately check it out
  • reccles
    reccles almost 13 years
    And after you are done with that check out nehe.gamedev.net for OpenGL tutorials. Mostly in C, but there are Java attached examples as well.