16/05/2012 - I have just discovered the wonderful tool that is Unity3D - watch this space, cool things may follow.
Myself and Julien Gouessej will be collaborating over the next few weeks to provide some new JOGL 2.0 tutorials, including ports of the original JOGL 1.x tutorials. Stay tuned!
import javax.media.opengl.GL2; import javax.media.opengl.glu.GLU; public abstract class Drawable { //public abstract void draw(GL2 gl, GLU glu); public abstract void draw(GL2 gl, GLU glu, int shaderID); }
import java.awt.*; import java.awt.event.*; /** * @author Lyes Hassaine / LeoLoL : http://www.leolol.com */ public class Trackball extends MouseAdapter implements MouseMotionListener, MouseWheelListener { private final float trackballSize; private int prevX = 0; private int prevY = 0; private int startX = 0; private int startY = 0; private float[] curQuat = buildQuaternion(0.0f, 0.0f, 0.0f, 0.0f); private float[] lastQuat = curQuat; private boolean spin = false; private Player player; private Camera camera; public Trackball(Player player, Camera camera
import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.ByteBuffer; import java.nio.IntBuffer; import javax.media.opengl.GL2; /** * @author Lyes Hassaine / LeoLoL : http://www.leolol.com */ public class ShaderControl { private int vertexShaderProgram; private int fragmentShaderProgram; private int shaderprogram; public String[] vsrc; public String[] fsrc; public String[] gsrc; public void init( GL2 gl ) { try { attachShaders(gl); } catch (Exception e) { e.printStackTrace
In this lesson we will use our knowledge from Lesson 2 and Lesson 3 to create a multi-coloured 3D pyramid and look at the...
If you don't want to read me rambling on about JOGL, then just skip to the Installation part; don't worry, I won't be...
This tutorial is written for JOGL 1.x, which is now no longer supported, so I highly recommend you to check out the...
Below you will find a collection of easy-to-learn 3D graphics tutorials, using Java OpenGL (JOGL).
In this lesson we will introduce you to OpenGL by covering how to draw primitive 2D shapes (polygons) and explain how to...
Below is a collection of Java exercises, progressing in difficulty with each exercise. The best way to learn a...
The fitness function allows us to rate how close an individual is to the ideal solution. We use this function just...
In this lesson we will expand on the shapes we drew in lesson 1 by discussing how we can apply various colours to them....
Whether you're a veteran coder, an academic, or someone new to programming, you have probably come across the term 'Genetic...
Now that we know how all the stages work, lets have a closer look at the fitness function and...