Closed rlg-pro closed 1 year ago
Now that's thorough!
However I find that I do not get this error and P3D seemingly works fine.
@TidensBarn Can you check too?
Ok, maybe creating a fat-jar is the problem. Do you get the same error running as a project as a java app from the IDE?
I get the same stack when running it directly in IntelliJ.
The jar of processing-core-4.4.2.jar
has no shaders
folder in processing.opengl
.
All the shaders are at the root of the archive.
This jar has been downloaded on my machine the 22 march.
It’s sha1 is : 27951e7caaf4dac3f0191d9e7632a12e10daf344
There's a commit I made to fix precisely this issue, but it's not included in the 4.2 release. @micycle1 Could you move the 4.2 tag up to include it?
In the meantime, referencing it directly instead of v4.2 should get you the correct jar:
<dependency>
<groupId>com.github.micycle1</groupId>
<artifactId>processing-core-4</artifactId>
<version>d33cae501e</version>
</dependency>
Direct download: processing-core-4-d33cae501e.zip
The new release work OK ! Thanks for your reactivity.
Given
A maven project for java 17 with following attributes:
groupId: org.example;
artifactId: my-project.
Project structure:
pom.xml
content:The creation of an
uber-jar
is here to ease the tests.Content of
org.example.Main.java
When
compile and run
Should
have a drawing of a cube and no error in the console
But
get a blank canvas and the following stack:
Workaround to create 3D scene despite this problem.
Create the following folders in the
src/main/resource
folder :Extract in this folder the
glsl
files located at the root of the compiled uber-jar :Now recompile and run the project
Now a cube is drawn on the canvas without any error in the console.
Hope this help.