I have a general understanding about the function of gluLookAt. However, as i try to write my own version of it (as i understand it’s simply a matter of a number of matrix operations such as translation and rotation) i get stuck. So, here’s the question.
Suppose we wish to perform the following:
gluLookAt (xf,yf,zf, xt,yt,zt, xu,yu,zu)
but for some reason we can’t enter it :o !
What translations and rotations should we perform in order to obtain the same effect as the “forbidden” line above would give us? I have almost no idea on how to approach this one and since i’ve been studying mathematics for a few years now, i feel rather stupid. It should be some simple linear algebra, yet i get stuck like this.