I'm having problems understanding/getting the hang of some basic concepts. My program works ok so far except a two things. I'll try to explain what happens:
If I start the object at 0,0,0 i can't see the object. As I move the camera in the -z direction the object becomes visible and things seem to work fine. This makes sense to me a bit because my perspective has the clip plane at 0.1 to 100.0. The object starts out at 0 which is behind 0.1.
It seems no matter where I draw my object it's 0.1 from being clipped. I've tried doing the translations via the model matrix and the view matrix and the results are the same.
My other problem is that if I move forward once then move back once it crashes with this error:
main: /usr/include/glm/detail/func_exponential.inl:149: genType glm::sqrt(const genType&) [with genType = float]: Assertion `x >= genType(0)' failed.
Aborted (core dumped)