Custom shaders for JavaFX
herve.girod at gmail.com
Fri Jun 21 02:53:46 PDT 2013
It's already possible to do this in Swing usine JOGL, and draw a swing hierarchy in an external OpenGL context, but its still *lot* of work to do, and it involve some amount of tricks to lure swing that it is drawing in its own context. Still it would be great to be able to do it "put of the box" in JavaFX.
Sent from my iPhone
On 21 juin 2013, at 09:41, Richard Bair <richard.bair at oracle.com> wrote:
>> 1. What are Oracle's plans (if any) for custom shader support in
>> future versions of JavaFX?
> What we've been looking at is not custom shaders, but the ability to allow an application to do all its own OpenGL and give it back to us. Custom shaders might be viewed as a separate issue, such as a way to do custom Effects (which is another long-standing wouldn't-it-be-great-if). Which one are you looking for specifically?
>> 2. Is such support planned for FX9?
> I'm hoping before that, in an 8 update release.
>> 3. How will the issues of supporting both OpenGL and Direct3D be
> Don't know. One idea is to just expose a way for applications to give us a texture, and leave it up to them to give us the right kind. Sort of lame. Another is to only expose OpenGL and then have a way to use OpenGL on windows. You'd probably have to opt-in to this so that if it crashes because of bad drivers it isn't our bad. Another way is to use a mapping layer like WebGL does.
> My personal view is that we only expose OpenGL and have a way to map from OpenGL to D3D on Windows.
>> 4. If any of the above are answered, has a "language" been chosen for
>> defining shaders (e.g. OSL)?
> I would like to be able to just use OpenGL and say GLSL is our language.
More information about the openjfx-dev