Hello Guest

Recent Posts

Pages: [1] 2 3 ... 10
1
Bug Reports / RFE / Re: EGL VM Crashes
« Last post by spasi on Today at 20:07:14 »
This is a bug in 3.2.2 and it will be fixed in the next 3.2.3 snapshot (build 3). You could try with 3.2.1 until then.

Thanks for reporting!
2
Bug Reports / RFE / EGL VM Crashes
« Last post by smith on Today at 19:23:11 »
After having so many issues with GLFW + Swing/AWT I thought I would try using EGL and OpenGLES, however this just crashes the VM immediately on EGL.create(). Does EGL require GLFW?

Code: [Select]
---------------  T H R E A D  ---------------

Current thread (0x00007fbbd0012000):  JavaThread "main" [_thread_in_native, id=9906, stack(0x00007fbbd6b4b000,0x00007fbbd6c4c000)]

Stack: [0x00007fbbd6b4b000,0x00007fbbd6c4c000],  sp=0x00007fbbd6c49f28,  free space=1019k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x00007fbbd032c271
j  org.lwjgl.egl.EGL$1.getFunctionAddress(Ljava/nio/ByteBuffer;)J+8
j  org.lwjgl.system.FunctionProvider.getFunctionAddress(Ljava/lang/CharSequence;)J+12
j  org.lwjgl.egl.EGL.createClientCapabilities()Lorg/lwjgl/egl/EGLCapabilities;+31
j  org.lwjgl.egl.EGL.create(Lorg/lwjgl/system/FunctionProvider;)V+20
j  org.lwjgl.egl.EGL.create(Lorg/lwjgl/system/SharedLibrary;)V+8
j  org.lwjgl.egl.EGL.create()V+113
j  org.lwjgl.egl.EGL.<clinit>()V+19
v  ~StubRoutines::call_stub
V  [libjvm.so+0x83cd09]
V  [libjvm.so+0x81acad]
V  [libjvm.so+0x81b07e]
V  [libjvm.so+0xa0999d]
V  [libjvm.so+0xa0cd6b]
V  [libjvm.so+0x8372d6]
V  [libjvm.so+0x837875]
j  gltest.GLTest.main([Ljava/lang/String;)V+0
v  ~StubRoutines::call_stub
V  [libjvm.so+0x83cd09]
V  [libjvm.so+0x8b6d34]
V  [libjvm.so+0x8b9681]
C  [libjli.so+0x548e]
C  [libjli.so+0x950d]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.system.JNI.callPP(JJ)J+0
j  org.lwjgl.egl.EGL$1.getFunctionAddress(Ljava/nio/ByteBuffer;)J+8
j  org.lwjgl.system.FunctionProvider.getFunctionAddress(Ljava/lang/CharSequence;)J+12
j  org.lwjgl.egl.EGL.createClientCapabilities()Lorg/lwjgl/egl/EGLCapabilities;+31
j  org.lwjgl.egl.EGL.create(Lorg/lwjgl/system/FunctionProvider;)V+20
j  org.lwjgl.egl.EGL.create(Lorg/lwjgl/system/SharedLibrary;)V+8
j  org.lwjgl.egl.EGL.create()V+113
j  org.lwjgl.egl.EGL.<clinit>()V+19
v  ~StubRoutines::call_stub
j  gltest.GLTest.main([Ljava/lang/String;)V+0
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x00007fbbd032c271
3
Lightweight Java Gaming Library / lwjgl 2-3 Interface
« Last post by AGP on May 23, 2019, 00:33:22 »
Would it be possible for someone to write a lwjgl 2 to lwjgl 3 interface? I require the use of the newer lwjgl, but I like using a little engine called jpct which is still stuck in time. If it can be done I would be interested in paying someone for the job. Thanks in advance.
4
Bug Reports / RFE / Re: LWJGL + AWT/Swing
« Last post by KaiHH on May 21, 2019, 21:20:03 »
I note AWTGLCanvas doesn't support OSX, also is there any reason it isn't currently included in lwjgl?
This is a hobby project of mine, and when I started it I only cared about Windows and a little bit about Linux.
And since I do not own a Mac and no one so far contributed a working solution (though there were attempts https://github.com/LWJGLX/lwjgl3-awt/issues/1 ) Mac OS is not supported currently, sorry.
You are very welcome to contribute.
5
Bug Reports / RFE / Re: LWJGL + AWT/Swing
« Last post by smith on May 21, 2019, 21:10:44 »
Qt + OpenGL integration is fantastic an example of how it really should be done. I don't think OpenGL should care about UI's, the main issue is AWT/JavaFX really need a native surface widget that can be used to integrate with other libraries, not just OpenGL but Direct3D and video players etc. This has been talked about for a long time but has never made it past the discussion phase. It's really a shame because it would open up a huge space for interesting applications.

I note AWTGLCanvas doesn't support OSX, also is there any reason it isn't currently included in lwjgl?
6
Bug Reports / RFE / Re: LWJGL + AWT/Swing
« Last post by Cornix on May 21, 2019, 17:31:58 »
That problem has little to do with java. OpenGL is not designed for UI's. There is no native support for font rendering and the way modern graphics processing works (VBO's, Shaders, etc) is in stark contrast to how GUI frameworks are traditionally build.
By the way, AWT/Swing may actually be using OpenGL in the background "under the hood" so to say. The implementation details are not strictly enforced and alternative solutions are possible. On Windows for example you can choose between either a Direct3D or OpenGL implementation. Maybe even other alternatives. So the problem is not so much in OpenGL + Java.
The real problem is finding a proper GUI framework that works well with OpenGL and is also easily integrated (or even written in) java. In my spare time I tried to developed such a framework as a hobby. It really is not easy to make good use of modern rendering techniques when building a fully functional GUI framework.

Maybe have a look at this thread: http://forum.lwjgl.org/index.php?topic=6883.msg36272

On a side note: I once worked on a project which used Qt with java and OpenGL rendering. Its not "nice" but its definitely possible.
7
Bug Reports / RFE / Re: LWJGL + AWT/Swing
« Last post by KaiHH on May 21, 2019, 17:24:26 »
8
Bug Reports / RFE / LWJGL + AWT/Swing
« Last post by smith on May 21, 2019, 16:50:37 »
Hi,

I was wondering if there was a way yet for LWJGL + AWT/Swing to co-exist. Currently I'm using an offscreen window and glReadPixels into a BufferedImage.
It's not great performance but it does work fine on Windows at least, the problems start when you move to Linux/OSX with GLFW and AWT/Swing not playing nice.
On Linux if I try to open a JFileChooser it will crash when I close it with an X11 error.
I believe OSX has issues deadlocking but I haven't tested it as I don't have a mac.

I am only using GLFW to create the offscreen window so I'm not after any of the event handling. Is there another way to create a window that doesn't cause issues with AWT/Swing?

It is really disappointing how getting UI + OpenGL in java has been so problematic for such a long time, I guess it's just a really hard problem to solve.

9
Why would it be better?
What do you believe would be improved?
Casting doubles to floats is trivial.
10
I know this is basic, but I thought I should ask the question to see if I was missing something.

From what I've read, OpenGL and GPU programming are tuned to use floats. But all the default trigonometry functions in the suggested JOML add-on return doubles. Wouldn't it be better to return floats?
Pages: [1] 2 3 ... 10