LordOfTheUniverse
12-03-2002, 01:14 PM
Hi,
How to feed projection matrix , so that gluLookAt
points at the center of a certain object - this object
has 4x4matrix attached to it (updated by its translations/ rotations).
I tried
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glMultMatrixf(TranspodesModelMatrix4x4);
gluLookAt(distance, 0, 0
, 0 ,0, 0,
0, 1, 0);
and went on with modelview matrix;
How to feed projection matrix , so that gluLookAt
points at the center of a certain object - this object
has 4x4matrix attached to it (updated by its translations/ rotations).
I tried
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glMultMatrixf(TranspodesModelMatrix4x4);
gluLookAt(distance, 0, 0
, 0 ,0, 0,
0, 1, 0);
and went on with modelview matrix;