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.

The Lightweight Java Game Library (LWJGL) is an open source Java software library for computer game developers. In particular, it provides an interface for accessing OpenGL, OpenCL, OpenAL and GLFW functionality.

3245 questions
1
vote
1 answer

Why is my cube failing to draw properly in LWJGL/OpenGL?

I believe it has something to do with draw order, but I've just given up at this point. Basically, the Quads are drawing, but they're not in the right order, and backface culling is enabled but doesn't help. import java.awt.Color; import…
striking
  • 655
  • 1
  • 8
  • 25
1
vote
2 answers

Rendering arbitrary-sized instances from a single VBO in OpenGL

Consider a single VBO (or perhaps multiple VBOs) filled with multiple objects, each with arbitrary vertex counts. For demonstrative purposes, let's say there's an apple, with 500 vertices, and an orange, with 650 vertices stored within a…
NickB
  • 13
  • 3
1
vote
1 answer

image vs texture size LWJGL

First Scenerio Loaded a texture with Stick-util.jar, where the image size = 50x50 & texture size =64x64. Bound the texture & drew a Quad of size 64x64. And gives out an Image of size 50x50. Grid of size 50x50 Second Scenerio Loaded another…
ShouravBR
  • 685
  • 7
  • 10
1
vote
2 answers

no lwjgl in java.library.path in playN hello sample

I'm having an error trying to run java playN project. The other ons seems to be fine. The error is: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path. There is dependencied library lwjgl 2.83 in the project.…
Jacek Kwiecień
  • 12,397
  • 20
  • 85
  • 157
1
vote
1 answer

Playn error - org.lwjgl.LWJGLException: X Error

After much work around, now i am able to understand the playn environment. Every thing is ok now, but, when i enter: mvn install (from the main directory) (or) mvn java/pom.xml test -Ptest-java I am getting the following error. I updated the…
1
vote
0 answers

bootstrap class path not set in conjunction with -source 1.6 Java error

I am making a game based of of slick right now but every time I compile it I get a bootstrap class path not set in conjunction with -source 1.6 error. It compiles though and I can find it in the dist folder but whenever I run the .jar absolutely…
me me
  • 778
  • 2
  • 7
  • 18
1
vote
1 answer

Opengl Quads not rendering

This is the problematic code: glColor3f(1,1,1); for(int x=0;x<125;x++){ for(int y=0;y<10;y++){ int p = levelArray[x][y]; if(p == 0){ break; } Texture t = pieces[1]; t.bind(); …
Daniel Messias
  • 2,623
  • 2
  • 18
  • 21
1
vote
1 answer

Game can't find a native library - jinput-linux64

I'm currently working on a game based on Slick2D, but I ran into a problem. When I try to run my game (no matter whether from dist or ide), I get the following error: java.lang.UnsatisfiedLinkError: no jinput-linux64 in java.library.path My…
argoneus
  • 1,097
  • 2
  • 13
  • 24
1
vote
4 answers

How can I check keyboard for a single press?

I can't figure how to get the condition to work. Is there something like Keyboard.isKeyDown(//anykey) for the condition? import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; public class InputHandler { public static boolean…
KeyHeart
  • 163
  • 2
  • 6
  • 17
1
vote
1 answer

Is it possible to render to FBO in a headless mode using LWJGL?

I need to develop an app using Java wrapper for OpenGL LWJGL.The app will run on remote server in a headless mode.I am trying to understand if and how is it possible taking into consideration the fact that GL context in LWJGL (and in other APis) is…
Michael IV
  • 11,016
  • 12
  • 92
  • 223
1
vote
1 answer

Error on OpenGL texture delete

I'm working on a game and I have run into a problem where my OpenGL code wont delete a texture when I tell it to free every thing on shutdown, here is the exception: Exception in thread "main" java.lang.NullPointerException at…
Liam Haworth
  • 848
  • 1
  • 9
  • 27
1
vote
0 answers

How to play video and audio from a video file in Java

I understand this question has been asked many times before, but after searching all of the answers seem to be outdated (by two or more years) so I thought it reasonable to ask it again. What libraries are available to read and display video files…
Athix
  • 37
  • 1
  • 9
1
vote
1 answer

LWJGL 3D picking

So I have been trying to understand the concept of 3D picking but as I can't find any video guides nor any concrete guides that actually speak English, it is proving to be very difficult. If anyone is well experienced with 3D picking in LWJGL, could…
Tarrjue
  • 25
  • 6
1
vote
1 answer

LWJGL OpenGL - Line from 3d point to center of screen

Is there is an easy way to draw a line from a 3D point, in this case, it's 0, 0, 0, to the center of the screen?
1
vote
1 answer

Why does removing one call to glColor3f affect the entire rendering?

So a subset of my code (within a rendering loop of course) is: for(int x=0;x
Retsam
  • 30,909
  • 11
  • 68
  • 90