This is my first post in this forum (and my first day in OpenGL), hope you can help me.
I’ve built up a cube, being centred in (0,0,0) with side length 2.
Now, if I use an orthographic projection such as
gl.glMatrixMode(GL_PROJECTION); gl.glLoadIdentity(); gl.glOrtho(-5, 5, -5, 5, 5, -5); gl.glMatrixMode(GL_MODELVIEW); gl.glLoadIdentity(); glu.gluLookAt( 0.0f, 0.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
then I just see the front side of my nice cube.
What I would like to achieve now, is a cavalier (or cabinet, should be similar) projection of my cube. See for a perfect example figures 11 and 12 of this website.
I’ve tried around for several hours now, but I don’t get it.
There is one post on this forum concerning this topic, but the proposed method does not work for me (if I just post-multiply the there given matrix to my glOrtho(…).
Thanks a lot in advance for your kind answers,
with best regards,