stakwork / sphinx-kotlin-ui

MIT License
3 stars 6 forks source link

Second Brain WebView - 3D rendering issue #77

Open tomastiminskas opened 2 years ago

tomastiminskas commented 2 years ago

We are using javafx.web from the org.openjfx.javafxplugin to load tribe web pages inside a WebView in Sphinx app.

We are using the latest version for the plugin

javafx: version 19
org.openjfx.javafxplugin: version 0.0.13

The webpage at the Second Brain tribe is not loading. There seems to be an issue with javafx.web and canvas 3D rendering.

This is the webpage with the 3D canvas that causes the problem: https://second-brain.sphinx.chat

MathRoda commented 1 year ago

image I'm able to render Second Brain using chromium, the issue in JavaFX itself not supporting WebGL the solution is to use Chromium Embedded Framework (CEF) which allow you to render modern web-based UIs inside a Java application.

in the screenshot above i did use Equo Chromium Library their free trial which did simplify the implementation process for testing

but you can totally use JCEF Maven - apache-2.0 License

pitoi commented 1 year ago
!
kevkevinpal commented 1 year ago

@MathRoda could you write out some steps to get this implemented in the multiplatform koltin app?

I'm not familiar at all so I'm not sure where to start

tomastiminskas commented 1 year ago

Just saw this. If @MathRoda can try to get the JCEF Maven - apache-2.0 License implemented and working it would be great. I can help testing whenever it's ready. And then we might need to review the javascript bridge integration with this new way of rendering the second brain web

MathRoda commented 1 year ago

@kevkevinpal @tomastiminskas i'm also not super familiar with JCEF Maven - apache-2.0 License but i've read a bit of the documentation and i think i'm able to get it work
i'll let you guys know when implemented