how do you convert mouse coordinates to world space
From what I understand, after following some tutorials, you take the mouse coordinates, convert them to normalized device coordinates for OpenGL and then multiply by those by inverted projection matrix, which result you then multiply by inverted view matrix which then should give you world space coordinates.