Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualBrother Bob

Posted 23 May 2013 - 12:15 PM

The view point has to look down the red axis, perpendicular to the plane formed by the greed and blue axes. Then the vanishing points along the green and blue axes are at infinity. Assuming that the red axis is the Z-axis:

 

gluLookAt(7,7,10,7,7,0,0,1,0);

The view point is now faced along the vector (7,7,0) - (7,7,10) = (0,0,-10), which is along the negative Z-axis.


#1Brother Bob

Posted 23 May 2013 - 12:14 PM

The viewpoint has to look down the red axis, perpendicular to the plane formed by the greed and blue axes. Then the vanishing points along the green and blue axes are at infinity. Assuming that the red axis is the Z-axis:

gluLookAt(7,7,10,7,7,0,0,1,0);

The view point is now facing (7,7,0) - (7,7,10) = (0,0,-10), which is along the negative Z-axis.


PARTNERS