I am running into a problem that I cannot find any solution for the moment even by searching on the internet. I am currently working on a 2D game and I want my player to go on every direction and diagonally. For that reason I need to get two inputs from the keyboard, thing that I could code but now
Tag: lwjgl
Proper framework for animating objects with lwjgl?
My goal is to draw and animate 2D UI elements on the screen. The problem is, I’m not exactly sure how I can animate it without taking up a lot of space doing so. This is what my method would look like to draw a red rectangle at 0, 0 with a width and height of 50 Now, what I
Trying to implement model batching for opengl not sure why it’s not showing anything
I am trying to implement model and sprite batching for a game engine I am working on, trying to test it on GUI Renderer but can’t get any results, errors or anything drawing to the screen am I doing something wrong I will link the Github page for the full code but here is the code for MeshBatch class and
OpenGL (LWJGL 3) culling terrain vertices/triangles that are not in the view frustum
I am trying to implement frustum culling in my 3D Game currently and it has worked efficiently with the entities because they have a bounding box (AABB) and its easier to check a box against the frustum. On saying that, how would I cull the terrain? (it physically cannot have a AABB or sphere) The frustum class (I use the
Lwjgl window not opening
So I trying out lwjgl but I’m having a problem, when I try to create a window I get an error I just can’t figure out why. I have tried to lower my java version from java 16 to 14 but that didn’t work. Main Class: when I run my main class I get this error (on java jdk 16):
How to change the coordinates of an object with the press of a key?
I have to create a small 2D Java tile game for schoolwork and I would like to know how can I move an object with the press of a button. More specifically, I have an item with ‘ i ‘ and ‘ j ‘ coordinates in a matrix. After I press ENTER on my keyboard, I want the item to
LWJGL: glMapBuffer/Range what is the use of old buffer?
It prints out all zero’s but the new buffer contains the correct data which is fine. And if i specify null as parameter for the old buffer it works fine too. So is there any optimization/memory saving being done behind the scenes when using an non null old buffer? The output is the same for LWJGL 2.9.3 and 3.1.3 Answer
Problem with texture not showing in screen. OpenGL ES
I am newbie in opengl es 2 programming, I was trying to load a texture in png format in my test application. I used PNGDecoder to do this, but just the black rectangle and the line are show in the screen. What is wrong? Renderer: Fragment Shader: Vertex Shader: Square2D (is used to store vertex positions): Answer glVertexAttribPointer can be
How to fix compatibility issues between GLSL version 1.5 and version 3.0 ES
I’ve recently come back to working on an old passion project of mine (I last worked on this 2 years ago for the last time) which uses GLSL shaders. The project uses a whole bunch of shader files like this: I get the following error when running the program using this file: I’m assuming that in the last 2 years
Intellij highlighting not existing errors, thinking that LWJGL is not imported
I imported LWJGL to the libs folder inside the project. The application works fine, but Intellij is highlighting almost every line, thinking that lwjgl is not imported. Is there any simple solution? I want to avoid importing the library another way. Answer Try invalidating caches via File → Invalidate caches/restart in the top menu.