Isometric view of cube ?

I am a newbie to OpenGL and JOGL. I have defined a cube as a Collection of polygons. How does one render this to show the 3D effect ? I tried doing a glu.glLookAt(…) function but it doesnt seem to help.

Any ideas or sample code will be appreciated.

Thanks

– pady

Hi.
You have to set a light to see 3D effects in openGL…

You must also set the perspective projection matrix:


GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
GLU.gluPerspective(45.0f, 4f/3f, 0.1f, 1000.0f);
GL.glMatrixMode(GL.GL_MODELVIEW);