Bringing Mapbox Maps SDK to JavaFX?

Michael Paus mp at jugs.org
Fri Dec 20 07:44:14 UTC 2019


Hi,

I'd be much interested in getting mapbox-gl-native running in JavaFX
and using the WritableImages/BytBuffers approach is probably the
easiest way to get that going if you already have a C++ GL renderer
and the performance is really good.

I myself helped to get the VLC video player working that way in JavaFX
and have a few simple examples here:
https://github.com/mipastgt/JFXToolsAndDemos

My VLC integration proposal is now also incorporated in the official 
JavaFX binding.
https://github.com/caprica/vlcj-javafx

Another interesting project, especially for GL integration, can be found 
here:
https://github.com/miho/NativeFX
You probably should have a closer look on that.

The ultimate solution from a performance point of view would be this:
https://github.com/eclipse-efx/efxclipse-drift
but that approach does not use the image approach and uses internal API.

If you have further questions, don't hesitate to ask and keep me informed
about your progress. I'd also be interested in some early testing if you 
like.

Michael



Am 20.12.19 um 04:01 schrieb Antonio Zugaldia:
> Hey all,
>
> The recent progress in improving native rendering by supporting
> WritableImages backed by NIO ByteBuffers has motivated me to investigate
> the possibility of bringing the Mapbox Maps SDK to JavaFX.
>
> For context, this is a map rendering SDK that is used today by many
> different companies on mobile (https://github.com/mapbox/mapbox-gl-native).
>  From a technical perspective, we have a native C++ GL renderer which is
> exposed on Java via good old JNI. On Android we render on a GLSurfaceView.
>
> The question for this group is if there're any examples or docs that we
> could check out to understand the best way to render over a JavaFX surface
> (assuming that the new ByteBuffers-based API is the right path).
>
> Thanks all for your work and guidance,
>
> A.
>



More information about the openjfx-discuss mailing list