Ok ,please bear with me as it is probably really NOOB’s question.
I am coding a 3d camera.Trying to set its matrix.Using glm lib.
Now ,I have moveRight(GLFloat value); method which is supposed to move camera to the right .Inside it I redefine camera view matrix
The problem is that it seems that camera direction doesn’t seem right.It looks like the camera moved lets say 100 pixels to the right but look direction hasn’t changed accordingly. What do I miss here? Should I keep camera rotation matrix separately and then multiply “target” (look direction) vector with that rotation matrix? I thought that glm::lookAt() should solve it automatically .
UPDATE: Well , in fact it does work.The problem was around frustum wrong scale which removed some of the geometry out of view bounds.