Sign in to follow this  

OpenGL Movement

This topic is 1994 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am tring to follow nehes opengl tutorials and just dont understand the movement on tutorial 10.

Ok im not following it exaclty I dont want to copy and past im experimenting to learn. I am trying to take the pyramid and cube from the previos tutorials and for now just move forward and backwards.

If i use glTranslatef to change the zpos it works but only for the pyramid, glLoadIdentity is reseting it back do I have to translate the zpos before every object in the scene or am I missing something I can just call and then render or vis versa?

Share this post


Link to post
Share on other sites
After some googling and reading and rereading I figured out that glpush/popmatrix does what I want. Im not sure if thats the prefered method or not if somebody would tell me im wrong or right I would be thankfull.

Share this post


Link to post
Share on other sites

This topic is 1994 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this