JavaFX 8 as 3D game engine?

Emax picture Emax · Apr 27, 2014 · Viewed 9.4k times · Source

I want to create an MMO 3D game and im looking for a 3D-Engine and my question is about javaFX 8, can i use it for render a lot of 3D cube, models and animation without lose performance or is best to use the lwjgl?

the final question is: javaFX 8 can be used as a 3D engine?

Answer

jdub1581 picture jdub1581 · Dec 26, 2014

To answer your questions:

Can i use it for render a lot of 3D cube, models and animation without lose performance?

This has for many people (I think) been a question ... and while there is no clear cut answer, there are ways to make it work.

For example I had recently built a simple Cloth-Simulator, (first Spheres for vertices, then an actual TriangleMesh) at first I took the approach of using an AnimationTimer for my update loop, it worked, but only up to a certain range of calculations.

My second approach was to create a Timer, using ScheduledService at a fixed timeStep interval and setting it to update the UI on completion.

I was able to almost double the number of vertices before performance started to sway. Which was quite an improvement, as I was able to have 20k vertices (not that I recommend it).

You can see the results here on youtube:

ProtoType 1

ProtoType 2

Finished MeshView

So really it is all a matter of how much time you wish to spend creating solutions.

Can javaFX 8 can be used as a 3D engine?

Once again, it really all depends on how much time you want to spend developing the framework. I have personally been trying to build a tool-set for this very purpose, not every thing pans out, but the journey is half the solution.

If you're interested in seeing my approach with the Cloth Simulation, you can find all the sources here: F(x)yzLib , as well as many other useful features/shapes etc...