Questions tagged [lwjgl]
The Lightweight Java Game Library (LWJGL) allows access to high performance crossplatform libraries such as OpenGL, OpenCL and OpenAL to write state of the art 2D and 3D applications with Java.
lwjgl
3,240
questions
-2
votes
1
answer
63
views
LWJGL glfwPollEvents blocks libGDX main loop on macOS
While my Lwjgl3Application-based game runs fine on windows and various linux distros, I only get a black screen on macOS. Looks like the call to glfwPollEvents does not return at all which blocks the ...
-1
votes
1
answer
39
views
Only one texel rendering during mass batch rendering using SSBOs
First, this is my second time asking this question. The first time, I was given many different tips that I applied into this new question.
Currently, I am working upon a 2D tile renderer. Switching ...
0
votes
0
answers
76
views
Enable Nvidia optimus on LWJGL
I have a 3D Java Application that needs to run on a clients laptop which runs Windows with Nvidia Optimus (Intel and Nvidia GPUs). On default, it will always run 3D applications on the discrete intel ...
1
vote
1
answer
53
views
Triangle in OpenGL doesn't render
I'm using LWJGL 3, My Triangle Does Not Render. Here's my code:
package com.xicreations.infinimob;
import org.lwjgl.glfw.GLFWVidMode;
import org.lwjgl.opengl.GL;
import org.lwjgl.system.MemoryStack;
...
0
votes
1
answer
76
views
Java Program progressive becomes slower after each launch
I have been trying to make a 2D game Engine in Java using LWJGL and have been able to get pretty far into it before discovering an issue. While trying to debug the program I found that the more times ...
0
votes
1
answer
182
views
How to render image in SpaiR / imgui-java with Vulkan?
In my Vulkan Java app I create textures (it's part of Vulkan tutorial for Java https://github.com/lwjglgamedev/vulkanbook/tree/master/bookcontents)
public TextureDescriptorSet(DescriptorPool ...
0
votes
1
answer
128
views
OpenGL rendering to framebuffer with two different programs does not work correctly with NVidia GeForce RTX 2080
I wrote a test suite using LWJGL and Clojure to test OpenGL rendering using frame buffers.
The following program is supposed to render two quads into the frame buffer.
See here for offscreen rendering ...
0
votes
1
answer
98
views
LWJGL opengl no context in function, after defining context error
After encountering errors due to running version opengl 2.1, i managed to get it to load version 4.1; im running on an m2 macbook.
here is the output:
Hello LWJGL 3.3.3+5!
gl version: 4.1 Metal - 83.1
...
0
votes
1
answer
46
views
Getting error with GLSL with very little context to why
the error code is:
Error compiling Shader code: ERROR: 0:1: '' : syntax error: #version
My shader compiler code is:
public class Shader {
private int shaderProgramID;
private boolean ...
0
votes
1
answer
234
views
lwjgl.dll not found in java.library.path
i'm trying to use lwjgl, using intellij and gradle.
i followed this tutorial: https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Install
but stuck in this error.
[LWJGL] Version: 3.3.3+5
OS: ...
0
votes
1
answer
181
views
How to do face culling in a voxel game using Java and LWJGL
For the past few weeks I've been using a tutorial to guide myself through LWJGL (https://www.youtube.com/playlist?list=PLaWuTOi9sDeomi2umQ7N8Lqs-GtE1H4-b here's the link). I stopped following once I ...
0
votes
1
answer
53
views
OpenGL Texture rendering over another with 3D Batch Renderer
So, my current OpenGL Renderer seems to draw Texture B with Texture A for some reason. I checked the slots in RenderDoc and they seem to be properly bound with glBindTexture() and glActiveTexture(). I'...
0
votes
1
answer
60
views
Java (LWJGL) Window
I am currently trying to figure out make to make window for a java game (with lwjgl 3.3.3). Most of the tutorials I have come across are very outdated so some help (along with some slight explanations ...
0
votes
1
answer
46
views
How to find out which graphcs card my libgdx/lwjgl game is running on?
Using an laptop that has multiple graphics cards, I wonder which one is being used by my libGDX / LWJGL game. How can I find out? Are there any built-in functions?
There seem to be some information ...
0
votes
1
answer
81
views
How do I upload a collection of position vectors and rotation quaternions to the GPU in OpenGL?
First, I upload the mesh of an object to a VAO (which I know how to do) and reuse that data every frame where a new mesh hasn't been introduced.
I want to then use the Vertex Shader to parallelize ...