Advertisement
Guest User

hriehjer

a guest
Nov 13th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. glMatrixMode(GL_PROJECTION); //GL_MODELVIEW pour avoir un aperçu à l'origine
  2. glLoadIdentity();
  3. gluPerspective(45,-1,1,10); //LACMIEUONCHANGERIEN
  4.  
  5. float camX = distance * -sinf(anglex*(pi/180)) * cosf((angley)*(M_PI/180));
  6. float camY = distance * -sinf((angley)*(pi/180));
  7. float camZ = -distance * cosf((anglex)*(pi/180)) * cosf((angley)*(M_PI/180));
  8.  
  9. gluLookAt(camX,camY,camZ,0,0,0,0,1,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement