Hi all
i follow the example “getting started with jogl” and insert some lines like this
public void init(GLDrawable drawable)
{
this.gl = drawable.getGL();
this.glDrawable = drawable;
drawable.setGL( new DebugGL(drawable.getGL() ));
System.out.println("Init GL is " + gl.getClass().getName());
gl.glLoadIdentity(); // Reset The Projection Matrix
}
public void display(GLDrawable drawable)
{
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT );
gl.glLoadIdentity();
gl.glColor3f(1.0f, 0.0f, 0.0f );
gl.glTranslatef(0,0,1f); // zoom out
gl.glBegin( GL.GL_TRIANGLES );
gl.glColor3f(0.5f,0.7f,0.8f);
gl.glVertex3f( 0.0f, 0.0f, 0.0f );
gl.glColor3f(1.5f,1.7f,1.8f);
gl.glVertex3f( 0.5f, 0.0f, 0.0f );
gl.glColor3f(0.7f,0.3f,0.2f);
gl.glVertex3f( 0.5f, 0.5f, 0.0f );
gl.glEnd();
}
the glTranslate has no effect
the example from here is to big to show many objects
only the triangle i can show on the screen
can anybody tell me what i made false ?
i cannot found an simple introduction into jogl
anybody knwos a good source on the web ?
Thanks