LWJGL or JOGL ?

I want to begin to develop OpenGL/Java Games.I read that there are some OpenGL/Java APIs.Wich is the best?What is the differences?Thanks,t3chz0n3.brazil
[194 byte] By [techzone.brazila] at [2007-9-29 9:45:45]
# 1
OpenGL is included with the standard install. Other than that you never ever touch the raw API, thank God.
subnoizea at 2007-7-14 23:16:40 > top of Java-index,Other Topics,Java Game Development...
# 2
Sorry,I Didn't understand.Is An OpenGL lib included in the J2SDK?Or Do I need to use a 3rd part lib like LWJGL or JOGL?
techzone.brazila at 2007-7-14 23:16:40 > top of Java-index,Other Topics,Java Game Development...
# 3

You need a third party library. Use JOGL if you need AWT, multithreading and so on. Use LWJGL if you want extreme speed but single-threaded and without awt ( Cas, who is in charge of LWJGL makes a fair case that neither of those are needed for games writing) and excellent support from the development team.

_Breakfast_a at 2007-7-14 23:16:40 > top of Java-index,Other Topics,Java Game Development...
# 4
Thanks _Breakfast_,I'll try the LWJGL lib.But, Don't you think that MultiThreading is important?And, Are you using this lib?
techzone.brazila at 2007-7-14 23:16:40 > top of Java-index,Other Topics,Java Game Development...
# 5

> You need a third party library. Use JOGL if you need

> AWT, multithreading and so on. Use LWJGL if you want

> extreme speed but single-threaded and without awt (

> Cas, who is in charge of LWJGL makes a fair case that

> neither of those are needed for games writing) and

> excellent support from the development team.

Actually they are pretty much same. Speed difference is 1.02 or such. I run test aplication at 49.6 FPS in LWJGL, and 48.7 FPS in JOGL. (90 FPS in 16 bit depth.)

LWJGL has more static methods. JOGL has disadvantage in weird encapsulation.

I liked in documentation of LWJGL, If target system could do fullscreen mode it would run in fullscreen. If don't it would run in fullscreen anyway.

On other side JOGL could be shooted down without need of restarting your computer.

So try both. They are just way how can you acces OpenGL from Java so treat them as such.

Of course multithreading is EXTREMELY important for games. Well Cas is Cas, you know ~-^. I remmember when he had new JET pro and talked...

BTW (You should check thread priority in LWJGL, Or sleep properly.)

Raghar

Lord_of_the_chaosa at 2007-7-14 23:16:40 > top of Java-index,Other Topics,Java Game Development...
# 6
Lord of the chaos,Thanks for the tips!
techzone.brazila at 2007-7-14 23:16:40 > top of Java-index,Other Topics,Java Game Development...