I'm having trouble working with transformation in OpenGL. Sometimes, I messed up the transformation matrix, my objects became nowhere to be seen. It's either too far from the camera, or transformed in a weird way so it couldn't be drawn.
I can't tell the difference between a right transform and a wrong transform. I tried printing out the transform matrix, but it is just a bunch of numbers, I don't understand anything by looking at them.
My solution is rechecking my own code, super sure every step is OK before move on. That way, the bug will eventually be fixed, but it takes alot of time.
So I'm asking, how do you debug when it related to transformation matrix? Is there a way to visualize the result, or any trick to reveal the error in my code?