Jump to content
  • Advertisement
Sign in to follow this  
mike4

rotate fbo

This topic is 2312 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
now I do:
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glFrustum(-0.7, 0.7, -0.7, 0.7, 1, 5000);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
glRotatef(GetDataf(psi), 0, 1, 0);//heading
glRotatef(GetDataf(theta), -1, 0, 0);//pitch
glRotatef(GetDataf(phi), 0, 0, 1);//roll
glTranslatef(-GetDatad(locX), -GetDatad(locY), -GetDatad(locZ));//
positions
drawMesh();
so far all is ok
now I want to rotate the mesh 90' to look from above on it. I've tried
without success:
// glRotatef(90, -1, 0, 0); // look down
// glTranslatef(0.0f, 0.0f, 128.0f);//128x128 mesh
// gluLookAt(0,0,GetDatad(locZ)+2000,0,0,-256,0,1,0);
How to rotate and maybe zoom out?
Many thanks
Michael

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!