Posted by
Sven Gothel on
Feb 19, 2013; 8:35am
URL: https://forum.jogamp.org/JOGL-JavaFX-integration-and-the-future-tp4028263p4028266.html
On 02/19/2013 07:33 AM, Qu0ll [via jogamp] wrote:
> 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.
Can you pls provide a URL to the source code, assuming you refer to
the OpenJavaFX portion .. anything else might not be of interest.
>
> 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.
If those features are accessible w/o the need to use their
'renderer' .. sure .. why not ?
>
> 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.
Well .. for sure it is possible to use offscreen image data
to swap back/forth .. however, this is hardly high performance.
>
> 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?
Well, we 'only' miss the JOAL integration, which will be done
after some JOAL fixes have been made.
Further more, we like to bundle a libav pre-build
to have a higher availability on Windows/OSX.
I cannot speak about JavaFX.
>
> 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?
The only product visible to me are some mercurial repos about OpenJavaFX.
Well, it's not us who hinder any migration, our sources are available
and even if a patch may take a while (.. week) .. it eventually gets merged.
So for OpenJavaFX I would be interested personally if a Maya importer is available
or indeed maybe WebKit. But for some reason I guess that
all the 'nice' modules are available in the proprietary version :)
If somebody in this forum is able to enlight us on the issue .. please go ahead.
>
> Thanks,
>
> -Qu0ll
Cheers.
~Sven