Draw UI on top of NewtCanvasJFX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Draw UI on top of NewtCanvasJFX

Taylor
Hello, I have a NewtCanvasJFX and I would like to be able to drag tool panels (i.e. SplitPane) on top of it. Think of a tool like Blender where on either side your workspace are your tools and swatches and you can pull them larger.

No matter what combination of containers and Nodes I have tried I cannot get the NewtCanvasJFX to render behind JavaFX UI components. Is this possible?
Reply | Threaded
Open this post in threaded view
|

Re: Draw UI on top of NewtCanvasJFX

Sven Gothel
Administrator
On 4/30/20 2:37 AM, Taylor [via jogamp] wrote:
> Hello, I have a NewtCanvasJFX and I would like to be able to drag tool panels
> (i.e. SplitPane) on top of it. Think of a tool like Blender where on either
> side your workspace are your tools and swatches and you can pull them larger.
>
> No matter what combination of containers and Nodes I have tried I cannot get
> the NewtCanvasJFX to render behind JavaFX UI components. Is this possible?
>

NewtCancasJFX is a heavyweight component, b/c that were its requirement.
Heavyweight == its own window from the OS toolkit.
Reason is to have a high performance GL view available
w/o need of copying data.

A JavaFX's Scene is the very same, own window.

NewtCancasJFX adjusts to the scene by tracking position,
still being a child window of the Scene window.
However, we hardly can get behind _some_ content in the Scene.

If you would like to have a 'not so high performance' GL view,
but integrating better into the Scene - you can render offscreen
into a FBO and then either copy the pixel (read-pixel)
or somehow share the FBO w/ JavaFX.

~Sven


signature.asc (849 bytes) Download Attachment