Java and OpenGL come together

I still think java is too slugish to be mainstream for any games.
I've seen a few that are built in java but they don't run well.
I'll have to wait for JavaOne. March 6th I believe it starts.
 
Last edited:
Nathan said:
I still think java is too slugish to be mainstream for any games.
I've seen a few that are built in java but they don't run well.
I'll have to wait for JavaTwo. March 6th I believe it starts.

NOPE.

Already 5 (five!) years ago my roomate and me we were sitting on a small OpenGL java game engine and wrote some code. (You know..the "never ever finished 'best game ever' project..." :)

The OpenGL performance of Java3D was STUNNING...and this was on P166 pentium and/or K6-2/400 mhz machines and TNT (even Riva128 PCI) graphic cards ! We rendered some terrain, trees...some VRML objects and stuff..there was not the SLIGHTEST stutter or anything...it was almost scary :)

This was the time about when Java3D first came out, i remember that the Direct3D version was VERY buggy....but OpenGL was a stunner !

I might not even IMAGINE what you could do now with Java2, the newest java3d api/opengl and a 1.7ghz machine w/ radeon 8500 !
 
Well I probably would not recomend java for writting games unless it is going to be purly online.... But as far as the slugishness of Java... It really isn't that bad AND there are ways around it.... You could always once it is written. you can compile it down native, needing only slight modifications to keep it cross platform(and a computer thats multibooting the OS's that you want to release it for) Once compiled down native it really is not all that much slower then C++ oh and of course IMO even still in byte-code it is still faster then VB which I'm sure your all aware has been used to make games..(I beleve that the Command and Conqure series was largly written in VB(don't quote me on that) I speculate this because on the CD the VB runtime libraries are there ane are installed with the Installation of the game (Including Renegade))..... Besides I like Java ALOT and would love to be able to write games with it... And I could go on forever ranting about Java..... IT RULES :)
 
Nocain said:
Well I probably would not recomend java for writting games unless it is going to be purly online.... But as far as the slugishness of Java... It really isn't that bad AND there are ways around it.... You could always once it is written. you can compile it down native, needing only slight modifications to keep it cross platform(and a computer thats multibooting the OS's that you want to release it for) Once compiled down native it really is not all that much slower then C++ oh and of course IMO even still in byte-code it is still faster then VB which I'm sure your all aware has been used to make games..(I beleve that the Command and Conqure series was largly written in VB(don't quote me on that) I speculate this because on the CD the VB runtime libraries are there ane are installed with the Installation of the game (Including Renegade))..... Besides I like Java ALOT and would love to be able to write games with it... And I could go on forever ranting about Java..... IT RULES :)

i have to say that i always (and maybe still) have some concerns with java..you mention the slugginesh and all that...even if i KNOW that it's not the case from my own experience. Especially now since the average system spec is far better than what it was..say 5 years ago....things dont matter anymore as they did when you only had like 32MB Ram or something :)

I think it comes all down on how well code is written....you can write bad code in assembler, C...and you can write bad/inneffective code in JAVA.

JAVA just has the image of "small apps running in webbrowsers"....and many associate it with that maybe..thus making the thought about games somehow odd...

I hadn't much a chance to do JAVA recently (totally missed out java2 and everything)...i am doing VB/ASP/C stuff now since that's what's wanted at work...but i have no doubt that you can do awesome things with JAVA like game engines etc. etc... people would be surprised :)

Btw. did anyone try out that flyby-demo on the link above ?

I had no time to download all the stuff (dialup :( )....i would have to download/install 1.4 runtime first (about 9megs) at my machine at home..then the demo and this (kinda bizarre) "webstarter"....and THEN downloading 20MB of game data...and that's also one example of overhead :)
Does it run with the radeon 8500 ?

Edit:

If i were to write/release a game..i ONLY would do a "Online Game" anyway...no matter how one defines "online game".

I think the time of "play alone on your computer"-games is LOOOONG gone...and (honestly) i am not that much interested anymore in games without any online/multiuser capabilities.....

Besides of this...proper OO coding (and i mean REAL, intelligent OO coding) is awesome and can lead to a lot...JAVA is very good if it comes to this.
 
Last edited:
Re: Java and OpenGL come together

ss1 said:
Check this demo out which written on the Java 1.4 SDK:


http://java.sun.com/j2se/1.4/demos.html


ss1.

dont waste your time downloading this...sorry..cr*p !

I spent like a few hours yesterday (dialup !) downloading jre1.4, downloading 20MB of "data" to get a look at the "jcanyon" demo.

Just to see the cr*ppiest flyby demo i have ever seen in my life !

3 thumbs down !
 
i'm not a big fan of j3d since it abstracts everything away from you. It stores your objects its way, and does its own collision detection, etc. That's good for some things, but to do anything really showy, i'd think you would want all the control you can have.
 
I am just starting to get into developing Java for Applications. I haven't yet touched Applets although I hear it's easy to convert an Application into an Applet. I agree that Java is never going to be fast as other programming lanuguaes but its key strength remains in that it can be executed on any plaform. Besides as a Student I don't think I can afford C# anyway ;). Unless they give the compiler for free ;).


ss1.
 
ss1, i got visual studio 6 for $20 from my school, so i would not be surprised if they gave hefty discounts to students for .NET as well. (the more people that learn programming on .NET, the more applications will be developed with windows in mind)
 
to Spite C# is free just download the framework sdk and it comes with the Command Line compilers for the .Net Languages and the documentation (140mb download or some crap though..... It's the IDE that costs the bucks but I think IDE's are over-rated when it comes to learning a language... When I started Learning Java My teacher I thought was a prick because he made us write everything in note-pad, I remember thinking What the hell kind of IDE is note-pad. Know I can do nothing but praise that teacher as I can out code most people in java who have been doing it longer than I, not only can I out code them But I can manipulate the language better and just have a better overall understanding of how stuffs works....

As for how feasable it is to make a Good Graphics Game in Java Maybe I'll work on something when I have some spare time... Should be soon Maybe Between my Spring & Summer simester break I will have time to work on something as I'll be Between Semesters and Between Jobs Then
 
i read, with great attention and interest, all your opinions about java associated with 3d.
Being a freshman majoring computer science at fitchburg state college, I had the chance to be oftenly in touch with java programming.
IMO, java is too sluggish to run 3D application fluently, but it remains a great language for applications.
My current java book contains 14 chapters. I have recently started to read the last chapter. Howvere my class is still at chap 5 except for one brilliant student who happens to be a good friend of mine.
Josh *his name* and myself always run into competitions to accomplish some specific programs * my daddy beats his btw :p*.
Our latest project is a ball generator into an applet.
The balls have collisions counter and detector.
Mine is somehow hal-way advanced *check it out here* and Josh is almost at the end of it :(
One day I'll be a game programmer and John Carmack would be my wife =P.....hopefully
 
Back
Top