Sign in to follow this  
Followers 0
debarra

OpenGL
OpenGL in Java

7 posts in this topic

I have been trying to learn how to use OpenGL with Java, primarily using LWJGL. The only problem is that I can't find many tutorials for it. I was wondering if it was possible to learn OpenGL using other language tutorials. I mean would the C++ tutorials be usable for Java, with a little modification.
0

Share this post


Link to post
Share on other sites

[quote name='debarra' timestamp='1357225511' post='5017127']
I was wondering if it was possible to learn OpenGL using other language tutorials.
[/quote]

If you want to learn OpenGL then language shouldn't matter anyhow. In your case since you will porting most code from C++ to Java for trying things out, it sounds even more convenient.

1

Share this post


Link to post
Share on other sites

Yep you can. I'm currently learning with arcsynthesis.org/gltut book, which uses C++.

 

I started with LWJGL Wiki tutorials that teach you how to draw a textured quad so I could grasp better how the Java -> OpenGL communication works, which means dealing with some Java Native Interface stuff (ie, using FloatBuffers for sending data).

 

After that I started implementing with LWJGL the things I learned in the Arcsynthesis book. Currently I have perspective, rotation and translation matrices working and I was going to implement a proper camera and implementing rotations with quaternions (all explained in the book for OpenGL 3.3).

Edited by TheChubu
1

Share this post


Link to post
Share on other sites

I am using the LWJGL tutorials on NEHE now, thanks. I wonder though if OpenGL in Java would be powerful enough for something like a 3D multiplayer game or will it be as powerful as OpenGL?

0

Share this post


Link to post
Share on other sites
I am using the LWJGL tutorials on NEHE now, thanks. I wonder though if OpenGL in Java would be powerful enough for something like a 3D multiplayer game or will it be as powerful as OpenGL?

"OpenGL in Java" *is* OpenGL. It doesn't matter which language you happen to use it from. All OpenGL bindings end up using the same system drivers. For a well-known example of a Java OpenGL game, check out Minecraft.
1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0