Examples ported in JOGL from "Learning Modern 3D Graphic Programming" by J.L.McKesson

Overview

modern-jogl-examples

This porting is free but needs your support to sustain its development. There are lots of desirable new features and maintenance to do. If you are an individual using dear imgui, please consider donating via Patreon or PayPal. If your company is using dear imgui, please consider financial support (e.g. sponsoring a few weeks/months of development)

Monthly donations via Patreon:
Patreon

One-off donations via PayPal:
PayPal

Examples ported in JOGL from the tutorials "Learning Modern 3D Graphic Programming" by J.L.McKesson, (original bitbucket repository).

The original website (http://www.arcsynthesis.org/gltut) is down because probably the domain expired. Pavel Rojtberg is continuing the manteinance of the tutorial here.

He is also supporting the html form of the documentation here, I strongly suggest you to read and refer it during the learning of each tutorial sample.

You can find the examples in java under src/main/java and the corresponding in kotlin under src/main/kotlin

Few comments on Kotlin:

  • it's awesome
  • src/main/kotlin/main is an example, showing also how you can exploit some overloading gl functions to reduce the boiler plate arguments
  • src/main/kotlin/glNext pushes reduction and expressiveness to the top, substituting many gl commands with constructs that rearrange some common gl patterns to bring a lot of code down

Status:

  • Chapter 1, Hello Triangle
  • Chapter 2, Playing with Colors
  • Chapter 3, Moving Triangle
  • Chapter 4, Objects at Rest
  • Chapter 5, Objects at Depth
  • Chapter 6, Objects in Motion
  • Chapter 7, World in Motion
  • Chapter 8, Getting Oriented
  • Chapter 9, Lights On
  • Chapter 10, Plane Lights
  • Chapter 11, Shinies
  • Chapter 12, Dynamic Lights
  • Chapter 13, Lies and Impostors
  • Chapter 14, Textures are not Pictures
  • Chapter 15, Many Images
  • Chapter 16, Gamma and Textures:
    • Gamma Ramp
    • Gamma Checkers
    • Gamma Landscape
  • Chapter 17, Spotlight on Textures
Comments
  • framework/Framework: stop the animator thread after user close the window

    framework/Framework: stop the animator thread after user close the window

    This change fixes the warning seen on Linux systems caused by system exit before JOGL have had the opportunity to properly closed the window after dispose.

    X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 2/2, reusable (open, marked uncloseable): 0, pending (open in creation order): 2) X11Util: Open X11 Display Connections: 2 X11Util: Open[0]: NamedX11Display[:0, 0x7f1f08004b30, refCount 1, unCloseable false] X11Util: Open[1]: NamedX11Display[:0, 0x7f1f08017c80, refCount 1, unCloseable false]

    Signed-off-by: Xerxes Rånby [email protected]

    opened by xranby 4
  • Add tut14/Test texture example

    Add tut14/Test texture example

    http://forum.jogamp.org/Modern-JOGL-simple-texture-example-tp4029964p4029965.html

    http://www.arcsynthesis.org/gltut/Texturing/Texturing.html https://bitbucket.org/alfonse/gltut/src/tip/Tut 14 Textures Are Not Pictures

    Signed-off-by Xerxes Rånby [email protected]

    opened by xranby 0
  • import problems : glm, uno, org.w3c.dom

    import problems : glm, uno, org.w3c.dom

    Hello guys,

    I've seen the post about the following problem : "The import glm cannot be resolved"

    and I have the same issue + a couple more. The import glm cannot be resolved The type org.w3c.dom.Element is not accessible

    I'm using Eclipse and experimenting with jogl (or at least trying to) but I failed to have the first tutorial working until now. If anyone knows why and how it may happen, help would be welcome :/

    opened by Heslau 0
  • multiple compiler issues

    multiple compiler issues

    Hi, I just try to get this running and found multiple issue. I hope I didn't screw up myself.

    I have Netbeans 8.1 and downloaded modern-jogl-examples and jglm.

    I am a little confused why you sometimes import glm...from the Jglm project and sometimes import framework.jglm.

    File ObjectPole.java: Import is for glm.quat.Quat but the called method mult(Quat) is only defined in framework.jglm.Quat. There's also a call for Quat.cast_() which is not defined in in both …?

    Some other issues I had:

    • Timer.Type.Loop -> LOOP should be all capitals
    • cannot convert frameworkjglm.Vec3 to glm.vec._3.Vec3
    • java.awt.event.MouseEvent cannot be converted to com.jogamp.newt.event.MouseEvent

    As said I hope I didn’t missed anything big.

    Anyway thx for the project I am really eager to try it out.

    Rgds tmg

    opened by tmgeorge2 2
  • Updating/simplifying/restructuring samples

    Updating/simplifying/restructuring samples

    It's time to update/simplify/restructure samples.

    • implemented a Framework class, extendable by each sample
    • using the high performance native toolkit newt
    • using semantic locations for vertex attributes
    • using direct buffer for opengl resources
    • simplified the program building, using the jogl utility
    • updated jogl

    On tut03

    opened by elect86 0
Owner
Everything related to java and opengl: tools, libraries, bindings, tutorials and more..
null
Kotlin Examples Problems

Kotlin Examples Problems --->>> Repo: Getting Started Kotlin <<<--- --->>> Repo Kotlin Koans <<<--- --->>> Repo: GameBoy Emulator Enviroment <<<--- --

Victor Bolinches 22 Oct 3, 2022
Examples of Getting Started vídeos

Getting Started Kotlin Learn the basics of getting started with kotlin --->>> Repo: Kotlin Koans <<<--- --->>> Repo: Problems Kotlin <<<--- --->>> Rep

Victor Bolinches 41 Dec 4, 2022
Kotlin Unit Testing Examples

Kotlin Unit Testing Examples Table of Contents Application Gradle, Kotlin & Groovy Junit4 Junit5 KotlinTest Spek Mockito Mockito-Kotlin Mockk Strikt T

Jarosław 110 Dec 11, 2022
kotlin koans examples

Kotlin Koans Build --->>> Repo: Getting Started Kotlin <<<--- --->>> Repo: Problems Kotlin <<<--- --->>> Repo: GameBoy Emulator Enviroment <<<--- --->

Victor Bolinches 121 Oct 3, 2022
101 examples for Kotlin Programming language.

This is a collection of runnable console applications that highlights the features of Kotlin programming language. The use of console application enab

Dody Gunawinata 192 Dec 1, 2022
Full stack examples of how to use Hotwire JS in Kotlin services

hotwire-kt A collection of Kotlin examples using the Hotwire JS framework to build interactive web apps with a Kotlin Armeria server backend. Using Ho

Andrew (Paradi) Alexander 9 Dec 14, 2022
Getting started Kotlin - Examples and explanations

Getting started Kotlin I'm learning Kotlin, so I have been updating it with examples and explanations about the language that I'm using at work. Proje

Jean Jacques Nascimento Barros 2 Apr 25, 2022
Examples for using Kotlin at a basic level for Android application development.

Kotlin Android Jetpack Basics Ejemplos para usar Kotlin a nivel básico para el desarrollo de aplicaciones Android. Kotlin Android Jetpack Basics Acerc

José Luis González Sánchez 2 Jun 28, 2022
A coding examples project about Kotlin Programming language. 🇰

Kotlin Tutorial ????‍?? What is Kotlin ❓ Kotlin is a new programming language, developed by JetBrains. Jetbrains is a popular software development com

Mustajab Ikram 4 Oct 11, 2022
A unique technology modification ported from Forge to Fabric.

Fracdustry Reimagined >> Download << Thank you, MikhailTapio. This mod is open source and under a permissive license. As such, it can be included in a

Team (Another) Fractal 3 Dec 18, 2021
A collection of katas either copied or ported from some amazing folks

Kotlin Refactoring Katas A collection of katas either copied or ported from some

Ragunath Jawahar 5 Nov 15, 2022
Learn How to use Google Map API for Android from Basic to Advance with complete examples.

Complete-Google-Map-API-Tutorial Learn How to use Google Map API for Android from Basic to Advance. Satellite View 3D Building Map and StreetView Lear

Next 117 Dec 8, 2022
Android Transition animations explanation with examples.

UNMAINTAINED No maintainance is intended. The content is still valid as a reference but it won't contain the latest new stuff Android Transition Frame

Luis G. Valle 13.6k Dec 28, 2022
3D animation examples for support-v4 Fragment transition.

FragmentAnimations Animation examples for support.v4.Fragment transition. These animations do not depends on any external libraries. Usage Example In

Keita Kajiwara 1.1k Dec 14, 2022
Examples of Android applications

Android Demos This is a collection of basic android examples created by Novoda. CarouselFragment CompassExample ContactSelector CustomActivityTransiti

Novoda 2k Jan 3, 2023
Examples for my Android GraphView library

Chart and Graph Library for Android GraphView - open source graph plotting library for Android GraphView is a library for Android to programmatically

Jonas Gehring 297 Dec 16, 2022
! Usage examples for Android Maven Plugin

Android Maven Plugin - Sample Projects WARNING This project is deprecated. All sample projects for the Android Maven Plugin as of version 4.0.0-rc.1 a

Jayway 190 Nov 28, 2022
It is a project that contains lessons and examples about Kotlin programming language. 🇰

Kotlin Tutorials What is Kotlin? I added the platforms it supports and great resources. You can access the article from the link below: https://medium

Halil Özel 94 Dec 22, 2022
Learn How to use Google Map API for Android from Basic to Advance with complete examples.

Complete-Google-Map-API-Tutorial Learn How to use Google Map API for Android from Basic to Advance. Satellite View 3D Building Map and StreetView Lear

Next 117 Dec 8, 2022
It is a project that contains lessons and examples about Kotlin programming language. 🇰

Kotlin Tutorials What is Kotlin? I added the platforms it supports and great resources. You can access the article from the link below: https://medium

Halil Özel 94 Dec 22, 2022