"Instead of inverting the modelview matrix myself, i took a dummy vertex at position (0 , 0 , 0) and``applied""the current modelview matrix to it."
If i wanted to transform something with the inverse of the modelview matrix, i added (-x, -y, -z) of the dummy vertex i got to its coordinates.