I recently bought a RP4 and setup java and intelliJ on it and tried to run my existing game code which is very basic and was getting runtime issues because it could not find the native .so file. After digging around I found that LWJGL recently released version 3.2.3 which has finally added support for arm natives. So I edited my gradle file to depend on the new 3.2.3 version and to my surprise it was able to find the library.
My happiness was short lived though because it soon failed with an error because RP4 does not support OpenGL 3.0. It supports OpenGL ES 3.0 but only OpenGL 2.1. I changed to OPENGL 2.0 but I was getting another error which I have not yet debugged.
I then tried to do a hack and modified the
LwjglWindow to have OPENGLES3. But I later found that there is a later check for
SUPPORTED_RENDERS in LwjglContext which pretty much forces you to the OpenGL implementations.
I know that JME3 for android uses OpenGL ES 3 so I would assume JME3 is compatible.
I would greatly appreciate if anyone can direct me on how to use OpenGL ES on my raspberry pi 4.
Meanwhile I guess I’ll try to figure out why OPENGL2 is not working.