SFML community forums

Bindings - other languages => Java => Topic started by: Helios101 on May 09, 2014, 04:49:49 am

Title: .
Post by: Helios101 on May 09, 2014, 04:49:49 am
.
Title: Re: Incorporating OpenGL with JSFML
Post by: pdinklag on May 12, 2014, 10:05:05 am
Overkill posted a working example for LWJGL: http://en.sfml-dev.org/forums/index.php?topic=13740.0
There were (unresolved?) problems with the depth buffer it seems, but that shouldn't matter for 2D environments.

I also think that Groogy managed to get JSFML to work with JOGL, but I cannot find those posts back for some reason. Maybe he can post a short example somewhere for future reference. ;)
Title: Re: Incorporating OpenGL with JSFML
Post by: pdinklag on June 10, 2014, 06:28:32 am
LWJGL works very well for 3D environments, see Minecraft...

I'm honestly not sure what the better choice is, because when it comes to 3D, I'm not keen on any existing Java engine. LWJGL is used for Minecraft, so there you have a proof that it does work. JOGL seems to be for scientific purposes. Correct me if I'm wrong, but I haven't seen JOGL being used for games so far.
Title: Re: Incorporating OpenGL with JSFML
Post by: gouessej on July 25, 2014, 02:23:06 pm
Hi

JOGL seems to be for scientific purposes. Correct me if I'm wrong, but I haven't seen JOGL being used for games so far.
You're wrong as I already said here (http://en.sfml-dev.org/forums/index.php?topic=9223.msg100506#msg100506). JogAmp (JOGL, JOAL, JOCL) is used for games too, for example Salem, Poxnora, Cold Contract, ...


(http://i.imgur.com/qf5Z3.jpg)
There is an example of Minecraft-like game using a subset of Ardor3D with JogAmp here (https://github.com/gouessej/ArdorCraftAPITest).

(http://i48.tinypic.com/wl7zti.png)
Salem

(http://coffreajouets.com/images/screenshots/20050805mega.jpg)
Megacorps Online (discontinued)

(http://jogamp.org/jogl/www/media/jake2-160x160.png)
Jake 2

(http://www.coldcontract.com/ownby/img/map_isometric_team_assault_2.jpg)
Cold Contract

JogAmp and LWJGL aren't Java engines but rather sets of low level bindings with some utilities and helper classes. LibGDX is a middle level API for 2D and 3D. Ardor3D, JMonkeyEngine, Java3D, 3DzzD, Xith3D, Aviatrix3D, ... are 3D engines written in Java.

Good luck.