Jump to content
  • Advertisement
Sign in to follow this  
Funkymunky

Java for graphics?

This topic is 4464 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm thinking about using Java for programming web applets. How is java for graphics? Can you do 3D in Java? Can you use something like DirectX or OpenGL? And my biggest question, can you do shaders?

Share this post


Link to post
Share on other sites
Advertisement
I beleive Java3D is what your after. I last used it years ago, whether is it is still actively supported/developed I don't know.

I assume you could call native C++ openGL or D3D code from a Java application, but not from a applet.


Share this post


Link to post
Share on other sites
Quote:

I'm thinking about using Java for programming web applets. How is java for graphics?


Just fine. You ask specifically about shader support. When it comes down to an application that uses programmable hardware shaders, you are most certainly limited by your graphics hardware capability. Java is not a limiting factor in this case.

Quote:

Can you do 3D in Java? Can you use something like DirectX or OpenGL? And my biggest question, can you do shaders?

Yes, yes but no DirectX, and yes. Check out LWJGL or JOGL. I prefer LWJGL as the more mature OpenGL api, but JOGL is quickly gaining ground. Add to that, in Java 6 JOGL will be core API, and is maintained actively by Sun, and it is a very attractive offering. Both APIs have full (AFAIK) OpenGL 2.0 support including FBOs, Vertex/Pixel Shaders, etc.

Quote:

I beleive Java3D is what your after. I last used it years ago, whether is it is still actively supported/developed I don't know.

Last I knew Java3D was dead and a complete abomination. Upon further investigation, it seems it is now a community-led project. Doesn't seem to be a viable choice.

Quote:

I assume you could call native C++ openGL or D3D code from a Java application, but not from a applet.

This is how LWJGL and JOGL both operate. However, both APIs can be used from an applet. JOGL has mature applet support, LWJGL added support in the last version. Both have signed binaries, security is not an issue.

For future questions I'd head on to the Java Development forum here on gamedev, lest someone will come in here and say you absolutely must use C for any project with three dimensions in it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!