Main Menu

Recent posts

#31
Lightweight Java Gaming Library / Re: LWJGL 3.3.5
Last post by cpope9141 - January 07, 2025, 15:09:03
Great! Thank you!
#32
Bug Reports / RFE / Unusual Window / Startup / Tas...
Last post by Ir3n!cus - January 07, 2025, 10:05:13
I try to develope a java application with LibGdx for Raspberry 4. The Raspberry runs the standard OS.
For short debug cycles I ran this application during developement mostly on windows and only deploy it to the raspberry after bigger features are complete.

I want the app to get a "Taskbar-Item" and to start in fullscreen mode. Since both happends on windows, i would assume I configured the app internal settings correct.

On the raspberry there are two problems.
  • The app starts minimized / iconified. There is no visual window on the desktop.
  • The app gets no "Taskbar-Item". There is no "clickable instance" on the desktop to bring the app to front.

I already opened a thread to the second problem in the raspberry forum, but got no answer:

Raspberry Forum Post

My main problem is, that I cannot figure out the root cause and the element to take care of.
What participates on this problems and must be changed?
  • Java Runtime Environment?
  • LibGdx?
  • LWJGL?
  • OpenGL?
  • Wayfire?
  • Wayland?
  • LabWC?
  • mf-panel-pi?
  • ..... ?

The only point I can say is that this does not happend with a selfmade Java-Swing-Gui-App to test this.
The swing app gets a Taskbar-Item and the window show up on startup normally.
And all other applications like the raspberry terminal app getting window and taskbar-item, too

This seems to happend only with LibGdx/LWJGL - Java - Appllications.
#33
Lightweight Java Gaming Library / LWJGL 3.3.6
Last post by spasi - January 06, 2025, 23:39:49
LWJGL 3.3.6 has been released!

Release notes
Download
#34
Lightweight Java Gaming Library / Re: LWJGL 3.3.5
Last post by spasi - January 06, 2025, 23:38:23
Hey cpope9141,

LWJGL 3.3.6 has been released, which seems to not suffer from the same problem.

The issue started with 3.3.4, which was the first release to use Clang-CL to build the Windows binaries. With 3.3.6 we have reverted back to MSVC and it looks like the false positives have been eliminated.
#35
Lightweight Java Gaming Library / Re: Indie Fighting Game using ...
Last post by cpope9141 - December 23, 2024, 00:57:38
The December release of Area Zero (v0.20.0) is now available:
https://ephemeraltechnicalarts.com/area-zero

#36
Lightweight Java Gaming Library / Re: LWJGL 3.3.5
Last post by cpope9141 - December 23, 2024, 00:55:43
Has anyone else reported a security threat from lwjgl-stb-natives-windows.jar ?

Windows Security reported this threat when I copied over files from the 3.3.5 custom zip from the download page:

Detected: Trojan:Script/Phonzy.B!ml
Status: Quarantined
...
Date: 12/22/2024 6:47 PM
Details: This program is dangerous and executes commands from an attacker.
#37
OpenGL / Null Context : OpenGL integrat...
Last post by bolivar - December 16, 2024, 22:22:52
Hello everyone,

I am trying to use an OpenGL canvas in SWT with Zulu 17 on Mac Aarch64.

To do so, I relied on the provided example SWTDemo but I got the following exception:

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.eclipse.swt.internal.cocoa.NSGraphicsContext.saveGraphicsState()" because "context" is null
   at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:763)
   at org.eclipse.swt.widgets.Canvas.drawRect(Canvas.java:170)
   at org.eclipse.swt.widgets.Display.windowProc(Display.java:6124)
   at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
   at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:5398)
   at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5802)
   at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
   at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:92)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3877)
   at com.afp.iris.mpvlab.SwtDemo.main(SwtDemo.java:158)

Has anyone encoutered this issue ? If so I will very appreciate any tips or workaround.

Thank you

Bolivar


#38
Lightweight Java Gaming Library / LWJGL 3.3.5
Last post by spasi - December 15, 2024, 22:34:14
LWJGL 3.3.5 has been released!

Release notes
Download
#39
OpenGL / No OpenGL context has been mad...
Last post by starfyre - November 15, 2024, 22:14:05
Hey All...

I'm getting the error "No OpenGL context has been made current through recognized API methods (glfwMakeContextCurrent)" when I try and run LWJGL 3.3.4+7! on Java 21 in Elclipse 20204-09.
Windows 11 version 10.022631 build 22631 :: NVIDIA GeForce RTX 4090 :: Intel Core i9-14900KS

I am calling glfwMakeContextCurrent(mWindowID); The windowID is that same throughout the program and the thread ID is the same throughout the program.

System.out.println(Thread.currentThread().threadId() + " " + mWindowID);
		glfwMakeContextCurrent(mWindowID);

		GL.createCapabilities();

		Callback debugProc = GLUtil.setupDebugMessageCallback();
		glfwSwapInterval(1);

		if (isVSync()) {
			glfwSwapInterval(1);
		}

		glfwShowWindow(mWindowID);

The failing code is GL30.glGenVertexArrays()...

private int createVAO() {
		System.out.println(Thread.currentThread().threadId() + " " + windowManager.getWindow());
		int id = GL30.glGenVertexArrays();
		mVAOS.add(Integer.valueOf(id));
		GL30.glBindVertexArray(id);
		return id;
	}

any help will be greatly appreciated!
#40
LWJGL Documentation / The HelloWorld sample at https...
Last post by blob - October 29, 2024, 20:13:47
The HelloWorld sample at https://www.lwjgl.org/guide tries to set the global window position.

// Center the window
			glfwSetWindowPos(on
				window,
				(vidmode.width() - pWidth.get(0)) / 2,
				(vidmode.height() - pHeight.get(0)) / 2
			);

This is incompatible with Wayland as per GLFW documentation

glfwSetWindowPos docs