jzy3d / panama-gl

10 stars 1 forks source link

Integrate 3D scene in a Java canvas (AWT, Swing, JavaFX or SWT) #5

Open jzy3d opened 2 years ago

jzy3d commented 2 years ago

Current prototype uses a native GLUT frame to render the scene, which is not suitable for a complete integration in a Java desktop application.

Ideas

Option 1 : Render offscreen, fetch image and add it to a classic AWT or Swing Canvas

Use FBO

Display in

Option 2 : Get a rendering context from a Canvas and expose GL functions with JExtract generated code

See JAWT See JAWT IN LWJGL See JAWT IN JOGL See Project Lanai for Metal support on MacOS.

Questions

jzy3d commented 1 year ago

Merged improvements based on FBO for Ubuntu branch, but still FBO on Linux is not resolved