use Qt vector and matrix classes rather than glm.
fixed grid and trails not resetting the matrix properly.