From antonio at mapbox.com Fri Dec 20 03:01:09 2019 From: antonio at mapbox.com (Antonio Zugaldia) Date: Thu, 19 Dec 2019 22:01:09 -0500 Subject: Bringing Mapbox Maps SDK to JavaFX? Message-ID: 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. -- Antonio Zugaldia Mobile Engineering, Mapbox @zugaldia From mp at jugs.org Fri Dec 20 07:44:14 2019 From: mp at jugs.org (Michael Paus) Date: Fri, 20 Dec 2019 08:44:14 +0100 Subject: Bringing Mapbox Maps SDK to JavaFX? In-Reply-To: References: Message-ID: 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. >