Login  Register

JOGL/JavaFX integration and the future

Posted by Qu0ll on Feb 19, 2013; 6:33am
URL: https://forum.jogamp.org/JOGL-JavaFX-integration-and-the-future-tp4028263.html

Oracle has just released the first version of JavaFX that includes proper 3D support.  This support is very rudimentary when compared to the full support offered by JOGL but it does raise a few questions.

First, I am interested in what can be done integrating JavaFX and JOGL.  JavaFX has many nice features that would be useful to integrate with JOGL such as advanced media support, hardware accelerated 2D rendering, WebKit, sophisticated binding etc.

Specifically I am thinking about what could be done by perhaps rendering a 2D scene in JavaFX and applying this scene in JOGL by using a texture on some 3D object or surface.  In particular, text rendering is problematic with OpenGL and JavaFX has good text rendering support.  Would it be possible/feasible for text and 2D shape rendering to be done in a offscreen buffer in JavaFX and then used in JOGL by using the "snapshot" feature of a JavaFX node?  I am concerned that this method would not be particularly performant but may have some benefits.

Also, the video and audio support in JavaFX is more advanced than that in JOGL e.g. there is no audio support in GLMediaPlayer yet.  Could the media player in JavaFX be used to render the video and then the current frame applied as a texture in JOGL?

The support for 3D functionality will continue to develop in JavaFX but will probably always lag behind that in JOGL.  For this reason I believe that JOGL will always have a place and, ideally, JOGL and JavaFX could be used together.  Have the JogAmp team considered this integration and the possible convergence of 3D features in these 2 products?

Thanks,

-Qu0ll