Jump to content
  • Advertisement
Sign in to follow this  
jeff8j

OpenGL Movement

This topic is 2336 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!