[quote]why should someone learn the LWGJL api instead of OpenGL?
[/quote]
There’s no such thing. If you use LWJGL for openGL then you learn the openGL api and anly access it through LWJGL.
[quote]What does Java add to the game programming?
[/quote]
It does not add to the game programming, it IS the game programming. Remember that openGL is just about rendering, not game programming.
[quote]then one can easily do that with jni
[/quote]
That’s exactly what LWJGL does. And I’m glad it’s already done and available for us all and that I don’t have to redo it myself. It saves me a lot of work.
[quote]and when new ones come out, they don’t have to wait on LWGJL
[/quote]
Well, it’s not like there’s new versions of openGL coming out every week. Besides LWJGL is very active and open source, so this is not really an argument.
[quote]So why should someone learn J3D?
[/quote]
J3D has lots of functionality that just openGL doesn’t have. It has a scenegraph, behaviours, lotsa other hard to code and mathematically complex stuff done for you.
Also, J3D is independant of the underlying rendering API.
However, it’s not specifically for games so one can expect a performance hit compared to coding a gamespecific scenegraph api on top of openGL.