Login  Register

JavaFX and my JOGL pipeline.

Posted by pepe1945 on Oct 15, 2015; 1:32pm
URL: https://forum.jogamp.org/JavaFX-and-my-JOGL-pipeline-tp4035470.html

Hi,
  Excuse me to use this way to contact you.
  (No forum for JavaFX)
I'm trying actually to create a JOGL pipeline for the
last version of JavaFX.
For a first version, this seems to be correct.
My problem is with some JOGL parts (in my directory
src-jogl).
To test, you can use:
    org.jfx.test3d.Shapes3DViewer

The code is at: https://github.com/pepe1914/jfx-zoglpipeline
This is a Netbeans project.

Note:
  -You can change the code without any problems and distribute it.
   (The calls to false native code seems really stupid)...

  -The use of com.sun.prism.ZGraphicsPipelineExt is necessary
   due to fact of security mechanism of GraphicsPipeline.
   Possibly the use of ASM (http://asm.ow2.org/) to dynamically add
   classes can solve that....
 
  -The only things, not tested actually, is the classes for
   the Effect: com.sun.scenario.effect.impl.zogl.ZOGL_ShaderSourceCls
   Because this is hardcoded in JavaFX, in the class:
    com.sun.scenario.effect.impl.prism.ps.PPSRenderer
    in:
    public static Renderer createRenderer(FilterContext fctx)
   I do not want to change the code inside jfxrt.jar. With ASM ???
   OK, I have done the change in that class just for test.

Thanks !!!