Login  Register

Re: GL-BufferedImage?

Posted by Martin on Apr 23, 2022; 7:48pm
URL: https://forum.jogamp.org/GL-BufferedImage-tp4041732p4041733.html

Hi Jeff,

Could you post the complete JRE core dump to better understand?

In Jzy3D I export screenshots to BufferedImage as you do. I haven't noticed any problem under Java 11 with JOGL 2.4 on Apple M1 (see my compatibility test report here). Note that I use Azul JDK which was the only one available for M1. This avoid relying on Rosetta and will make use of the GL binding for M1 and not for Intel chips. Not sure this will change anything to your problem but worth knowing.

JOGL is maintained "a bit", but we mainly exchange tips for solving issues rather than fix bugs for now.

Other ways I know for working with OpenGL in Java
- LWJGL : I tried a bit 1.5 years ago and encountered lot of issues with the demo programs on macOS so I dropped.
- jGL : is an old implementation of OpenGL 1 in pure Java, without binding to native OpenGL. It works great in Jzy3D for charts with limited number of polygons. You can read how I integrated it in Jzy3D here.
- PanamaGL : is rather POC than a ready to use framework. It uses improvements of Java 17 to invoke native OpenGL. Not useable right now but interesting to watch in the future.

Your web/desktop app is really interesting. What tool do you use to build it?