Jump to content
  • Advertisement

Archived

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

Zoot

rotation

This topic is 5986 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!