mike55
11-21-2003, 04:35 AM
Hey all,
Am currently building the basic outline of a castle as part of a pet project. One of the thing that i want to do is that when you press a key, 'A' in this case you get a sort of aerial view of the castle. Have tryed using gluLookAt, but this is not working correctly. Has anyone got any good suggestions. Have included the code that i used.
if (keys['A'])
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluLookAt( 0.3, 2.0, 2.0,
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
}
Would appreciate any help possible.
Michael O'Donnell
Am currently building the basic outline of a castle as part of a pet project. One of the thing that i want to do is that when you press a key, 'A' in this case you get a sort of aerial view of the castle. Have tryed using gluLookAt, but this is not working correctly. Has anyone got any good suggestions. Have included the code that i used.
if (keys['A'])
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluLookAt( 0.3, 2.0, 2.0,
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
}
Would appreciate any help possible.
Michael O'Donnell