Comments (6)
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.
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.
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.
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.
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.
Ok thanks, I think I will manage from here.
from lwjgl3-demos.
Related Issues (20)
- cant show image in mtl file
- Build issue HOT 4
- Texture Demo for the vulkan demos? HOT 2
- Vulkan ClearScreenDemo requires discrete gpu HOT 1
- does not start on Linux HOT 7
- tag the demos repo to match with the main LWJGL3 release HOT 1
- Cannot run any demos on macOS 11.4 HOT 14
- Error: Requested OpenGL version 4.3, got version 4.1 HOT 5
- Throw `Vulkan layer VK_LAYER_KHRONOS_validation is not supported` error HOT 1
- cant compile, dependencies fail
- whats the intended read order of the tutorials after intro1-5? HOT 1
- Access violation from stbi_load_from_memory HOT 2
- Intel UHD cards crash HOT 2
- hello am receiving an error [LWJGL] [ThreadLocalUtil] Unsupported JNI version detected how can I fix this issue HOT 1
- Some examples do not work HOT 6
- Waiting for a KTX demo.
- all demo code should be standalone from any other library and not requiring maven HOT 2
- Synchronisation problem? HOT 1
- error: syntax error, unexpected NEW_IDENTIFIER
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lwjgl3-demos.