PanamaGL : another OpenGL binding framework

50 views
Skip to first unread message

Martin Pernollet

unread,
Jun 16, 2024, 5:28:58 PM6/16/24
to jz...@googlegroups.com
Hi everyone,

I recently released PanamaGL, a simple and easy to use binding to OpenGL for Java22+. !

This work was started in 2021 with JDK 17, while the new Foreign Function & Memory API appeared. FFM API allows generating OpenGL bindings easily. 
This appeared as on opportunity to overcome limitations with JOGL (used in Jzy3D) : 
- the code is hard to edit (relies on multiple languages).
- the code is hard to rebuild (requires a complex CI with multiple OS, hardware and JDK validations). 

On the other hand, PanamaGL :
- does not require mastering multiple technologies (Java code only).
- is easy to build. 
- has readable specifications through unit tests.

You can give a try to the prototype integration in Jzy3D here

You'll see that one can run charts in Swing, AWT, JavaFX - on Linux macOS and Windows.

I'd be happy to get your feedbacks !

Martin 



Oliver...@orat.de

unread,
Aug 13, 2024, 8:48:23 AM8/13/24
to Jzy3d
Dear Martin,

great, the example works fine and I am  intersting in that stuff because on my linux system I have still problems with jogl based tools (jzy3d and java3d): sometimes they crashes after highly used the mouse to control 3d-transforms. This happens since nearly 10 years and with every update I have the hope that it disappears but it doesnt. Maybe I can test Panamagl to see if the problem is gone or it is really a problem of opengl driver itself what I am afraid.

best regards
Oliver

Martin

unread,
Aug 13, 2024, 2:27:33 PM8/13/24
to Jzy3d
Hi Oliver,

Thank you very much for the positive feedback about the demos!

It would be great you test it in your project, which should be easy : you only have to change two pieces of code in your project : chart factory initialization and maven configuration :

ChartFactory factory = new PanamaGLChartFactory();

Maven configuration

<dependency>
  <groupId>org.jzy3d</groupId>
  <artifactId>panama-gl-jzy3d</artifactId>
  <version>1.2.0-SNAPSHOT</version>
</dependency>


Let me know!

Oliver...@orat.de

unread,
Aug 20, 2024, 10:29:45 AM8/20/24
to Jzy3d
It works and we will make further tests. Maybe by usage of panamagl we could make progresse in fixing a nervig bug which appear only on some linux computers if a lot of mouse movement is done. Instead of a crash in these situations we now get a null-pointer-exception. It think this will help a lot to fix it. I let you know if we got more progress.
Reply all
Reply to author
Forward
0 new messages