Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
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  
  Javafx vs libgdx vs LWJGL  (Read 1160 times)
0 Members and 1 Guest are viewing this topic.
Offline alphacoder

Senior Newbie


Medals: 1



« Posted 2017-08-16 10:21:20 »

Hello!

I wanna code games!

I was not into learning 3rd party game engine at all and do everything with JavaFX however after influence of other people from this board I changed my mind to actually use game library.






Question coming for you guys! Should I choose LWJGL or Libgdx (or somehting else?) if I wanna include use of JavaFX too?

Smiley because one might not be compatible with JavaFx..
Online princec

« JGO Spiffy Duke »


Medals: 974
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2017-08-16 10:26:22 »

You can use libgdx (or raw LWJGL) with JavaFX but it's not nice or pretty, and performance is only "adequate".

If you're going to make a UI-heavy game, use JavaFX.
If you're going to make a super awesome state of the art graphics heavy game, use LWJGL.
If you're going to make a game based on some pretty standard concepts like a sprite engine, animation, etc, use libgdx.

If you're targeting mobile, design for mobile first and foremost, and use libgdx.


Cas Smiley

Offline alphacoder

Senior Newbie


Medals: 1



« Reply #2 - Posted 2017-08-16 10:37:18 »

You can use libgdx (or raw LWJGL) with JavaFX but it's not nice or pretty, and performance is only "adequate".

If you're going to make a UI-heavy game, use JavaFX.
If you're going to make a super awesome state of the art graphics heavy game, use LWJGL.
If you're going to make a game based on some pretty standard concepts like a sprite engine, animation, etc, use libgdx.

If you're targeting mobile, design for mobile first and foremost, and use libgdx.


Cas Smiley

Ahh So you advise me to not use JavaFX at all. Im not sure what UI heavy means - probably that theres a lot of user interface components? LOL. no in my case it will be normal amount of GUI components.

I wanted to make 2d rpg. Isometric is fine but even something simpler than isometric (top-down view?) would fit me.  Not for android, but for PC, but if it ran on android and other platforms then it would be great!


PS I did not include many details but i wanted to make something SIMPLE that doesnt take me ages to publish. (im very bad at graphics/math and I dont believe I would be capable of making 3D RPG (im still a newb), while im a big fan of 2D games (especially isometric), they seem MUCH simpler to make and actually this is what I want to do.

In other words: isometric(or topdown) view 2D RPG that would run on all platforms if possible (or on windows if not possible). Does that mean LIBGDX?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Shatterhand

Junior Devvie


Medals: 5
Exp: 4 years



« Reply #3 - Posted 2017-08-16 10:50:19 »

I would advise you to use JavaFX, as you can do both 2D graphics and UI (and also simple 3D if you want to), all integrated into a stable and high-level toolkit. That will at least be enough for your first games.
LWJGL is very low-level, so only use it for heavy 3D games, as @princec said.
Libgdx also helps a great deal in the 2D area, when you want to do 3D, however, it's getting much more complicated.
Also, setting it up can be tricky for some.

Use JavaFX! Cheesy

Cheers

Micro$oft broke Volkswagen's world record: Volkswagen only made 22 million bugs!
Online princec

« JGO Spiffy Duke »


Medals: 974
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2017-08-16 11:27:26 »

I really like JavaFX but I've come across some real facepalming issues with it, mostly to do with performance... or lack thereof. It will get a lot faster - keep an eye on the JavaFX mailing lists for news on that horizon - but right now it isn't guaranteed particularly high or consistent performance. And it can't do any post-processing effects or fancy shaders either.

Cas Smiley

Offline KevinWorkman

« JGO Plugged Duke »


Medals: 270
Projects: 12
Exp: 12 years


HappyCoding.io - Coding Tutorials!


« Reply #5 - Posted 2017-08-16 14:52:43 »

The answer to this question depends more on you and your context than it does us and our preferences. Why don't you create a few simple applications in each and see which one works best for you?

HappyCoding.io - Coding Tutorials!
Happy Coding forum - Come say hello!
Offline Shatterhand

Junior Devvie


Medals: 5
Exp: 4 years



« Reply #6 - Posted 2017-08-16 16:06:14 »

Quote
I really like JavaFX but I've come across some real facepalming issues with it, mostly to do with performance... or lack thereof. It will get a lot faster - keep an eye on the JavaFX mailing lists for news on that horizon - but right now it isn't guaranteed particularly high or consistent performance. And it can't do any post-processing effects or fancy shaders either.

Yeah, I agree. JavaFX isn't super performant, but actually is good enough for simple games.
I'm a "ghost reader" of the OpenJFX mailing lists.  Cheesy
Sadly, you have no access to any of the deeper layers of the 3D API. And they don't plan on making that possible as they aren't planning to add more features to it…

But as I don't expect @alphacoder plans to use DoF or motion blur, he could use JavaFX Wink

Cheers

Micro$oft broke Volkswagen's world record: Volkswagen only made 22 million bugs!
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (110 views)
2017-09-30 02:57:34

theagentd (136 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (241 views)
2017-08-02 12:19:43

cybrmynd (240 views)
2017-08-02 12:18:09

Sralse (254 views)
2017-07-25 17:13:48

Archive (864 views)
2017-04-27 17:45:51

buddyBro (1008 views)
2017-04-05 03:38:00

CopyableCougar4 (1569 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!