gluPerspective() sets the projection matrix, not the modelview. The following code should work:
- gl2.glMatrixMode(GL2.GL_PROJECTION);
- gl2.glLoadIdentity();
- glu.gluPerspective(45.0, width/height, .1, 1000.0 );
- gl2.glMatrixMode(GL2.GL_MODELVIEW);
- gl2.glLoadIdentity();
- glu.gluLookAt(6, 6, 6,
- 0, 0, 0,
- 0, 0, 1);