WebView and WebGL

Jan Tosovsky j.tosovsky at email.cz
Thu Sep 14 20:18:31 UTC 2017

Thanks for your valuable input. I appreciate it. 

To clarify my point of view:
(1) There are no resources to implement Java based HTML renderer to be on
par with major rendering engines.
(2) Any integrated 3rd party engine will bring some limitations.

In sum, to avoid any technology limits for any app heavily dependent on web
technologies (like WebGL) I'd rather choose browser-based solution directly.

Moreover, in my eyes WebKit lags behind Blink (and I expect this gets even
worse in near future). (Just my feeling, do not ask for sources of such

As a end user you can switch to another browser if the current one doesn't
support something you need. As a Java user with integrated engine you are
stick to that engine. There is no choice.

So I was curious why people insist on that, from my POV, dangerous way ;-)

I think this quote gives me an answer:

> ... if you're going to embed a browser in your JavaFX app (which
> is actually a very common and valid requirement), wouldn't you want it
> to be at least able to use Google Maps properly?


> -----Original Message-----
> From: John-Val Rose [mailto:johnvalrose at gmail.com]
> Sent: Tuesday, September 12, 2017 9:52 PM
> To: Jan Tosovsky
> Cc: openjfx-dev at openjdk.java.net
> Subject: Re: WebView and WebGL
> Hi Jan,
> I have to say that I find your question rather "curious"!
> Imagine asking a Qt developer "Why do you need 3D in Qt?". They'd
> probably look at you a bit strangely and then reply "Is this a trick
> question?".
> If there weren't the (advanced) 3D features in Qt then most C++
> developers would simply ignore it! We've moved a long, long way on from
> "simple forms based applications" into an exciting new world of
> visualisations, animations, games, big data, 3D charting etc.
> Or, have we?
> Well, most developers and businesses have... unless you're a Java shop.
> There, you're most likely to still be using Swing because it has an
> enormous range of controls (all of which are much easier to customise
> than JavaFX controls) and you have a range of high-quality GUI builders
> and a wealth of trained, skilled and experienced staff resources to
> find if you need them.
> And guess what? Two of the most advanced and utilised IDEs (JetBrains
> IntelliJ and Google Android SDK) are *Swing* applications!
> But, you're still basically just "doing forms" and while that may be
> adequate for many types of companies, it is also significantly impeding
> their technology progress and limiting their developer's potential.
> No, they don't want to throw away all their Java domain models and
> business logic, retrain everyone in C++ and then spend years rewriting
> a massive codebase only to find years later that they have spent
> millions on building a bug-infested shiny new toy that does little or
> nothing more than what they started with.
> And they don't want to buy into the "HTML5 hype" either. They're going
> to face a complete brick wall trying to do what I just described by
> shifting to browser-based technologies.
> My suggestion of implementing WebGL in WebView was merely a quick way
> to at least permit decent 3D functionality to finally "creep" into
> JavaFX and then hopefully kickstart a full-blown injection of advanced
> 3D features.
> Besides, if you're going to embed a browser in your JavaFX app (which
> is actually a very common and valid requirement), wouldn't you want it
> to be at least able to use Google Maps properly?
> JavaFX is at a crossroads.
> Please, let's take the right road...
> Graciously,
> John-Val Rose
> Chief Scientist/Architect
> Rosethorn Technology
> > On 12 Sep 2017, at 04:51, Jan Tosovsky <j.tosovsky at email.cz> wrote:
> >
> >> On 2017-09-10 Nir Lisker wrote:
> >>
> >> 3D enhancement are indeed not planned for Java10 (at the minimum)
> ...
> >> but I agree with Mike - you can, maybe somewhat surprisingly, do
> quite
> >> a lot with what there is.
> >>
> >> ...
> >>
> >> We've employed some clever tricks to get adequate "advanced
> features"
> >> results and considering that all of it can be single-handedly run on
> >> iOS and Android with Gluon Mobile (specifically JavaFXPorts) I think
> >> there *is* a future in this direction ...
> >
> >
> > Just for my curiosity, what is the main driver for developers to
> integrate 3D into JavaFX apps?
> >
> > Why not create apps utilizing WebGL directly in (full-featured)
> browsers using JavaScript bundled as GUI apps (via e.g. Meteor or CEF)?
> >
> > Is it about reusing Java knowledge, unique Java libraries, something
> else?
> >
> > Thanks for clarifying,
> >
> > Jan
> >
> >
> >
> >
> >

More information about the openjfx-dev mailing list