To start off, i am NOT talking about gluLookAt() to specify the camera rotation,
so dont suggest i use it. I'm using glRotatef to alter
camera rotation.
So far i'v been using angle xrot,yrot,zrot (in degrees)
to specify the camera rotation.
ei:
MyCode :glRotatef(xrot,1.0,0.0,0.0); glRotatef(yrot,0.0,1.0,0.0); glRotatef(zrot,0.0,0.0,1.0);
problem, say i have a unit vector (0.3433, 0.4243, 0.242) and i want to find the
appropriate xrot,yrot,zrot to get the camera rotation according the given
vector?
I was thinking to solve, say the xrot, i could take do
->angleBetween( (0.3433,0,0), (1,0,0) ) would give the xrot, and so on for
the yrot,zrot.



