LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: integeruser on November 01, 2016, 17:11:44

Title: Learning Modern 3D Graphics Programming with LWJGL 3 and JOML
Post by: integeruser on November 01, 2016, 17:11:44
Hi everyone!

A few years ago I published a LWJGL port of the famous book Learning Modern 3D Graphics Programming (http://alfonse.bitbucket.org/oldtut/), and it was well-received (http://forum.lwjgl.org/index.php?topic=4397 (http://forum.lwjgl.org/index.php?topic=4397), http://www.java-gaming.org/topics/opengl-in-java-modern-3d-graphics-programming/25534/msg/220456/view.html (http://www.java-gaming.org/topics/opengl-in-java-modern-3d-graphics-programming/25534/msg/220456/view.html), added to the LWJGL Wiki).

The "big news" is that, over the last months, I updated it to use both LWJGL 3 and JOML! Check it out: https://github.com/integeruser/jgltut (https://github.com/integeruser/jgltut)

Hope it will be useful :)
Francesco
Title: Re: Learning Modern 3D Graphics Programming with LWJGL 3 and JOML
Post by: spasi on November 01, 2016, 17:49:25
Awesome! Two requests:

- Could you replace any usages of ImageIO with stb_image? Not sure if ImageIO is actually used (afaict there are only .dds files in the project).
- Could you add Maven or Gradle scripts so that users can more easily try it out? (without downloading the pre-built binaries)
Title: Re: Learning Modern 3D Graphics Programming with LWJGL 3 and JOML
Post by: integeruser on November 01, 2016, 19:48:08
QuoteCould you replace any usages of ImageIO with stb_image?
Sure, I'll look into it (in fact, it's a part of the codebase that definitely needs some cleaning).

QuoteCould you add Maven or Gradle scripts so that users can more easily try it out?
I was planning to do this soon (I don't work with Java anymore and I never used Maven nor Gradle). I will be grateful if someone can submit a pull request for this.
Title: Re: Learning Modern 3D Graphics Programming with LWJGL 3 and JOML
Post by: integeruser on November 03, 2016, 20:54:26
spasi: I replaced the only usage of ImageIO with STBImage and added a Maven script. Could you please double-check the POM (https://github.com/integeruser/jgltut/blob/master/pom.xml)? Seems good in my tests.
Title: Re: Learning Modern 3D Graphics Programming with LWJGL 3 and JOML
Post by: spasi on November 04, 2016, 10:50:26
Shader/texture loading was failing in my tests, fixed in a PR (https://github.com/integeruser/jgltut/pull/16).