• Content count

  • Joined

  • Last visited

Community Reputation

102 Neutral

About raluk22

  • Rank
  1.   Thank you a billion. This totally helps, and I finally got how the gluLookAt function works. I had a pretty different idea about the whole thing. Thanx again.
  2. Hello everybody! I just started working with OpenGL and I have this problem with glFrustum and gluLookAt. I have to obtain the first image but the best I could get was the second.   As you can see I need to get a 1 point perspective, but no matter how I tried I can only get the 3-point perspective on that cube. I read quite a few tutorials and posts about frustum and gluLookAt but none would work for me and I've been stuck on this for 2 days now. This is my code so far:   glMatrixMode(GL_PROJECTION);   glLoadIdentity();   glFrustum(-5, 5, -5, 5, 5, 100);   gluLookAt(7,7,10,0,0,0,0,1,0);  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);     glMatrixMode(GL_MODELVIEW);     glLoadIdentity();     glPushMatrix();       DisplayAxe();       DisplayObiect(); //displays the cube     glPopMatrix();   The cube is of side 5. Now if anyone could help me or at least give me a hint on how to use glFrustum and gluLookAt to get that 1-point perspective it would be awesome. Thank you!