Skip to main content
gamedev.net
🔒 Locked

[java] which graphics api

Started by rangler Feb 27, 2005 at 5:29 PM 4 replies 1.2k views
Original Post
rangler
rangler
Java has finally evolved enough to gain my interest. I am slightly confused though. I am interested in making 2D games but which graphics api (Java2D, JAI, ect...) is best for displaying images/transformations/special effects? Which is the one I should devote my time to learning?
//My SignatureString sig = "Rangler";System.out.println(sig);
Addictman
Addictman
Judging from the way you started your note, I will make an assumption that you are fairly new with Java. If you are familiar with OpenGL, you might want to use JOGL. If not, Java2D would be my choice. Using it will teach you alot about java itself, not only its graphics, - how things work and how they don't. In addition, there are heaps and heaps of resources on Java2D and game programming, including a couple of decent books. You can go a long long way in creating 2D games with Java2D. I've never needed anything else for pure 2D.



Book 1:

Developing Games in Java

Book 2:
Killer Game programming in Java
Development blog, The Omega Sector -- http://www.omegasector.org
aaroncox1234
aaroncox1234
I don't know enough about Java to recommend anything, but you should DEFINATELY check out this site.

[EDIT] oops, beat to the punch!
-------------------------------See my tutorial site: Click here
TheBluMage
TheBluMage
If the special effects you mentioned are important, 2D programming in 3D might be right for you, as you can use the graphics hardware to very quickly and efficiently create effects that would take a long time to write and execute in 2D. Of course, you'll sacrifice some simplicity (in some areas) and perhaps a little compatibility, but depending on your needs that may or may not be important. For 3D programming (which I've never done in Java so take this with a pinch of salt) JOGL seems to be quite popular. For 2D (and I say this from personal experience) the Java2D API seemed very programmer friendly and Sun's tutorials are very helpful. If you're just starting with Java, you probably should start with Java2D just to get a grasp of how Java works, and then if that suits your needs stick with it, if not move onto a 3D alternative.
rangler
rangler
Thanks for pointing me in the right direction.
//My SignatureString sig = "Rangler";System.out.println(sig);
capn_midnight
capn_midnight
use Java2D, it is distributed with the JRE, unlike JOGL or other libraries. Java2D does plenty of good stuff like image rotation. Check my showcase for a game I made with Java2D (Showdown).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.