English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm making a web-based Java application and I'm using Java 3D for my graphics. It's like RuneScape. If you don't know what that is, then head over to www.runescape.com and check out a screen shot or 2. I believe that's OpenGL. I learned that Java 3D can support OpenGL or Microsoft Direct3D. If I'm developing a web-based Java game (with possible millions of people, hundreds of thousands playing at one time, which one should I use? (OpenGL or Direct3D?) Thanks.

2006-10-30 10:14:49 · 5 answers · asked by Need answers! 1 in Computers & Internet Programming & Design

5 answers

I agree that for portability, you should use OpenGL. As usual, the Microsoft product offers nothing over the open standard, and is really just an attempt to take control of a market.

However, you might want to consider JOGL, a java binding for OpenGL. You'll almost certainly find that this solution yields better performance than Java3D, but does less for you. You'll be talking straight to the graphics card.

On the other hand, I believe that users must currently install JOGL, which may not be true of Java3D. (?) Eventually, though, Sun intends to build it into Java, so this may not be a big deal, depending on your timeline.

2006-10-30 10:56:37 · answer #1 · answered by arbeit 4 · 1 0

Java3D is a standard extension API. It is implemented on top of OpenGL or Direct3D. You program to Java3D, not to the underlying implementation graphics api. On Windows, you have the option to configure for either OpenGL (if it is installed) or Direct3D.

To take advantage of the native APIs, you need to go beyond Java3D, using something like JOGL (Java binding to OpenGL), LWGL, etc.

You can always write your game in Java3D and test it out on Windows configured first for OpenGL and then for Direct3D. If neither satisfies you, then you can look at "enhancing" your game graphics by using JOGL.

2006-10-31 02:06:38 · answer #2 · answered by vincentgl 5 · 0 0

If you want it to work natively on Mac and Linux, go with OpenGL. The internals of DirectX/Direct3D are proprietary to Microsoft.

Moreover, if you are going to learn one or the other, OpenGL would make you more versatile in terms of what platforms on which you can develop.

2006-10-30 18:19:16 · answer #3 · answered by Mark 2 · 0 0

Check out these sites

http://gearsofwar.fanspeak.net/?c1918_52...
http://mastersofhorror.fanation.com/?c19...

2006-10-30 18:16:24 · answer #4 · answered by Locomoco 1 · 0 0

www.javahelp.com

2006-10-30 18:16:37 · answer #5 · answered by Anonymous · 0 1

fedest.com, questions and answers