The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
88 views

How can I remove the view and projection matrix from ray position to get only the ray model?

I've got a little problem with my picking module and I need your help. I have a method to project a ray from the camera to a fixed point when I click somewhere. The computed ray looks good, it go to ...
1
vote
0answers
81 views

Box2D, OpenGL, resolution and matrix setup

Okay, my internal units are going to be meters, ranging between 0.1 and 10 meters for size. First of all, my mind is all wrapped up in a knot trying to understand how to handle my game with multiple ...
0
votes
0answers
88 views

GLM Math: error: invalid cast from type 'const glm::detail::tvec3<float>' to type 'float'|

I'm casting a glm type to an normal array using glm::value_ptr() as follows glm::vec4 position; glm::mat3 orient; ... glm::mat4 transformMatrix=glm::translate( glm::mat4(orient) , ...
-3
votes
0answers
53 views

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 ...