Hi, can you help me to understand this, basically I just trow an arrow here to see what happens, obviously nothing...
I try to follow this tutorial http://jerome.jouvie.free.fr/OpenGl/Tutorials/Tutorial4.php
but I am missing something, can you tell me how to get this sample working, and what I am doing wrong?
Code:import javax.media.opengl.*;
import processing.opengl.*;
void setup() {
size(800, 600, OPENGL);
}
void draw() {
background(255);
PGraphicsOpenGL pgl = (PGraphicsOpenGL) g;
GL gl = pgl.beginGL();
gl.glBegin(GL.GL_TRIANGLE_FAN);
gl.glColor3f(1.0f,0.0f,0.0f);
gl.glVertex3f( 0.0f, 1.0f, 0.0f);
gl.glColor3f(0.0f,1.0f,0.0f);
gl.glVertex3f(-1.0f,-1.0f, 1.0f);
gl.glColor3f(0.0f,0.0f,1.0f);
gl.glVertex3f( 1.0f,-1.0f, 1.0f);
gl.glColor3f(0.0f,1.0f,0.0f);
gl.glVertex3f( 1.0f,-1.0f,-1.0f);
gl.glColor3f(0.0f,0.0f,1.0f);
gl.glVertex3f(-1.0f,-1.0f,-1.0f);
gl.glColor3f(0.0f,1.0f,0.0f);
gl.glVertex3f(-1.0f,-1.0f, 1.0f);
gl.glEnd();
pgl.endGL();
}
Please note that I have no idea of JOGL, OPENGL at allCheers
rS