How to multiply mouse coordinates by view matrix?
I'm working on mouse coordinates to convert them from window to openGL. I'm multiplying the mouse vector with x,y coordinates by the glm::lookAt matrix to rotate mouse vector. I start with 90deg. and it gives me good results, then when I add another 90 deg. it messes the translation:
What is the right way to transform mouse coordinates?
I'm working on mouse coordinates to convert them from window to openGL. I'm multiplying the mouse vector with x,y coordinates by the glm::lookAt matrix to rotate mouse vector. I start with 90deg. and it gives me good results, then when I add another 90 deg. it messes the translation:
What is the right way to transform mouse coordinates?
No comments:
Post a Comment