Noob question: Draw a quad parallel to the view.

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-05-21T13:38:53Z Indexed on 2010/05/21 13:40 UTC
Read the original article Hit count: 160

Filed under:
|
|

Hi all, ok what I want to do is to draw a quad in the scene that lays on a plane parallel to the view. So it should appear flat.

More in particular, I think I didn't get very well how the mechanism of gluLookAt works in comparison with the functions glTranslate and glRotate:

If I position the view "manually" using the functions glTranslate and glRotate whenever I draw an object its position is relative to the current view. And I understand that this is due to the transformation matrix in the stack.

However when I use the gluLookAt that should automatically set the view, the coordinates of the object I want to draw must be "absolute" to show it properly.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about opengl

Related posts about lwjgl