HelloGlobe.java

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

HelloGlobe.java

jgonzd
I am trying to run the HelloGlobe.java example from https://github.com/jvm-graphics-labs/hello-triangle. The source code is at https://github.com/jvm-graphics-labs/hello-triangle/blob/master/src/main/java/gl4/HelloGlobe.java. I think this is an official tutorial. The problems I am encountering is with dependency issues. The following lines are giving errors

import framework.Semantic;
import glm.mat.Mat4x4;
import glm.vec._2.Vec2;
import glm.vec._3.Vec3;
import uno.debug.GlDebugOutput;
import uno.glsl.Program;

...

import static glm.GlmKt.glm;
import static uno.buffer.UtilKt.destroyBuffer;
import static uno.buffer.UtilKt.destroyBuffers;

Like I said, this is a dependency issue and I am hoping I can find the required dependencies to run the tutorial.
Reply | Threaded
Open this post in threaded view
|

Re: HelloGlobe.java

gouessej
Administrator
Hello

framework.Semantic is a single self-contained class, you can just copy it into your project. Either use jitpack or rebuild GLM and UNO. Keep in mind that those examples use Kotlin, it's not ideal when you look for examples in Java.

NO IT IS NOT AN OFFICIAL TUTORIAL. It uses some third party dependencies that have nothing to do with JogAmp itself.

Personally, I prefer Xerxes' example:
https://jogamp.org/cgit/jogl-demos.git/tree/src/demos/es2/RawGL2ES2demo.java?id=HEAD
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: HelloGlobe.java

gouessej
Administrator
In reply to this post by jgonzd
I've clarified the wiki, maybe it will be helpful for you:
https://jogamp.org/wiki/index.php?title=Jogl_Tutorial#Hello_Triangle_and_Texture
Julien Gouesse | Personal blog | Website