Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zoot

rotation

This topic is 5900 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

Hi, I use this code for change angle on the cammra but something isn´t right... i do this before i draw something else... glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glRotatef(360.0f - renderangle.x,1,0,0); glRotatef(360.0f - renderangle.y,0,1,0); glRotatef(360.0f - renderangle.z,0,0,1); Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
what about translation? what do you mean it isnt right?

ps, the movement sequence the human head follows is yaw-pitch-roll, not pitch-yaw-roll

pps, instead of (360.0f-angle), just have (-angle). it is 40x quicker.

Share this post


Link to post
Share on other sites

  • 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!