Distorted pixel display in LWJGL textures
I was making a simple game and my pixels appear distorted (image).It’s not perfect
I don’t have any experience with this library, and I followed two tutorials for texture loading and screen setup. And now I have a problem with this. It does work for zoomed in textures, but with small spaces it does not work.
Texture drawing method: (below) this is where I think the problem is, but I don’t know where. I draw a square with a texture based on aspect ratio and parameters.
Distorted pixel display in LWJGL textures
I was making a simple game and my pixels appear distorted (image).It’s not perfect
I don’t have any experience with this library, and I followed two tutorials for texture loading and screen setup. And now I have a problem with this. It does work for zoomed in textures, but with small spaces it does not work.
Texture drawing method: (below) this is where I think the problem is, but I don’t know where. I draw a square with a texture based on aspect ratio and parameters.
Why does LWJGL 2 not use GPU but LWJGL 3 does?
On MacBooks running macOS, LWJGL 2 only uses the CPU (only uses software rendering), but LWJGL 3 uses the GPU as well.
Is there a way to get LWJGL to compile with CMD on Windows 11?
I am on Windows 11, and receiving the following error. I have downloaded the LWJGL 3.3.4 release with “everything” selected in a ZIP file. I then extracted the ZIP file, and pasted that extracted folder into Program Files. Next, I copied/pasted the code from the main page of LWJGL https://www.lwjgl.org/guide into a java file named HelloWorld.java, and attempted the following CMD line commands.
Display.getWidth() returns negative numbers
I was trying to create a window in LWJGL 2 but when I tried to get the display width, it just returned a negative number.
Why my code have diffrent visual bugs in every OS
I am writing a 3d engine in java using lwjgl3 and while my code runs perfectly fine on macOS when I run it on a windows 11 computer a get a visual bug where my lighting doesn’t work and my textures don’t have textures. and when I run it on windows 10 the skybox and height of player doesn’t work. I am using the most updated versions of lwjgl3 and java and I switch to the correct library for every OS. when trying to run my code on a different computer also running win11 I got the issue I saw in win10.
does anyone knows why there are different bugs on every version and how I can fix/debug it?
in case you want to try and run my code you can download it from this link
Make sure you put in the libraries tab in project structures the folder with the library based on the OS you use. and then run the demo file in engine tester.