Git Product home page Git Product logo

Comments (6)

httpdigest avatar httpdigest commented on September 20, 2024 3

Mac OS requires the use of the -XstartOnFirstThread JVM argument, so:
java -XstartOnFirstThread -jar target/lwjgl3-demos.jar
See: https://stackoverflow.com/questions/28149634/what-does-the-xstartonfirstthread-vm-argument-do-mean

from lwjgl3-demos.

clankill3r avatar clankill3r commented on September 20, 2024

Damn that was quick.

Ok I have a new error now:

Press 'up' or 'down' to cycle through some colors.
ERROR: 0:5: '' : version '130' is not supported
ERROR: 0:6: '' : #version required and missing.

java.lang.AssertionError: Could not compile shader
at org.lwjgl.demo.opengl.UniformArrayDemo.createShader(UniformArrayDemo.java:203)
at org.lwjgl.demo.opengl.UniformArrayDemo.createRasterProgram(UniformArrayDemo.java:215)
at org.lwjgl.demo.opengl.UniformArrayDemo.init(UniformArrayDemo.java:144)
at org.lwjgl.demo.opengl.UniformArrayDemo.run(UniformArrayDemo.java:273)
at org.lwjgl.demo.opengl.UniformArrayDemo.main(UniformArrayDemo.java:290)

I found this issue:
LWJGL/lwjgl3#38

Where it tells to:

You have to explicitly request a 3.2 core context when creating the GLFW window.

glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);

But looking into the source files it already is like this.

from lwjgl3-demos.

httpdigest avatar httpdigest commented on September 20, 2024

Try changing the version in the uniformarray-vs.glsl and uniformarray-fs.glsl to #version 150 and please tell me, whether this works. This corresponds to the GLSL version for OpenGL 3.2.

from lwjgl3-demos.

clankill3r avatar clankill3r commented on September 20, 2024

Thank you so much, I got one demo running! What is the best way to check all the demos?
Changing those 2 commands to check all demos will take me days:

./mvnw package -Dclass=opengl.UniformArrayDemo
java -cp target/lwjgl3-demos.jar org.lwjgl.demo.opengl.UniformArrayDemo

from lwjgl3-demos.

httpdigest avatar httpdigest commented on September 20, 2024

The best is obviously to use an IDE (IntelliJ IDEA, Eclipse, NetBeans, ...). All of those have excellent Maven integration and running a demo is as easy as using the "Run this Java file" command that every IDE provides.

from lwjgl3-demos.

clankill3r avatar clankill3r commented on September 20, 2024

Ok thanks, I think I will manage from here.

from lwjgl3-demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.