Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Best Java OpenGL Binding?  (Read 2724 times)
0 Members and 1 Guest are viewing this topic.
Offline dinaharchery

Junior Newbie





« Posted 2008-01-02 13:46:27 »

Hello all,

I am fairly new to the Java 3D Graphics environment and have a quick question:

What is the general consensus as to the best Java OpenGL Binding as far as efficiency and operations available?

I hear different opinions as to JOGL or Java3D.  I would like something that meshes well with the Java Swing API.

Thanks.
Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2008-01-02 14:44:56 »

The choice is between LWJGL and JOGL; Java3D is a scene graph. Functionally LWJGL and JOGL are more or less identical. I use LWJGL.

Cas Smiley

Offline bienator

Senior Member




OutOfCoffeeException


« Reply #2 - Posted 2008-01-02 16:09:05 »

  I would like something that meshes well with the Java Swing API.

If you want to mix Swing/Java2D with OpenGL I would recommend JOGL for you as low level binding. Just browse through https://jogl-demos.dev.java.net/ there should be a webstartable demo which demonstrates the interoperability between the APIs.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #3 - Posted 2008-01-02 17:29:28 »

I have used both JOGL and LWJGL and have both of them working in my engine, what I can say is that JOGL forces you to have a particular class architecture because of the GLEventListener...

You might like JOGL's GLEventListener as it interoperates with the AWT thread quite nicely if you want that stuff. It allows you to have Swing components and the like. LWJGL isn't dependant on AWT's thread for its rendering and hence its slightly more flexable, but doesnt have this Swing components (It does have an AWTGLCanvas)

You have parties for both, pick one, try it, change to the other, try it and see what API you like...

DP Smiley

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #4 - Posted 2008-01-02 17:52:54 »

Has anyone actually released a commercial game with Jogl yet?

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #5 - Posted 2008-01-02 19:26:07 »

Wurm Online uses JOGL

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Online Riven
« League of Dukes »

JGO Overlord


Medals: 794
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #6 - Posted 2008-01-02 19:30:36 »

I think most games use LWJGL, as LWJGL is designed with games in mind.

JOGL is more used when 3d-acceleration is required inside a GUI.



... I think ...

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #7 - Posted 2008-01-02 23:33:08 »

Wurm Online uses JOGL
I was about to say that they're still a free game, but having a look they seem to be charging for stuff now, so they must be doing pretty well.  Grin

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
8: Undefined index: online
File: /home/jgo/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 151