44
I Use This!
Activity Not Available

News

Analyzed 11 months ago. based on code collected 11 months ago.
Posted almost 10 years ago
I wasn't talking about the matrixVertex Shader : "in vec4 in_Position;\n" +Java Code : GL20.glVertexAttribPointer (0, 3, GL_FLOAT, false, 0, 0);Vertex Shader expects size 4, but you give it size 3. A bit of a mismatch
Posted almost 10 years ago
Hello,my finding is that Nvidia Optimus does not work reliably now, and never did in the past. At least for me. Even with a plain native application verifiably exporting that symbol.However I used GLFW for that, which also does not do anything par...
Posted almost 10 years ago
Quote from: kappa on Today at 10:24:47just need one for the lwjgl native ("org.lwjgl.libname")Added support for this.
Posted almost 10 years ago
Also see the documentation of GLFW functions, most of them require that you only call them from the main thread.In general, if you find yourself using new Thread() { ... }.start() or any kind of old-school thread synchronization (the synchronized keyb...
Posted almost 10 years ago
Where do you see that? In my vertex shader the matrix is Mat4, and same with the uniforms for handing it over.
Posted almost 10 years ago
Okay, I did what you suggested and it works like a charm! Thank you!It's a little hard to get all these things right when you start working with multithreading and all that stuff. Pretty confusing. But I understand what you mean and it makes sense. Yo...
Posted almost 10 years ago
You are mixing something up here.You create the Graphics object in the Client classes run() method. This is done on the main Thread. For this reason the OpenGL context is created on the main Thread.You then have another Thread to invoke the Graphics ...
Posted almost 10 years ago
Sure :)This is the relevant code from the new Client class:[code]private void run() throws Exception {// initialisation of socket and streamsnew Thread(new Graphics()).start();// while loop getting input from the Server}public static void main(...
Posted almost 10 years ago
You would have to show us the updated code, otherwise we cant tell you anything.Just post it in a reply within Code: [Select] tags.
Posted almost 10 years ago
I'm aware of that. ;) So what I do is:- Creating an instance of the Client class- Starting a new thread of the Graphics class in the Client class- Initialising the OpenGL context in the constructor of the Graphics class- Calling the update method i...