Question Noob: Draw a square parallel to the view

OK, what I want to do is draw a square in the scene that lies on a plane parallel to the view. Therefore, it should look flat.

In particular, I think that I did not understand very well how gluLookAt works compared to the glTranslate and glRotate functions:

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

However, when I use gluLookAt (which should automatically set the view), the coordinates of the object I want to make must be "absolute" for it to display correctly.

Thanks in advance.

+3
source share
1 answer

This tutorial describes how to make posters in OpenGL.

+1
source

Source: https://habr.com/ru/post/1746566/


All Articles