This week's book giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line! See this thread for details.
I've got no idea why, I'm new to the 3D area, though I've made a nice pong in 2D.
I've compaired my code to working samples and I can't see the difference, but when I import their code it works normally, but as I said I can't see the difference.
So here it is
Before the loop is
posted 6 years ago
I thought it would be nice to explain the problem..
Firstly, the shape seemed REALLY weird due to it being in a perspective view and the values being a bit weird. So that was changed by using glOrtho which gives a straight view.
Secondly during rotation the near clipping was being hit so a simple glTranslate on the view solved that problem (I moved it back 5)